Exe in Python Tkinter packaging causes failed to obtain/convert traceback!
Problem description
python 3.9
windows 10
Packaged and executed commands
pyinstaller -D -w -i xx.ico main.py
After using pyinstaller to package exe, click the EXE file and an error occurs
failed to obtain/convert traceback
the details are shown in the figure:
Cause of problem
After troubleshooting, it is found that there is no problem with the packaged commands. The problem is that the database does not import data during initialization. The data is null. Just fill in the corresponding database values
summary: the problem is that the code does not handle exceptions properly.
solve the problem
- handle the corresponding code exceptions (including those where exceptions may occur) and populate the database
Read More:
- [zipfile] Python packages files as zip packages & decompresses them
- How to Solve Python WARNING: Ignoring invalid distribution -ip (e:\python\python_dowmload\lib\site-packages)
- Jupyter notebook Failed to Switch to the Virual Environment: DLL load failed python.exe could not find the entry
- [Solved] TensorFlow Error: UnknownError (see above for traceback): Failed to get convolution algorithm.
- An introduction to sys modules in Python and how packages are imported and used
- [Solved] supervisor Error: /usr/local/lib/python2.7/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
- How to Solve Error: Error no module “Tkinter”
- Mac Upgrade pip Error OSError: [Errno 13] Permission denied: ‘/Library/Python/2.7/site-packages/pip-9.0.1-py2….
- [Solved] Pyinstaller packaged exe error: “failed to execute script XXX”
- [Solved] matplotlib.units.ConversionError: Failed to convert value(s) to axis units: ‘LiR‘
- onnx error: ImportError: /home/dy/anaconda3/envs/torch/lib/python3.6/site-packages/onnx…
- Invalid python sd, Fatal Python error: init_fs_encoding: failed to get the Python cod [How to Solve]
- Python Error: ImportError: cannot import name ‘logsumexp’ from ‘scipy.misc’(Anaconda3\lib\site-packages\scipy\misc)
- Error in sitecustomize set PYTHONVERBOSE for traceback KeyError: ‘PYTHONPATH’
- Chromdriver Install error: File “C:\python37\lib\site-packages\selenium\webdriver\common\service.py”, line 76, in start stdin=PIPE) File…
- [Solved] opencv-python: recipe for target ‘modules/python3/CMakeFiles/opencv_python3.dir/all‘ failed
- Python Error: pip install mysql-connector-python failed
- Importerror: DLL load failed: unable to find the specified module in Python
- Error:Could not install packages due to an OSError:[WinError 5] Access denied