Created
March 29, 2018 17:06
-
-
Save tarrzan33/972d81b01596d62cb0eef609ac890569 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*************Error Message when main.exe is ran************* | |
Traceback (most recent call last): | |
File "main.py", line 4, in <module> | |
File "c:\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module | |
exec(bytecode, module.__dict__) | |
File "makeAHK.py", line 1, in <module> | |
File "c:\python36-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module | |
exec(bytecode, module.__dict__) | |
File "site-packages\pahk.py", line 4, in <module> | |
ImportError: cannot import name 'getsitepackages' | |
[17808] Failed to execute script main | |
************Spec File************* | |
# -*- mode: python -*- | |
block_cipher = None | |
a = Analysis(['main.py'], | |
pathex=['C:\\Users\\ztarr\\Desktop\\Exe Test'], | |
binaries=[], | |
datas=[], | |
hiddenimports=['pahk','sqlite3'], | |
hookspath=[], | |
runtime_hooks=[], | |
excludes=[], | |
win_no_prefer_redirects=False, | |
win_private_assemblies=False, | |
cipher=block_cipher) | |
pyz = PYZ(a.pure, a.zipped_data, | |
cipher=block_cipher) | |
exe = EXE(pyz, | |
a.scripts, | |
exclude_binaries=True, | |
name='main', | |
debug=False, | |
strip=False, | |
upx=True, | |
console=True ) | |
coll = COLLECT(exe, | |
a.binaries, | |
a.zipfiles, | |
a.datas, | |
strip=False, | |
upx=True, | |
name='main') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment