Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiline shebang is wrong sometimes #80

Open
certik opened this issue Jun 14, 2013 · 3 comments
Open

multiline shebang is wrong sometimes #80

certik opened this issue Jun 14, 2013 · 3 comments

Comments

@certik
Copy link
Member

certik commented Jun 14, 2013

Sometimes I get this:

ondrej@kittiwake:/tmp$ ipython
launcher:Unable to launch '/nh/nest/u/ondrej/ext/py27/bin/../../../../../../../auto/netscratch/ondrej/opt/python/nkcg/bin/python2.7' (No such file or directory)
ondrej@kittiwake:/tmp$ 

and I think this is caused by the following fact:

$ ls /nh/nest/u/ondrej/ext/py27/bin/../../../../../../../auto/netscratch/ondrej/opt/python/nkcg/bin/python2.7
ls: cannot access /nh/nest/u/ondrej/ext/py27/bin/../../../../../../../auto/netscratch/ondrej/opt/python/nkcg/bin/python2.7: No such file or directory
$ ls /nh/nest/u/ondrej/ext/py27/bin/../../../../../../../../auto/netscratch/ondrej/opt/python/nkcg/bin/python2.7
/nh/nest/u/ondrej/ext/py27/bin/../../../../../../../../auto/netscratch/ondrej/opt/python/nkcg/bin/python2.7

it's missing one ../ in the path.

@certik
Copy link
Member Author

certik commented Jun 14, 2013

Even other links are wrong, like this one is dead:

$ ll /nh/nest/u/ondrej/ext/py27/bin/ipython 
lrwxrwxrwx 1 ondrej cnls 72 Jun 14 12:45 /nh/nest/u/ondrej/ext/py27/bin/ipython -> ../../../../../../../auto/netscratch/ondrej/opt/ipython/hpv7/bin/ipython

So some relative path calculation gets it wrong when installing the profile.

@certik
Copy link
Member Author

certik commented Jun 14, 2013

@dagss -- any ideas where exactly this is set? It must be some setup of symbolic links on my system, that hashdist gets surprised by, but I am not quite sure where this relative thing is calculated.

@dagss
Copy link
Member

dagss commented Jun 21, 2013

hashdist.core.fileutils.silent_relative_symlink calling os.path.relpath, called from hashdist.core.links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants