[Jepp-users] Antw: Re: DLL file missing
Brought to you by:
mrjohnson0
From: G. W. <Gue...@lc...> - 2015-06-23 16:44:10
|
Hi Nathan, indeed there is a jep.pyd in the build folder and in the $PYTHONHOME/DLLs. But the copy named jep.dll is missing. For testing purposes I renamed the jep.pyd to jep.dll and created an eclipse project, where I added jep-3.3.4.jar to the build path and pointed its native library location to the folder containing the dll. My java code looks like this: import jep.Run; public class JepTest1 { public static void main(String[] args) throws Exception{ jep.Run.main(new String[]{"C:\\Miniconda\\Lib\\site-packages\\jep\\console.py"}); } } I had bad luck again, since execution failed with the following message: jep.JepException: jep.JepException: <type 'exceptions.ImportError'>: dynamic module does not define init function (initjep) at jep.Jep.eval(Jep.java:422) at jep.Jep.<init>(Jep.java:260) at jep.Jep.<init>(Jep.java:203) at jep.Jep.<init>(Jep.java:186) at jep.Run.run(Run.java:53) at jep.Run.main(Run.java:157) at JepTest1.main(JepTest1.java:8) Caused by: jep.JepException: <type 'exceptions.ImportError'>: dynamic module does not define init function (initjep) regards, Günther >>> Nathan Jensen <ndj...@gm...> 23.06.2015 13:29 >>> Hi Günther, Thanks for the feedback and letting us know about your progress. Trying to get the build working more consistently against different platforms is a work in progress. The build should have produced a jep.pyd file. pyd files are very similar to DLLs. That should be available in your temporary build directory. The install command should have then renamed jep.pyd to jep.dll and placed it in $PYTHONHOME/DLLs. The UnsatisfiedLinkError is fairly common and somewhat dependent on how you launch your application. I documented this one on the wiki: https://github.com/mrj0/jep/wiki/Common-Problems#unsatisfied-link-error-no-jep-in-javalibrarypath Please let us know if you get it working or continue to have trouble. On Tue, Jun 23, 2015 at 3:51 AM, Günther Weidenholzer < Gue...@lc...> wrote: > Hi Nathan and Dave, > > thank you for the great support, here is my story up to now: > > I have installed a new installation of jdk in a folder without > whitespaces. > Then I reinstalled the Compiler: Microsoft Visual Studio C++ 2008 > Express edition. > > After that I tried pip install jep again. It failed --> I can send the > pip.log if you want. > Instead, I could run "python setup.py build" successfully, using the > git source !!! > > Unfortunately I experienced another problem: "python setup install" > fails with the following error: > > Traceback (most recent call last): > File "setup.py", line 122, in <module> > 'test': test, > File "C:\Miniconda\lib\distutils\core.py", line 151, in setup > dist.run_commands() > File "C:\Miniconda\lib\distutils\dist.py", line 953, in run_commands > self.run_command(cmd) > File "C:\Miniconda\lib\distutils\dist.py", line 972, in run_command > cmd_obj.run() > File "C:\Miniconda\lib\distutils\command\install.py", line 575, in run > self.run_command(cmd_name) > File "C:\Miniconda\lib\distutils\cmd.py", line 326, in run_command > self.distribution.run_command(command) > File "C:\Miniconda\lib\distutils\dist.py", line 972, in run_command > cmd_obj.run() > File "C:\Miniconda\lib\distutils\command\install_lib.py", line 97, in > run > outfiles = self.install() > File "F:\jep-master\commands\install_lib.py", line 12, in install > py_lib = get_python_lib_dir() > File "F:\jep-master\commands\python.py", line 23, in > get_python_lib_dir > return os.path.join(os.environ.get('PYTHONHOME'), 'DLLs') > File "C:\Miniconda\lib\ntpath.py", line 64, in join > result_drive, result_path = splitdrive(path) > File "C:\Miniconda\lib\ntpath.py", line 114, in splitdrive > if len(p) > 1: > TypeError: object of type 'NoneType' has no len() > > I could solve this problem by defining PYTHONHOME in the environment. > > > Ok, install finished, BUT: I can not find any DLL file either in the > build-folder or in the Python dirs. > Both on 32bit- and on the 64bit platform. Java comes with > "java.lang.UnsatisfiedLinkError: no jep in java.library.path" > > I think there is only a small step missing... Do you have any idea? > > Günther > > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > Jepp-users mailing list > Jep...@li... > https://lists.sourceforge.net/lists/listinfo/jepp-users > |