-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels