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!
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!
FS#22322 - [python2] sys.executable defaults to /usr/bin/python in nautilus extensions
Attached to Project:
Arch Linux
Opened by ilya (leniviy) - Wednesday, 05 January 2011, 11:14 GMT
Last edited by Stéphane Gaudreault (stephane) - Thursday, 06 January 2011, 12:20 GMT
Opened by ilya (leniviy) - Wednesday, 05 January 2011, 11:14 GMT
Last edited by Stéphane Gaudreault (stephane) - Thursday, 06 January 2011, 12:20 GMT
|
DetailsDescription:
In Python the variable 'sys.executable' is usually set to argv[0]. If argv[0] is empty string, it's set to some hardcoded value, which is /usr/bin/python . In python-nautilus (and probably other embedded Python 2 stuff) sys.executable defaults to /usr/bin/python, a symlink to python3. Affected: http://aur.archlinux.org/packages.php?ID=34482 http://aur.archlinux.org/packages.php?ID=22823 Additional info: * package version(s) python2 2.7.1-3 Steps to reproduce: $ sh -c "exec -a '' python2 -c 'import sys; print sys.executable'" /usr/bin/python Proposed fix: in pythonrun.c change "python" to "python2" here: static char *progname = "python"; |
This task depends upon
Closed by Stéphane Gaudreault (stephane)
Thursday, 06 January 2011, 12:20 GMT
Reason for closing: Fixed
Additional comments about closing: Workaround implemented in python2-2.7.1-4. I am looking forward to an upstream fix.
Thursday, 06 January 2011, 12:20 GMT
Reason for closing: Fixed
Additional comments about closing: Workaround implemented in python2-2.7.1-4. I am looking forward to an upstream fix.
I'm filing an upstream bug report.