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

Assuming static names can lead to a wrong package path from python. #10

Open
lounick opened this issue Nov 30, 2017 · 2 comments
Open

Comments

@lounick
Copy link

lounick commented Nov 30, 2017

Autoproj.env_set 'PYTHONPATH', "/home/assert/.local/lib/python3.4/site-packages:/home/taste/.local/lib/python3.5/site-packages"

This also leads to the TASTE tools not to work if one sources the env.sh file. TASTE operation shouldn't be affected by the ESROCOS toolchain.

Before sourcing:

>>> import sys
>>> print sys.path
['', '/home/esrocos/tool-inst/include/ocarina/runtime/python', '/home/esrocos/tool-inst/lib', '/home/esrocos/autogen-test/binary.c/binaries', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/esrocos/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0']

After sourcing:

>>> import sys
>>> print sys.path
['', '/home/assert/.local/lib/python3.4/site-packages', '/home/taste/.local/lib/python3.5/site-packages', '/home/esrocos/tool-inst/include/ocarina/runtime/python', '/home/esrocos/tool-inst/lib', '/home/esrocos/autogen-test/binary.c/binaries', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/esrocos/esrocos_workspace/install/pip/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0']
@maltewi
Copy link
Member

maltewi commented Dec 20, 2017

TASTE operation shouldn't be affected by the ESROCOS toolchain.
Definitely true!

But I think we need more information to fix it. Are you referring to a clash of packages, that occurs because python3 and python 2 is present on the system? In what you posted under After sourcing I see there are for instance /home/assert/.local/lib/python3.4/site-packages and /usr/local/lib/python2.7/dist-packages. This could cause trouble.

Could you please provide steps to reproduce. E.g:

  1. Execute program x
  2. source env.sh
  3. Execute program x again and see it fail

@mmunoz-gmv
Copy link
Contributor

This is related to: ESROCOS/package_set-core#6

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

No branches or pull requests

3 participants