mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-26 12:15:50 +03:00
[GH-ISSUE #361] error when running the executable #299
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jsgaston on GitHub (Feb 6, 2023).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/361
Originally assigned to: @jsgaston on GitHub.
Quick Checks
Describe the bug
I added many libraries to collect all, and processed to do the conversion with autopy, but when runing the exe, an error appears, and the webbrowser app doesnt show what's suposed (image of the error)
To Reproduce
Steps to reproduce the behavior (install dependencies, do this in the auto-py-to-exe UI):
Expected behavior
it should open correctly a plotlydashboard
Your Environment:
python --version): 3.9.13pip show auto-py-to-exe):2.28pip show pyinstaller):5.7.0pip show eel): 0.14.0@brentvollebregt commented on GitHub (Feb 6, 2023):
Can you please make that code in the reproduction steps a minimal reproducible example. There is a significant amount of imports in there which just make things cloudy to identify what library may be causing the issue.
Also it doesn't look like that error matches up with the code you have provided. Please make sure the details you provide match up to the reproduction steps you give.
@jsgaston commented on GitHub (Feb 6, 2023):
yes ... I konw ... but the app uses all those libraries .... don't know what are those errors ... the click one ... really dont know.
@brentvollebregt commented on GitHub (Feb 6, 2023):
I understand that, but this is why you make a minimal reproducible example - to identify where the cause is.
You also haven't given reproduction steps - it would be awesome to have these after you provide a minimal reproducible example otherwise we might each get different results.
Can you also provide a text version of the error? You should have seen it when following the debugging section in the help post.
@jsgaston commented on GitHub (Feb 6, 2023):
sorry ... I can't do a minimal reproducible coz its 7 thousand lines of code ... and if the problem is inside the code ... don't know where .... It might be in one of the modules (its usually that. Have you tried making exe those modules?
the reproduction steps are simple (the error promps at the start point, I just hit the exe and that appears (and the app that is a web browser doesn´t appear).
(when starting it again now: the web browser showed a full page in black with something like a button at one side ... very wierd coz I dont have this in my dashboard == app)
error:
Traceback (most recent call last):
File "PokerUtils.py", line 9311, in
File "PokerUtils.py", line 9307, in PokerUtils
File "dash\dash.py", line 2133, in run_server
self.run(*args, **kwargs)
File "dash\dash.py", line 1980, in run
self.server.run(host=host, port=port, debug=debug, **flask_run_options)
File "flask\app.py", line 1183, in run
cli.show_server_banner(self.debug, self.name)
File "flask\cli.py", line 723, in show_server_banner
click.echo(f" * Serving Flask app '{app_import_path}'")
File "click\utils.py", line 299, in echo
file.write(out) # type: ignore
AttributeError: 'NoneType' object has no attribute 'write'
@brentvollebregt commented on GitHub (Feb 7, 2023):
That's the point of a minimal reproducible example - you break it down to find the culprit. Then you know where the issue lies and how I can reproduce it, rather than me executing 82 import statements (many of which are duplicated).
No, I have not. I'm sorry, but I'm not bundling a dump of the import sections of all your application's files - you need to put some effort in on your side to make me help you easier.
Did you change nothing and get a different result when running the exe?
@jsgaston commented on GitHub (Feb 7, 2023):
ok, I've tried to make it executable again.
this is the error when making it exe:
269 INFO: Note: NumExpr detected 12 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8. 269 INFO: NumExpr defaulting to 8 threads. 381 INFO: Note: NumExpr detected 12 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8. 381 INFO: NumExpr defaulting to 8 threads. 314 INFO: Note: NumExpr detected 12 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8. 314 INFO: NumExpr defaulting to 8 threads. 278 INFO: Note: NumExpr detected 12 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8. 278 INFO: NumExpr defaulting to 8 threads. C:\Users\jsgas\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\firefox\firefox_profile.py:208: SyntaxWarning: "is" with a literal. Did you mean "=="? if setting is None or setting is '': 593 INFO: Note: NumExpr detected 12 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8. 594 INFO: NumExpr defaulting to 8 threads. C:\Users\jsgas\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\building\build_main.py:174: UserWarning: The numpy.array_api submodule is still experimental. See NEP 47. __import__(package) C:\Users\jsgas\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\building\build_main.py:174: UserWarning: The dash_core_components package is deprecated. Please replaceimport dash_core_components as dccwithfrom dash import dcc`import(package)
C:\Users\jsgas\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\building\build_main.py:174: UserWarning:
The dash_table package is deprecated. Please replace
import dash_tablewithfrom dash import dash_tableAlso, if you're using any of the table format helpers (e.g. Group), replace
from dash_table.Format import Groupwithfrom dash.dash_table.Format import GroupC:\Users\jsgas\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\building\build_main.py:174: UserWarning:
The dash_html_components package is deprecated. Please replace
import dash_html_components as htmlwithfrom dash import html4412 INFO: Extra DLL search directories (AddDllDirectory): ['C:\Users\jsgas\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\.libs', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\lib\site-packages\scipy.libs', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\lib\site-packages\PyQt5\Qt5\bin']
4412 INFO: Extra DLL search directories (PATH): ['C:\Users\jsgas\AppData\Local\Programs\Python\Python39\lib\site-packages\PyQt5\Qt5\bin', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\Scripts', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\Lib\site-packages', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\python.exe', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\Lib\site-packages\scipy.libs', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\Lib\site-packages\numpy\.libs', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\DLLs', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python37\Lib\site-packages', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python37\python.exe', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python37\DLLs', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python37\Scripts', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python310\Scripts', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python310\DLLs', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python310\python.exe', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python310\Lib', 'C:\Python27\Lib\site-packages', 'C:\Python27\Scripts', 'C:\Python27\DLLs', 'C:\Python27\python.exe', 'C:\WINDOWS\system32', 'C:\WINDOWS', 'C:\WINDOWS\System32\Wbem', 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\', 'C:\WINDOWS\System32\OpenSSH\', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python311\Scripts', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python311\Lib\site-packages', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python311\DLLs', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\Scripts', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\Scripts\', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\DLLs', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\Lib\site-packages', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\Lib\site-packages\numpy\.libs', 'C:\Users\jsgas\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.9', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python39\Lib\site-packages\scipy.libs', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python37\Scripts\', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python37\', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python310\', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python310\Scripts\', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python311\Scripts\', 'C:\Users\jsgas\AppData\Local\Programs\Python\Python311\', 'C:\Users\jsgas\AppData\Local\Microsoft\WindowsApps', 'C:\Users\jsgas\AppData\Local\Programs\Microsoft VS Code\bin', 'C:\Program Files\JetBrains\PyCharm Community Edition 2022.3.1\bin']
`
it says something of the selenium package ... (but I'm not using selenium in this script ???
when running the exe, the browser opens, but nothing is shown (image)

and this is the error that appears (when running the exe):
what I've added to the app:
@jsgaston commented on GitHub (Feb 8, 2023):
I forgot to add the libraries ... (they are the beginning ones (but for this part that I last added ) (they are less (fot only this last part) but would like to find where is the problem)
@jsgaston commented on GitHub (Feb 10, 2023):
How do I do exe the modules?
@jsgaston commented on GitHub (Feb 10, 2023):
is it with add-all? (yes I added all) with the same error
@jsgaston commented on GitHub (Feb 10, 2023):
I added all modules and let the cmd promt. And with this, the app worked in exe.
@Dattebayooooo commented on GitHub (Jun 18, 2023):
Hi, Can you please share the cli generated command, I have been facing issue to generate exe