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

Problem when LD_LIBRARY_PATH is required to run python #22

Open
ajanin opened this issue Oct 29, 2015 · 3 comments
Open

Problem when LD_LIBRARY_PATH is required to run python #22

ajanin opened this issue Oct 29, 2015 · 3 comments

Comments

@ajanin
Copy link

ajanin commented Oct 29, 2015

I'm in a managed environment using my own version of python. As a result, I need to set LD_LIBRARY_PATH to get python to work. In clonevirtualenv.py, around line 63, a python subprocess is opened, but the environment it uses is set to {}. To get it to work in my environment, I changed that to:

     env={'LD_LIBRARY_PATH': os.environ.get('LD_LIBRARY_PATH')},            

I'm adding this issue mostly just to document it in case others search for it rather than suggesting it as a general solution.

@gregswift
Copy link

Would definitely like to see this added. It jacks with us because we use SCLs (software collections)

@nickaj
Copy link

nickaj commented Sep 28, 2016

I'd like to see this added too. I'm working with large clusters and supercomputers where Python is usually provided as a module and requires pulling in LD_LIBRARY_PATH.

@henryzhongsc
Copy link

I needed to clone a venv on a cluster as well, and this saved the day. A big thank you from 9 years later :)

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

4 participants