Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#22985 - [python-nose] 1.0.0-2 Python 3 support broken

Attached to Project: Arch Linux
Opened by Gladstone (gladstone) - Monday, 21 February 2011, 13:34 GMT
Last edited by Angel Velasquez (angvp) - Tuesday, 22 February 2011, 05:16 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Angel Velasquez (angvp)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

The 1.0.0-2 package does not work for Python 3:

$ nosetests
Traceback (most recent call last):
File "/usr/bin/nosetests", line 9, in <module>
load_entry_point('nose==1.0.0', 'console_scripts', 'nosetests')()
File "/usr/lib/python3.1/site-packages/pkg_resources.py", line 305, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.1/site-packages/pkg_resources.py", line 2244, in load_entry_point
return ep.load()
File "/usr/lib/python3.1/site-packages/pkg_resources.py", line 1954, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python3.1/site-packages/nose/__init__.py", line 1, in <module>
from nose.core import collector, main, run, run_exit, runmodule
File "/usr/lib/python3.1/site-packages/nose/core.py", line 143
print "%s version %s" % (os.path.basename(sys.argv[0]), __version__)
^
SyntaxError: invalid syntax

That syntax error suggests the Python 2.x version has been incorrectly installed.
This task depends upon

Closed by  Angel Velasquez (angvp)
Tuesday, 22 February 2011, 05:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  Separated packages now works on 1.0.0-3
Comment by Stéphane Gaudreault (stephane) - Tuesday, 22 February 2011, 03:40 GMT
I think we should do the python2 install in a separate pkgbuild because the scripts in /usr/bin are overwritten with every setup.py install. Also python2 and python3 version conflicts because both provides /usr/bin/nosetests and /usr/share/man/man1/nosetests.1

Loading...