New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg_resources.DistributionNotFound: The 'PyInstaller' distribution was not found and is required by the application #4651
Comments
Umm what exactly are you trying to do? Run compile PyInstaller using PyInstaller? And compile stuff with that? |
I want to create an executable file that takes the name of the script through a parameter, collects everything necessary for it(images, files, etc.) and builds it. |
That won't work - PyInstaller collects stuff from your environment when building. That means that if your script has a library import your exe doesn't, it won't work. Sorry, but we can't offer support for this use of PyInstaller because it won't work. |
Do you know what is the most interesting? I had a version of Python 3.7.2 and everything worked, then I replaced it with 3.8, I got an error, I rolled back completely to 3.7.2 - it did not help, I installed all versions of setuptools to the version released before the release of 3.7.2, this did not solve my problem ... It worked, it stopped right now, it's a bug. P.s. Perhaps an important clarification, the version of PyInstaller did not change during my updates and rollbacks. |
@kivdev I had that at one point - it's a windows caching error. If the PyInstaller build was failing, then try the |
Windows 10 x64
The error has not changed. |
To do this you'd need a hook for PyInstaller - we don't have one and won't create one. You'd also need to mod the bootloader process, create runtime hooks, and loads more. We can't, won't and don't support or encourage this. |
Suppose I need hooks, but how did it work before, if it cannot work without them? |
Run into a similar issue. found out pyinstaller is not yet supported on python 3.8. #4311 |
Windows 10 x64
Python 3.8.1 x32
PyInstaller==4.0.dev0+55c8855d9d
CMD: pyinstaller --onefile test_for_build.py
test_for_build.py:
main.py:
test_for_build.exe:
The text was updated successfully, but these errors were encountered: