pyinstaller and pythonnet are not friends!

557 views
Skip to first unread message

Igor Futritski

unread,
Jan 26, 2016, 4:06:12 AM1/26/16
to PyInstaller
Couldn't make the simple script below to compile and run on both 32 and 64 bit systems:

import clr

print 'ok'

1. anaconda 64 bit
2. pythonnet
3. I can build an exe file: pyinstaller clr_min_test.py
4. If I run it, it complains about missing python.runtime.dll
5. if I copy python.runtime.dll .exe folder, I get:

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Python.Runtime, Version=4.0.0.1, Culture=neutral, PublicKeyToken=5000fea6cba702dd' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at clrModule.initclr()

Please help.
Igor

Denis Akhiyarov

unread,
Oct 8, 2016, 2:26:26 PM10/8/16
to PyInstaller, igo...@gmail.com
This should have been fixed in the master of pyinstaller as described in this issue:

Reply all
Reply to author
Forward
0 new messages