No module named when using PyInstaller. Ask Question Asked 7 years, 4 months ago. Active yesterday. Viewed 88k times 32 18. I try to compile a Python ... No module named sinh and it is only when I do import numpy.numpy.sinh that I get ImportError: No module named numpy.sinh.
Oct 08, 2021 · [PyInstaller] ImportError: No module named _bootlocale with Python 3.10 Giovanni Allegri Fri, 08 Oct 2021 12:23:19 -0700 I've just updated to Python 3.10.0 for Windows.
Oct 08, 2021 · A quick test of PyInstaller resulted in the followign error: 3842 INFO: distutils: retargeting to non-venv dir '<hidden-path>\\Python310\\lib'. Traceback (most recent call last): File "<hidden-path>\Python310\lib\runpy.py", line 196, in _run_module_as_main. return _run_code (code, main_globals, None,
Posted: (1 day ago) Nov 17, 2018 · ModuleNotFoundError: No module named x / ImportError: No module named x. This means a particular module ('x' in this case) was not added to the package. I have seen this occur with packages in the pandas library and win32api; as long as you can identify the package (e.g. 'x'), then it is very easy to fix.
Jul 20, 2021 · "Oh, _bootlocale was a private module which should not be imported directly. I removed it and replaced it with a new _locale._get_locale_encoding() function in Python 3.10" So, if the module was removed, why the latest pyinstaller still tries to pull it in?
20.07.2021 · Is there a way to exclude the _bootlocale module from the executable build to be able to build the executable? I tested my program exhaustively and it works with no problem when run from .py. I do not call anything that directly refers to bootlocale module, not 100% sure what it does or did before being removed from 3.10.
Posted: (1 day ago) Nov 17, 2018 · ModuleNotFoundError: No module named x / ImportError: No module named x. This means a particular module ('x' in this case) was not added to the package. I have seen this occur with packages in the pandas library and win32api; as long as you can identify the package (e.g. 'x'), then it is very easy to fix.
02.04.2021 · _bootlocale has been removed in cPython 3.10 and has been replaced with a new _locale._get_locale_encoding() excluding _bootlocale from PY3_BASE_MODULES for python 3.10 in PyInstaller/compat.py allows PyInstaller to generate an executable, however from here I kept running into issues when running the resulting binary.
Apr 02, 2021 · _bootlocale has been removed in cPython 3.10 and has been replaced with a new _locale._get_locale_encoding() excluding _bootlocale from PY3_BASE_MODULES for python 3.10 in PyInstaller/compat.py allows PyInstaller to generate an executable, however from here I kept running into issues when running the resulting binary.
08.10.2021 · A quick test of PyInstaller resulted in the followign error: 3842 INFO: distutils: retargeting to non-venv dir '<hidden-path>\\Python310\\lib'. Traceback (most recent call last): File "<hidden-path>\Python310\lib\runpy.py", line 196, in _run_module_as_main. return _run_code (code, main_globals, None,
08.10.2021 · [PyInstaller] ImportError: No module named _bootlocale with Python 3.10 Giovanni Allegri Fri, 08 Oct 2021 12:23:19 -0700 I've just updated to Python 3.10.0 for Windows.