From: James K. <ji...@sr...> - 2018-09-07 01:52:33
|
Greetings, We have a maven job which installs Jython, Sphinx, a custom Pygments package we wrote that utilizes a Java library to parse a semantic reasoning language, and all the dependencies so we can generate documentation with color coded and formatted language examples. FWIW: all of our developers have historically been working on macOS or Linux, and haven’t had a Windows developer in a while (like 2 years). Anyways this user is getting this error: [INFO] --- maven-antrun-plugin:1.8:run (install-sphinx-doc) @ sphinx-doc --- [INFO] Executing tasks main: [java] Performing silent installation [java] 10 % [java] 20 % [java] 30 % [java] 40 % [java] 50 % [java] 60 % [java] 70 % [java] Generating start scripts ... [java] Installing pip and setuptools [java] 90 % [java] Error loading Python DLL: Z:\source\sunflower-docs\doc\sphinx-doc\target\jython\bin\python27.dll (error code 14001) [java] 100 % [java] Congratulations! You successfully installed Jython 2.7.1 to directory Z:\source\sunflower-docs\doc\sphinx-doc\target\jython. [java] Z:\source\sunflower-docs\doc\sphinx-doc\target\jython\bin\pip install --build C:\Users\jimkl\AppData\Local\Temp\pip_build_1536281438690 Sphinx==1.5.2 sphinxcontrib-plantuml==0.11 sphinx-rtd-theme==0.3.0 [java] Exception in thread "main" java.io.IOException: Cannot run program "Z:\source\sunflower-docs\doc\sphinx-doc\target\jython\bin\pip": CreateProcess error=2, The system cannot find the file specified [java] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) [java] at com.sri.sphinx.doc.InstallPhase2.installRequirements(InstallPhase2.java:165) [java] at com.sri.sphinx.doc.InstallPhase2.run(InstallPhase2.java:58) [java] at com.sri.sphinx.doc.InstallPhase2.main(InstallPhase2.java:42) [java] Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified [java] at java.lang.ProcessImpl.create(Native Method) [java] at java.lang.ProcessImpl.<init>(ProcessImpl.java:386) [java] at java.lang.ProcessImpl.start(ProcessImpl.java:137) [java] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) [java] ... 3 more [java] Java Result: 1 We are running this install with the following Java code: List<String> installArgs = new ArrayList<String>(Arrays.asList(new String[]{ "--silent", "--directory", jythonHomeDir.toAbsolutePath().toString(), "--type", "standard", "--include", "mod", "ensurepip", "--exclude", "demo", "doc", "src" })); org.python.util.install.Installation.main(installArgs.toArray(new String[installArgs.size()])); I had located this bug report here: http://bugs.jython.org/issue2620 And this note in the Dev Guide… https://jython-devguide.readthedocs.io/en/latest/setup_jy.html#the-launcher-jython-exe which doesn’t seem to apply to me as I’m not checking out the source myself… Is there an updated jython-installer that accommodates this change? Is there some known workaround I can follow that doesn’t require me to refactor our install? Thanks, * Jim Klo |