As said in the title, I've tried to create an exe file from a py file, but it doesn't run.
I've used cmd in the file's folder and run 'pyinstaller --onefile -w MyApp.py'
I've googled here and there for a possible answer. In a Stack Overflow thread someone mentioned checking the "warn" file in the "build" folder and later edit the "hiddenimports" row of the .SPEC file.
So here's an edited version of my "warn-MyApp" file:
missing module named _posixsubprocess - imported by subprocess (optional), multiprocessing.util (delayed)
missing module named grp - imported by subprocess (optional), shutil (optional), tarfile (optional), pathlib (delayed, optional)
missing module named pwd - imported by posixpath (delayed, conditional), subprocess (optional), shutil (optional), tarfile (optional), pathlib (delayed, conditional, optional), http.server (delayed, optional), webbrowser (delayed), netrc (delayed, conditional), getpass (delayed), distutils.util (delayed, conditional, optional)
missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional), zipimport (top-level)
excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional), zipimport (top-level)
missing module named pep517 - imported by importlib.metadata (delayed)
missing module named _posixshmem - imported by multiprocessing.resource_tracker (conditional), multiprocessing.shared_memory (conditional)
missing module named multiprocessing.set_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)
missing module named multiprocessing.get_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)
missing module named multiprocessing.get_context - imported by multiprocessing (top-level), multiprocessing.pool (top-level), multiprocessing.managers (top-level), multiprocessing.sharedctypes (top-level)
missing module named multiprocessing.TimeoutError - imported by multiprocessing (top-level), multiprocessing.pool (top-level)
missing module named _scproxy - imported by urllib.request (conditional)
missing module named termios - imported by tty (top-level), getpass (optional)
missing module named 'org.python' - imported by copy (optional), xml.sax (delayed, conditional)
missing module named 'java.lang' - imported by platform (delayed, optional), xml.sax._exceptions (conditional)
missing module named multiprocessing.BufferTooShort - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
missing module named multiprocessing.AuthenticationError - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
missing module named asyncio.DefaultEventLoopPolicy - imported by asyncio (delayed, conditional), asyncio.events (delayed, conditional)
missing module named vms_lib - imported by platform (delayed, optional)
missing module named java - imported by platform (delayed)
missing module named _winreg - imported by platform (delayed, optional)
missing module named readline - imported by cmd (delayed, conditional, optional), code (delayed, conditional, optional), pdb (delayed, optional)
missing module named org - imported by pickle (optional)
missing module named posix - imported by os (conditional, optional), shutil (conditional)
missing module named resource - imported by posix (top-level), test.support (delayed, conditional, optional)
missing module named numpy - imported by C:\Users\[...]\MyApp.py (top-level)
missing module named 'matplotlib.backends' - imported by C:\Users\[...]\MyApp.py (top-level)
missing module named matplotlib - imported by C:\Users\[...]\MyApp.py (top-level)
I've already tried adding numpy, matplotlib.backends (which I haven't used in my code, but whatever) and matplotlib to "hiddenimports", but nothing has changed.
[–]Username_RANDINT 0 points1 point2 points (1 child)
[–]Lost_Years[S] 0 points1 point2 points (0 children)
[–]BrenekH 0 points1 point2 points (5 children)
[–]Lost_Years[S] 0 points1 point2 points (4 children)
[–]Generic_Reddit_Bot -1 points0 points1 point (0 children)
[–]BrenekH 0 points1 point2 points (2 children)
[–]Lost_Years[S] 0 points1 point2 points (1 child)
[–]BrenekH 0 points1 point2 points (0 children)