Traceback (most recent call last):


 "test.py", line 1, in <module>


 "/home/user/Documents/pyinstaller-test/.venv/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module

exec(bytecode, module.__dict__)


 "loguru/__init__.py", line 10, in <module>


 "/home/user/Documents/pyinstaller-test/.venv/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module

exec(bytecode, module.__dict__)


 "loguru/_logger.py", line 18, in <module>


 "/home/user/Documents/pyinstaller-test/.venv/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module

exec(bytecode, module.__dict__)


 "loguru/_better_exceptions.py", line 2, in <module>


 "/home/user/Documents/pyinstaller-test/.venv/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module

exec(bytecode, module.__dict__)


 "distutils/__init__.py", line 44, in <module>
ImportError: cannot import name 'dist' from 'distutils' (/home/user/Documents/pyinstaller-test/dist/test/distutils/__init__.pyc)

Traceback (most recent call last):


 "inspectXXX.py", line 1, in <module>

from matplotlib import pyplot


 "/Library/anaconda/lib/python3.6/site-packages/matplotlib/__init__.py", line 111, in <module>

import inspect
ImportError: bad magic number in 'inspect': b'\x03\xf3\r\n'
