[Jython-checkins] jython: #2607, #2620 Fix "Error loading Python DLL" (error code 14001)

jeff.allen jython-checkins at python.org
Sat Oct 21 08:41:40 EDT 2017


https://hg.python.org/jython/rev/d638b2c5ef28
changeset:   8135:d638b2c5ef28
user:        James Mudd <james.mudd at gmail.com>
date:        Sat Oct 21 12:24:14 2017 +0100
summary:
  #2607, #2620 Fix "Error loading Python DLL" (error code 14001)
The problem is caused by the python27.dll file being external to the
.exe See
https://stackoverflow.com/questions/19225132/pyinstaller-not-working-on-simple-helloworld-program

The fix here is to use PyInstaller with the "--onefile" or "-F" option.

This is also tidier as it results in having a combined executable.

Built with PyInstaller 3.2.1 on Python 2.7.13 on Windows-10-10.0.15063

files:
  NEWS                   |    1 +
  src/shell/jython.exe   |  Bin 
  src/shell/python27.dll |  Bin 
  3 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/NEWS b/NEWS
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@
 
 Development tip
   Bugs fixed
+    - [ 2607, 2620 ] Error loading Python DLL (error code 14001)
     - [ 2612 ] NPE while trying to load class
     - [ 2609 ] PyType.fromClass publication race (discovered in strptime and re)
     - [ 2608 ] Encoding problems with non-ascii host name
diff --git a/src/shell/jython.exe b/src/shell/jython.exe
index 04305a09cef83132a50cff9383940a0b395c4eb0..9f1235faa2ff2480db1215f775a32a056e82b7fc
GIT binary patch
[stripped]
diff --git a/src/shell/python27.dll b/src/shell/python27.dll
deleted file mode 100755
index f62238f1826f1c1230c0db7938c1133e1ca5ae5d..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
GIT binary patch
[stripped]

-- 
Repository URL: https://hg.python.org/jython


More information about the Jython-checkins mailing list