python - Aptana (eclipse) does not recognize modifications to PATH written in .bashrc -
i encountered , solved this problem earlier day , run similar in context.
when fire python (2.7) in mac terminal (mac os lion) , do
import oursql
everything fine.
when same within python script in aptana ide following error.
traceback (most recent call last): file "/users/salah/documents/aptana studio 3 workspace/pubmap/src/scripts/parse_all_dblp_authors.py", line 10, in <module> import oursql importerror: dlopen(/library/python/2.7/site-packages/oursql.so, 2): library not loaded: libmysqlclient.18.dylib referenced from: /library/python/2.7/site-packages/oursql.so reason: image not found
this same error in problem above used solve adding
path=${path}:/usr/local/mysql/bin export dyld_library_path="$dyld_library_path:/usr/local/mysql/lib/"
to .bashrc and
if [ -f ~/.bashrc ]; source ~/.bashrc fi
to .bash_profile.
why have no effect on aptana? way aptana derivate of eclipse relevant eclipse should relevant aptana, - @ least think so...
edit:
a suggestion peter in answer below brought me possible solution. set path right interpreter options of python in aptana/eclipse/pydev. see following screenshot:
it's been while since used pydev, pydev docs on configuring interpreter worth look.
python ides let configure environment python run in when run ide.
also, having .bashrc change $path change environment variable bash sessions. unless run aptana bash changing .bashrc won't change envirnment variables aptana gets. see setting-environment-variables-in-os-x.
Comments
Post a Comment