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

DYLD_LIBRARY_PATH is not present in IPython #17

Open
mdpiper opened this issue Jun 3, 2016 · 0 comments
Open

DYLD_LIBRARY_PATH is not present in IPython #17

mdpiper opened this issue Jun 3, 2016 · 0 comments

Comments

@mdpiper
Copy link
Member

mdpiper commented Jun 3, 2016

Dakota uses DYLD_LIBRARY_PATH to reference its shared libraries on Mac OS X. It appears that Anaconda IPython removes this environment variable. It's present in Python, however. For example:

$ echo $DYLD_LIBRARY_PATH
/usr/local/dakota-6.1.0.Darwin.i386/bin:/usr/local/dakota-6.1.0.Darwin.i386/lib

$ which python ipython
/Applications/anaconda/bin/python
/Applications/anaconda/bin/ipython

$ python -c "import os; print(os.environ.get('DYLD_LIBRARY_PATH'))"
/usr/local/dakota-6.1.0.Darwin.i386/bin:/usr/local/dakota-6.1.0.Darwin.i386/lib
$ ipython -c "import os; print(os.environ.get('DYLD_LIBRARY_PATH'))"
None

As a workaround, I can set DYLD_LIBRARY_PATH with

os.environ['DYLD_LIBRARY_PATH'] = os.environ['DAKOTA_DIR'] + '/bin:' + os.environ['DAKOTA_DIR'] + '/lib'

For more information, see ipython/ipython#8878.

mdpiper added a commit that referenced this issue Jun 13, 2016
This is a utility to address #17.
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

1 participant