[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orekit Users] Orekit Python Wrapper Issue with Mac OS?



Hi Marissa,

On Mon, 2017-09-11 at 17:58 +0000, Menzel, Marissa R. (GSFC-6740)[GSFC INTERNS] wrote:
Hello, 

I tried to download the ore kit python wrapper package. I did conda install (conda install -c http://conda.anaconda.org/ssc orekit) and the terminal did say it successfully downloaded. 

As soon as I tried to import orekit in Jupyter Notebooks I received the following error message. 

Code: 
import orekit 
orekit.initVM() 

Error: 
ImportError                               Traceback (most recent call last) 
<ipython-input-2-2f188efada3d> in <module>() 
----> 1 import orekit 
      2 orekit.initVM() 

/Users/x/anaconda/lib/python2.7/site-packages/orekit/__init__.py in <module>() 
      1 
----> 2 import os, _orekit 
      3 
      4 __dir__ = os.path.abspath(os.path.dirname(__file__)) 
      5 

ImportError: dlopen(/Users/x/anaconda/lib/python2.7/site-packages/orekit/_orekit.so, 2): Library not loaded: @rpath/libjava.dylib 
  Referenced from: /Users/x/anaconda/lib/python2.7/site-packages/orekit/_orekit.so 
  Reason: image not found 

Is Java installed and is libjava.dylib on your dynamic linker's path? On Linux you can print the libraries known to ld with `ldconfig -v`. Not sure what the command is on Mac.

Best Regards,
Evan


From my internet searching it seems like it may be a dylib issue with the version I have of Mac (El Capitan 10.11.6). I cannot change my Mac version as it is a work computer. I have spent many hours unsuccessfully googling any and any help would be appreciated.

Thank you,
Marissa