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


Hi Priyatharsan,

Your problem has, as you seem to indicate, something to do with that the python wrapper does not find the java dll.

You need to have a jdk/jre installed, and the easiest way is likely to use a java-jdk conda-package that is installed in your anaconda tree. This should be accessed automatically by the python orekit package on  windows if available. To install it:

conda install -c https://conda.anaconda.org/cyclus java-jdk

Otherwise if you have a system JDK/JRE you need to set the JCC_JDK and PATH variables by hand in your control settings.

Let me know how it works,

Best Regards

On Fri, Apr 8, 2016 at 2:09 AM, Priyatharsan Rajasekar, Mr <priyatharsan.rajasekar@mail.mcgill.ca> wrote:
Dear Sir,

My name is Priyatharsan. I am a Graduate student, pursuing M.Eng in Mechanical Engineerin at McGill University, Canada. I am working on a project which requires Orekit. I am new to python as well. I followed the installation procedure provided in the website:

But I am getting this error while running this syntax:

import orekit

ImportError         Traceback (most recent call last)
<ipython-input-1-307c30f2343b> in <module>()
----> 1 import orekit

C:\Anaconda2\lib\site-packages\orekit\__init__.py in <module>()
      2 os.environ["PATH"] = r"C:\Anaconda2\Library\jre\bin\server" + os.pathsep + os.environ["PATH"]
----> 4 import os, _orekit
      6 __dir__ = os.path.abspath(os.path.dirname(__file__))

ImportError: DLL load failed: The specified module could not be found.

I can discretely understand from the error that there could be some problem with the PATH. I tried changing the environmental variables from Control Panel for the PATH manually, but no vain. Can you guide me with this? It would be much grateful for my project to proceed further. Also, I do not have this path in specific : C:\Anaconda2\Library\jre\bin\server, when I manually tried to go to that path, there is no “jre” folder in “Library”.

Looking forward to hear from you. Thank you in advance.

Priyatharsan Rajasekar
Graduate Student,
McGill University

Petrus Hyvönen, Uppsala, Sweden
Mobile Phone/SMS:+46 73 803 19 00