From: James K. <ji...@sr...> - 2018-09-09 02:41:14
|
I believe if there were snapshot builds of the jython-installer were published that would provide a solution to a wider audience. I think a found an interim solution as we do utilize Artifactory for project artifacts. I was able to pull the current master branch, collect the Informix and Oracle JDBC jars and produce a full-build on my Mac which allowed me publish the jython-installer.jar to our artifact repository with a different version (2.7.2a1). That seems to work for my users. I was then able to use the jython-installer on the win10 vm and everything just worked. 2.7.0 poses other problems with Sphinx dependencies. Ultimately I may need to transition to JEP If Python 3 support is eventually needed - however I’m sticking with Jython as long as I can. - JK Sent from my iPhone > On Sep 8, 2018, at 10:53 AM, Jeff Allen <ja...@fa...> wrote: > > I am not entirely sure of the mechanism, but it is something to do with the C runtime DLL having to match the one against which the executable was built. See https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F32457341%2Fpyinstaller-and-onefile-build-causes-error-loading-python-dll-error-code-14001&data=01%7C01%7Cjim.klo%40sri.com%7C3908dcd03c3d421c683808d615b3ed9c%7C40779d3379c44626b8bf140c4d5e9075%7C1&sdata=6%2BZm%2Bsj2PFF7Jy2xpTEIGXVQsLEroMcBfapbY8l9QCU%3D&reserved=0, which suggests you can get the missing dependency from the MS site. Or it may be that installing a CPython 2.7 will supply it. > > If that does not work it may be necessary to go down to 2.7.0 until 2.7.2 is available. (Sorry, no simple date available.) > > It would be useful to hear how you get on. This is a tricky one to reproduce because jython.exe always runs perfectly on the machine where you built it. The section in the dev-guide captures what we believe is the necessary incantation to package the dependencies so it works everywhere in 2.7.2. > > I'm assuming in all this that you actually need Jython for other work. If this is only happening as part of the Sphinx plug-in, later versions (that use Python 3) have found a way to provide CPython as a binary. > > > Jeff Allen > >> On 07/09/2018 02:19, James Klo wrote: >> >> 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)* >> >> > <snip> > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fjython-users&data=01%7C01%7Cjim.klo%40sri.com%7C3908dcd03c3d421c683808d615b3ed9c%7C40779d3379c44626b8bf140c4d5e9075%7C1&sdata=q2DKsfO9U2%2ByfBbP0UdZtV7vYK3HAST7hadvx5vunxQ%3D&reserved=0 |