Re: [Jepp-users] Success story: building jep on win64
Brought to you by:
mrjohnson0
From: Nathan J. <ndj...@gm...> - 2015-06-24 12:24:30
|
That's great that you got it working! A summary would be much appreciated. I will probably take the summary and put a version of it on the wiki if that's ok. The error you're seeing now is related to readline which jep is using to mimic the python interactive console. In our most recent tests on Windows, we got an error importing readline but then it still worked.... I'm not sure why yours behaved differently. Can you try commenting out the import readline on line 11 of console.py and see if it works for you then? Actually probably comment out the entire try/except from lines 10-38. I'm not sure readline is actually required for it to work on Windows. If that doesn't work, can you send along your jep.bat file? It's generated by the setup process so maybe something went wrong in that step. On Wed, Jun 24, 2015 at 2:33 AM, Günther Weidenholzer < Gue...@lc...> wrote: > Hi Nathan, > > Thank you for your tips! I really apprechiate your work! > After deleting all copies of jep.pyd a simple java test programm worked > fine! > > import jep.Jep; > public class JepTest2 { > > public static void main(String[] args) throws Exception { > > Jep jep = new Jep(); > jep.set("x", 4); > jep.eval("a=2*x+5"); > jep.runScript("f:\\test.py"); > System.out.println(jep.getValue("c")); > jep.close(); > } > } > > > But I was not able to the jep.bat; A C++ Runtime error appeared. See > the screenshot attached. > My java runtime is still located in the "program files" folder. Might > this be a problem? > > The console output looks like this: > > .... > c:\Miniconda\DLLs\jep>java -classpath > c:\miniconda\lib\jep\jep-3.3.4.jar jep.Run > "c:\miniconda\Lib\site-packages\jep\console.py" > jep.JepException: jep.JepException: <type 'exceptions.WindowsError'>: > [Error 1114] Eine DLL-Initialisierungsroutine ist fehlgeschlagen > at jep.Jep.eval(Jep.java:422) > at jep.Run.run(Run.java:63) > at jep.Run.main(Run.java:157) > Caused by: jep.JepException: <type 'exceptions.WindowsError'>: [Error > 1114] Eine DLL-Initialisierungsroutine ist fehlgeschlagen > at > > c:\miniconda\lib\ctypes\__init__.__init__(c:\miniconda\lib\ctypes\__init__.py:365) > at > > c:\miniconda\lib\ctypes\__init__.LoadLibrary(c:\miniconda\lib\ctypes\__init__.py:443) > at > > c:\miniconda\lib\site-packages\pyreadline\console\console.<module>(c:\miniconda\lib\site-packages\pyreadline\console\console.py:610) > at > > c:\miniconda\lib\site-packages\pyreadline\console\__init__.<module>(c:\miniconda\lib\site-packages\pyreadline\console\__init__.py:15) > at > > c:\miniconda\lib\site-packages\pyreadline\__init__.<module>(c:\miniconda\lib\site-packages\pyreadline\__init__.py:11) > at > > c:\miniconda\lib\site-packages\readline.<module>(c:\miniconda\lib\site-packages\readline.py:6) > at > > c:\miniconda\lib\site-packages\jep\console.<module>(c:\miniconda\lib\site-packages\jep\console.py:11) > > > > Any idea about the "1114 a dynamic link library (dll) initialization > routine failed" error? > > Btw, later, I will post a summary of all the steps which brought me to > a successful installation of jep 3.3.4 on win64. > > > regards, > Günther > > |