Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479674 - dev-vcs/qbzr-0.23.0 - /usr/bin/python2.7: can't open file '/usr/scripts/bzr': [Errno 2] No such file or directory
Summary: dev-vcs/qbzr-0.23.0 - /usr/bin/python2.7: can't open file '/usr/scripts/bzr':...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-03 21:57 UTC by Sławomir Nizio
Modified: 2017-08-30 18:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sławomir Nizio 2013-08-03 21:57:49 UTC
This happens for some commands, for example: bzr qbranch, bzr qupdate.
Reason seems to be that the Python wrapper does not pass the actual argv[0] (/usr/bin/bzr-python2.7 was passed in my case), at least with dev-vcs/bzr-2.5.1-r1.

Relevant lines from /usr/lib/python2.7/site-packages/bzrlib/plugins/qbzr/lib/subprocess.py:

script = sys.argv[0]
...
script = os.path.abspath(script)
if os.path.basename(script) != "bzr":

after hacking this if condition, I was able to get rid of the error.

This bug is related to both bzr (how it's run) and qbzr (the 'if' condition).


dev-vcs/bzr-2.5.1-r1 was built with the following:
USE="curl sftp -doc -test" PYTHON_TARGETS="python2_7 -python2_6"

dev-vcs/qbzr-0.23.0 was built with the following:
USE=""

dev-python/python-exec-0.3.1 was built with the following:
USE="" PYTHON_TARGETS="jython2_5 jython2_7 pypy1_9 pypy2_0 python2_5 python2_6 python2_7 python3_1 python3_2 python3_3"

# ls -l /usr/bin/bzr
lrwxrwxrwx 1 root root 11 07-14 21:34 /usr/bin/bzr -> python-exec

Reproducible: Always
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2013-08-10 10:59:46 UTC
Unfortunately I cannot reproduce.  Please try with QBZR 0.23.1, also I will commit Bazaar 2.6.0 shortly.
Comment 2 Sławomir Nizio 2013-08-10 12:00:10 UTC
It didn't help.
Did you try to (and if not, could you) run bzr qupdate and let it update a working directory (ie. not only display a window)? Please don't mind me asking this, I'm wondering what is going on with it.
Comment 3 DavidH 2013-10-17 16:14:47 UTC
Just confirming the ability to reproduce this on qbzr 0.23.1 and bzr 2.5.1-r1.
Comment 4 Pacho Ramos gentoo-dev 2017-08-30 18:18:35 UTC
is this happening on a fully updated system? (python handled has changed a lot since 2013)