You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There may be ImportError in pythoncom and IOError in PyInstaller if you are using Anaconda Python.
Traceback (most recent call last):
File "<string>", line 11, in <module>
File "C:\Anaconda\lib\site-packages\pythoncom.py", line 3, in <module>
pywintypes.__import_pywin32_system_module__("pythoncom", globals())
File "C:\Anaconda\lib\site-packages\win32\lib\pywintypes.py", line 98, in __import_pywin32_system_module__raiseImportError("No system module '%s' (%s)"% (modname, filename))
ImportError: No system module 'pythoncom' (pythoncom27.dll)
Traceback (most recent call last):
File "C:\Anaconda\Scripts\pyinstaller-script.py", line 9, in <module>
load_entry_point('PyInstaller==2.1', 'console_scripts', 'pyinstaller')()
File "C:\Anaconda\lib\site-packages\PyInstaller\main.py", line 88, in run
run_build(opts, spec_file, pyi_config)
File "C:\Anaconda\lib\site-packages\PyInstaller\main.py", line 46, in run_build
PyInstaller.build.main(pyi_config, spec_file, **opts.__dict__)
File "C:\Anaconda\lib\site-packages\PyInstaller\build.py", line 1924, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C:\Anaconda\lib\site-packages\PyInstaller\build.py", line 1873, in buildexecfile(spec)
File "build.spec", line 34, in <module>
icon='images\\logo_tray.ico')
File "C:\Anaconda\lib\site-packages\PyInstaller\build.py", line 1170, in __init__
strip_binaries=self.strip, upx_binaries=self.upx,
File "C:\Anaconda\lib\site-packages\PyInstaller\build.py", line 1008, in __init__self.__postinit__()
File "C:\Anaconda\lib\site-packages\PyInstaller\build.py", line 309, in __postinit__self.assemble()
File "C:\Anaconda\lib\site-packages\PyInstaller\build.py", line 1050, in assemble
dist_nm=inm)
File "C:\Anaconda\lib\site-packages\PyInstaller\build.py", line 842, in checkCache
digest = cacheDigest(fnm)
File "C:\Anaconda\lib\site-packages\PyInstaller\build.py", line 796, in cacheDigest
data =open(fnm, "rb").read()
IOError: [Errno 22] invalid mode ('rb') or filename: ''
Need to copy pywintypes27.dll, and pythoncom27.dll sitting in C:\<Python-Path>\Lib\site-packages\win32 to C:\<Python-Path>\Lib\site-packages\win32\lib
There may be
ImportError
inpythoncom
andIOError
inPyInstaller
if you are using Anaconda Python.Need to copy
pywintypes27.dll
, andpythoncom27.dll
sitting inC:\<Python-Path>\Lib\site-packages\win32
toC:\<Python-Path>\Lib\site-packages\win32\lib
Ref: py2exe - No system module 'pywintypes'
The text was updated successfully, but these errors were encountered: