Hi,
I am getting this error when i try to run a builded exe.
Traceback (most recent call last):
File "zipextimporter.pyc", line 87, in load_module
File "<frozen zipimport>", line 241, in load_module
File "<frozen zipimport>", line 721, in _get_module_code
zipimport.ZipImportError: can't find module '_bz2'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<boot hacks>", line 17, in <module>
File "<boot hacks>", line 3, in patch_certifi
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "zipextimporter.pyc", line 87, in load_module
File "<frozen zipimport>", line 259, in load_module
File "certifi\__init__.pyc", line 1, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "zipextimporter.pyc", line 87, in load_module
File "<frozen zipimport>", line 259, in load_module
File "certifi\core.pyc", line 12, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "zipextimporter.pyc", line 87, in load_module
File "<frozen zipimport>", line 259, in load_module
File "importlib\resources.pyc", line 4, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "zipextimporter.pyc", line 87, in load_module
File "<frozen zipimport>", line 259, in load_module
File "importlib\_common.pyc", line 3, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "zipextimporter.pyc", line 87, in load_module
File "<frozen zipimport>", line 259, in load_module
File "zipfile.pyc", line 12, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "zipextimporter.pyc", line 87, in load_module
File "<frozen zipimport>", line 259, in load_module
File "shutil.pyc", line 22, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "zipextimporter.pyc", line 87, in load_module
File "<frozen zipimport>", line 259, in load_module
File "bz2.pyc", line 18, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "zipextimporter.pyc", line 110, in load_module
SystemError: initialization of _bz2 did not return an extension module
Traceback (most recent call last):
File "<frozen zipimport>", line 177, in get_data
KeyError: 'certifi\\cacert.pem'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen zipimport>", line 741, in open_resource
File "<frozen zipimport>", line 179, in get_data
OSError: [Errno 0] : 'certifi\\cacert.pem'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "instantrip.py", line 5, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "zipextimporter.pyc", line 87, in load_module
File "<frozen zipimport>", line 259, in load_module
File "instaloader\__init__.pyc", line 16, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "zipextimporter.pyc", line 87, in load_module
File "<frozen zipimport>", line 259, in load_module
File "instaloader\instaloader.pyc", line 19, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "zipextimporter.pyc", line 87, in load_module
File "<frozen zipimport>", line 259, in load_module
File "requests\__init__.pyc", line 120, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "zipextimporter.pyc", line 87, in load_module
File "<frozen zipimport>", line 259, in load_module
File "requests\utils.pyc", line 40, in <module>
File "certifi\core.pyc", line 37, in where
File "contextlib.pyc", line 117, in __enter__
File "importlib\resources.pyc", line 175, in _path_from_reader
File "<frozen zipimport>", line 743, in open_resource
FileNotFoundError: certifi/cacert.pem
Here is my setup.py
from distutils.core import setup
import sys
import py2exe
sys.argv.append('py2exe')
setup(
options={'py2exe': {
'bundle_files': 1, 'compressed': True,
'packages': ['instaloader']
}},
console=['instantrip.py']
)
Could you please point out what i seem to be doing wrong?
bug