Well, it looks like I installed the wrong bitedness of pywin32.  Got that 
fixed, but still having a problem running a packaged app.  I'll post a 
separate message, if I cannot figure that one out.

Thanks,

Randy

On Friday, December 11, 2020 at 1:30:57 AM UTC-7 [email protected] wrote:

> Hello,
>
> Unfortunately, I had my python environment get messed up and had to create 
> a new one.  I learned a hard lesson about having a backup of the 
> environment.  I created a new environment using MSYS2, but it meant using a 
> newer version of python and all the needed packages.
>
> When trying to run a packaged app with this new environment, I get this 
> error.
>
> *ImportError: Module 'pywintypes' isn't in frozen sys.path 
> ['...\\base_library.zip', *
>
> Windows 10 Pro
> Python 3.8.6
> PyInstaller 4.1
>
> It seems that I cannot try an earlier version of PyInstaller, since 
> nothing below 4.1 supports Python 3.8.  MSYS2 doesn't let me install an 
> earlier version of Python either, so I cannot replicate my old environment.
>
> Here's the full text when trying to run the app:
>
>
> Z:\GrandPrix\Source\Workspace\LisanoEnterprises\derbyManager\minified\derbyManager\dist\GrandPrix>grandprix
> [18548] PyInstaller Bootloader 3.x
> [18548] LOADER: executable is 
> Z:\GrandPrix\Source\Workspace\LisanoEnterprises\derbyManager\minified\derbyManager\dist\GrandPrix\GrandPrix.exe
> [18548] LOADER: homepath is 
> Z:\GrandPrix\Source\Workspace\LisanoEnterprises\derbyManager\minified\derbyManager\dist\GrandPrix
> [18548] LOADER: _MEIPASS2 is NULL
> [18548] LOADER: archivename is 
> Z:\GrandPrix\Source\Workspace\LisanoEnterprises\derbyManager\minified\derbyManager\dist\GrandPrix\GrandPrix.exe
> [18548] LOADER: 
> Z:\GrandPrix\Source\Workspace\LisanoEnterprises\derbyManager\minified\derbyManager\dist\GrandPrix\GrandPrix.exe
>  
> contains a digital signature
> [18548] LOADER: No need to extract files to run; setting extractionpath to 
> homepath
> [18548] LOADER: 
> SetDllDirectory(Z:\GrandPrix\Source\Workspace\LisanoEnterprises\derbyManager\minified\derbyManager\dist\GrandPrix)
> [18548] LOADER: Already in the child - running user's code.
> [18548] LOADER: Python library: 
> Z:\GrandPrix\Source\Workspace\LisanoEnterprises\derbyManager\minified\derbyManager\dist\GrandPrix\libpython3.8.dll
> [18548] LOADER: Loaded functions from Python library.
> [18548] LOADER: Manipulating environment (sys.path, sys.prefix)
> [18548] LOADER: sys.prefix is 
> Z:\GrandPrix\Source\Workspace\LisanoEnterprises\derbyManager\minified\derbyManager\dist\GrandPrix
> [18548] LOADER: Pre-init sys.path is 
> Z:\GrandPrix\Source\Workspace\LisanoEnterprises\derbyManager\minified\derbyManager\dist\GrandPrix\base_library.zip;Z:\GrandPrix\Source\Workspace\LisanoEnterprises\derbyManager\minified\derbyManager\dist\GrandPrix
> [18548] LOADER: Setting runtime options
> [18548] LOADER: Initializing python
> [18548] LOADER: Overriding Python's sys.path
> [18548] LOADER: Post-init sys.path is 
> Z:\GrandPrix\Source\Workspace\LisanoEnterprises\derbyManager\minified\derbyManager\dist\GrandPrix\base_library.zip;Z:\GrandPrix\Source\Workspace\LisanoEnterprises\derbyManager\minified\derbyManager\dist\GrandPrix
> [18548] LOADER: Setting sys.argv
> [18548] LOADER: setting sys._MEIPASS
> [18548] LOADER: importing modules from CArchive
> [18548] LOADER: extracted struct
> [18548] LOADER: callfunction returned...
> [18548] LOADER: extracted pyimod01_os_path
> [18548] LOADER: callfunction returned...
> [18548] LOADER: extracted pyimod02_archive
> [18548] LOADER: callfunction returned...
> [18548] LOADER: extracted pyimod03_importers
> [18548] LOADER: callfunction returned...
> [18548] LOADER: Installing PYZ archive with Python modules.
> [18548] LOADER: PYZ archive: PYZ-00.pyz
> [18548] LOADER: Running pyiboot01_bootstrap.py
> [18548] LOADER: Running pyi_rth_multiprocessing.py
> [18548] LOADER: Running pyi_rth_gdkpixbuf.py
> [18548] LOADER: Running pyi_rth_glib.py
> [18548] LOADER: Running pyi_rth_pkgres.py
> [18548] LOADER: Running pyi_rth_win32api.py
> Traceback (most recent call last):
>   File "PyInstaller\hooks\rthooks\pyi_rth_win32api.py", line 20, in 
> <module>
>   File 
> "C:\msys64\mingw32\lib\python3.8\site-packages\PyInstaller\loader\pyimod03_importers.py",
>  
> line 493, in exec_module
>     exec(bytecode, module.__dict__)
>   File "pywintypes.py", line 105, in <module>
>   File "pywintypes.py", line 38, in __import_pywin32_system_module__
> ImportError: Module 'pywintypes' isn't in frozen sys.path 
> ['Z:\\GrandPrix\\Source\\Workspace\\LisanoEnterprises\\derbyManager\\minified\\derbyManager\\dist\\GrandPrix\\base_library.zip',
>  
> 'Z:\\GrandPrix\\Source\\Workspace\\LisanoEnterprises\\derbyManager\\minified\\derbyManager\\dist\\GrandPrix']
> [18548] Failed to execute script pyi_rth_win32api
> [18548] LOADER: OK.
> [18548] LOADER: Manually flushing stdout and stderr
> [18548] LOADER: Cleaning up Python interpreter.
>
> Any help would be appreciated.
>
> Thanks,
>
> Randy
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/7aa43170-db69-4545-83db-6e488e45918bn%40googlegroups.com.

Reply via email to