![]() |
PyInstaller Executable Does Nothing - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: PyInstaller Executable Does Nothing (/thread-32551.html) Pages:
1
2
|
RE: PyInstaller Executable Does Nothing - buran - Feb-17-2021 (Feb-17-2021, 06:58 PM)pdihawk Wrote: What exactly do you mean by the full traceback? :)the full error, not just the last line EDIT I see that in __init__.py it catch the error and obfuscate the error, print this message without providing much information. So there is no traceback RE: PyInstaller Executable Does Nothing - pdihawk - Feb-17-2021 My whole command prompt: [inline]C:\Users\PDI User\AppData\Local\Programs\Python\Python38-32\ShowJulian\dist>ShowJulian.exe tkinter did not import successfully. Please check your setup.[/inline] RE: PyInstaller Executable Does Nothing - pdihawk - Feb-17-2021 When I run pyinstaller I get the following: I'm not really sure what to make of this. Is it helpful?
RE: PyInstaller Executable Does Nothing - steve_shambles - Feb-18-2021 It worked OK for me on Win 7 Python V3.76 Try this line on pyinstaller: pyinstaller yourapp.py -n yourapp --windowed --onefile RE: PyInstaller Executable Does Nothing - pdihawk - Feb-18-2021 Using that gives me the same issue. Is my problem that I wrote my app in Python 3.8 and for some reason pyinstaller is running out of the 3.7? I used IDLE(Python 3.8) to write my code. Is there a way to associate pyinstaller with 3.8 or do I have to use Python 3.7? RE: PyInstaller Executable Does Nothing - pdihawk - Feb-18-2021 So I Installed IDLE 3.7.1, copied it over and still no luck. It still tells me that tkinter did not import successfully. RE: PyInstaller Executable Does Nothing - steve_shambles - Feb-19-2021 It looks like a problem with your setup. Did you tick "path" on the Python installer when you installed Python? Are you using a virtual environment? RE: PyInstaller Executable Does Nothing - snippsat - Feb-19-2021 (Feb-18-2021, 10:13 PM)pdihawk Wrote: So I Installed IDLE 3.7.1, copied it over and still no luck. It still tells me that tkinter did not import successfully.That's not how you do it,and IDLE come with Python. Look at Python 3.9/3.8 and pip installation under Windows. So if Python 3.8 is the main version you want to use then python and pip should point to Python 3.8.If not fix Environment Variables Path as i explain in link over.Example cmd .# Test Python C:\>python -V Python 3.9.1 # Test pip C:\>pip -V pip 20.2.4 from c:\python39\lib\site-packages\pip (python 3.9)Now you see that pip point to Python 3.9.Then will pip install pyinstaller --upgrade install to Python 3.9.# Install pyinstaller C:\>pip install pyinstaller --upgrade Collecting pyinstaller Downloading ..... Successfully built pyinstaller # See Location C:\>pip show pyinstaller Name: pyinstaller Version: 4.2 Summary: PyInstaller bundles a Python application and all its dependencies into a single package. Home-page: http://www.pyinstaller.org/ Author: Hartmut Goebel, Giovanni Bajo, David Vierra, David Cortesi, Martin Zibri cky Author-email: None License: GPLv2-or-later with a special exception which allows to use PyInstaller to build and distribute non-free programs (including commercial ones) Location: c:\python39\lib\site-packages Requires: pyinstaller-hooks-contrib, altgraph, setuptools, pefile, pywin32-ctypeSo when i now when i eg do as in link is posted. pyinstaller --onefile --windowed --icon=idea.ico tk_test.pyPyinstaller will now of course use Python 3.9,just the same setup for 3.8. RE: PyInstaller Executable Does Nothing - pdihawk - Feb-22-2021 Yup. I cleaned up my PATH to only include Python 3.8 and I can now create an executable that works! Thank you!! |