Hi Folks,

I've run into a little problem after several years of happy pyinstalling.

I'm using pyinstaller from Python 2.7.15 installed from python.org on 
Windows 10.

I've installed it via pip and have seen this problem with the latest 
version and the dev version.

The problem is that the app cannot import a .pyd library which is in the 
dist directory. This .pyd is built using swig from msys2. According to a 
dll dependencies checker the .pyd under the dist dir has everything it 
needs.

I am able to import this .pyd running python from cmd.exe.

I have run using debug=1 and it doesn't give any indication of a problem 
right until I see "Failed to execute script".

Running from a cmd.exe produces no console output but if I run from an 
msys2 console I see:

(master) $ ./InstrumentationBrowser.exe
Traceback (most recent call last):
  File "InstrumentationBrowser.py", line 8, in <module>
    import InstrumentationModel
  File 
"c:\users\viasat\appdata\local\temp\pip-install-zh9rc1\PyInstaller\PyInstaller\loader\pyimod03_importers.py",
 
line 389, in load_module
  File "InstrumentationModel.py", line 13, in <module>
    from . import _InstrumentationModel
ImportError: cannot import name _InstrumentationModel

I've attached the output from the pyinstaller command and the spec file I 
am using.

I've also put a zip of the dist dir here: http://immortalsunited.com/files/
dist.zip

Like I said I've been a happy user for a couple of years and just started 
seeing this problem. Unfortunately I can't say what the last working 
version was.

thanks!!!
-Jim.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/1d502413-c66d-4092-8be7-ce9402ee2967%40googlegroups.com.
(master) $ pyinstaller --onedir InstrumentationBrowser-Windows.spec
109 INFO: PyInstaller: 4.0.dev0+5d4bbbeea2
109 INFO: Python: 2.7.17
109 INFO: Platform: Windows-10-10.0.18362
109 INFO: UPX is not available.
109 INFO: Extending PYTHONPATH with paths
['C:\\Users\\viasat\\Git\\PyInstrumentation\\pyInstrumentation',
 'C:\\Git\\PyInstrumentation\\pyInstrumentation']
109 INFO: checking Analysis
109 INFO: Building Analysis because Analysis-00.toc is non existent
109 INFO: Initializing module dependency graph...
125 INFO: Caching module graph hooks...
125 INFO: Caching module dependency graph...
141 INFO: running Analysis Analysis-00.toc
156 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final executable
  required by c:\python27\python.exe
437 INFO: Found 
C:\WINDOWS\WinSxS\Manifests\amd64_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_3da38fdebd0e6822.manifest
437 INFO: Found 
C:\WINDOWS\WinSxS\Manifests\amd64_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_acd388d7e1d8689f.manifest
437 INFO: Found 
C:\WINDOWS\WinSxS\Manifests\amd64_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9619_none_accdd623e1ddaffe.manifest
656 INFO: Searching for assembly 
amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.9619_none ...
656 INFO: Found manifest 
C:\WINDOWS\WinSxS\Manifests\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9619_none_08e065a3a84109b0.manifest
672 INFO: Searching for file msvcr90.dll
672 INFO: Found file 
C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9619_none_08e065a3a84109b0\msvcr90.dll
672 INFO: Searching for file msvcp90.dll
672 INFO: Found file 
C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9619_none_08e065a3a84109b0\msvcp90.dll
672 INFO: Searching for file msvcm90.dll
672 INFO: Found file 
C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9619_none_08e065a3a84109b0\msvcm90.dll
891 INFO: Found 
C:\WINDOWS\WinSxS\Manifests\amd64_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_3da38fdebd0e6822.manifest
891 INFO: Found 
C:\WINDOWS\WinSxS\Manifests\amd64_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_acd388d7e1d8689f.manifest
891 INFO: Found 
C:\WINDOWS\WinSxS\Manifests\amd64_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9619_none_accdd623e1ddaffe.manifest
891 INFO: Adding redirect Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 
30729, 9619)
937 INFO: Analyzing InstrumentationBrowser.py
4906 INFO: Processing pre-safe import module hook   _xmlplus
5266 INFO: Processing pre-find module path hook   distutils
5266 INFO: distutils: retargeting to non-venv dir 'c:\\python27\\lib'
6031 INFO: Processing module hooks...
6031 INFO: Loading module hook "hook-distutils.py"...
6031 INFO: Loading module hook "hook-sysconfig.py"...
6031 INFO: Loading module hook "hook-xml.py"...
6110 INFO: Loading module hook "hook-httplib.py"...
6110 INFO: Loading module hook "hook-encodings.py"...
6781 INFO: Loading module hook "hook-_tkinter.py"...
7000 INFO: checking Tree
7000 INFO: Building Tree because Tree-00.toc is non existent
7000 INFO: Building Tree Tree-00.toc
7266 INFO: checking Tree
7266 INFO: Building Tree because Tree-01.toc is non existent
7266 INFO: Building Tree Tree-01.toc
7312 INFO: Looking for ctypes DLLs
7343 INFO: Analyzing run-time hooks ...
7343 INFO: Including run-time hook 'pyi_rth__tkinter.py'
7359 INFO: Looking for dynamic libraries
7985 INFO: Looking for eggs
7985 INFO: Using Python library C:\WINDOWS\system32\python27.dll
7985 INFO: Found binding redirects:
[BindingRedirect(name=u'Microsoft.VC90.CRT', language=None, arch=u'amd64', 
oldVersion=(9, 0, 21022, 8), newVersion=(9, 0, 30729, 9619), 
publicKeyToken=u'1fc8b3b9a1e18e3b')]
8016 INFO: Warnings written to 
C:\Users\viasat\Git\PyInstrumentation\pyInstrumentation\build\InstrumentationBrowser-Windows\warn-InstrumentationBrowser-Windows.txt
8062 INFO: Graph cross-reference written to 
C:\Users\viasat\Git\PyInstrumentation\pyInstrumentation\build\InstrumentationBrowser-Windows\xref-InstrumentationBrowser-Windows.html
8344 INFO: checking PYZ
8344 INFO: Building PYZ because PYZ-00.toc is non existent
8344 INFO: Building PYZ (ZlibArchive) 
C:\Users\viasat\Git\PyInstrumentation\pyInstrumentation\build\InstrumentationBrowser-Windows\PYZ-00.pyz
8953 INFO: Building PYZ (ZlibArchive) 
C:\Users\viasat\Git\PyInstrumentation\pyInstrumentation\build\InstrumentationBrowser-Windows\PYZ-00.pyz
 completed successfully.
9031 INFO: checking PKG
9031 INFO: Building PKG because PKG-00.toc is non existent
9031 INFO: Building PKG (CArchive) PKG-00.pkg
9093 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
9093 INFO: Bootloader 
c:\python27\lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw_d.exe
9093 INFO: checking EXE
9093 INFO: Building EXE because EXE-00.toc is non existent
9093 INFO: Building EXE from EXE-00.toc
9093 INFO: Copying icons from ['InstrumentationBrowser.ico']
9110 INFO: Writing RT_GROUP_ICON 0 resource with 20 bytes
9110 INFO: Writing RT_ICON 1 resource with 227080 bytes
9110 INFO: Appending archive to EXE 
C:\Users\viasat\Git\PyInstrumentation\pyInstrumentation\build\InstrumentationBrowser-Windows\InstrumentationBrowser.exe
9125 INFO: Building EXE from EXE-00.toc completed successfully.
9125 INFO: checking COLLECT
9125 INFO: Building COLLECT because COLLECT-00.toc is non existent
9125 INFO: Building COLLECT COLLECT-00.toc
9141 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 
30729, 9619)
12594 INFO: Building COLLECT COLLECT-00.toc completed successfully.

Attachment: InstrumentationBrowser-Windows.spec
Description: Binary data

Reply via email to