[GH-ISSUE #361] error when running the executable #299

Closed
opened 2026-02-26 12:21:07 +03:00 by kerem · 11 comments
Owner

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

  • I have read/searched in the help post
  • I have searched other issues, looking for an issue similar to mine
  • I have made sure my application/script runs before trying to package

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):

  1. Go to '...' run the program and the error will appear
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
############################################### tabs
from ast import Return
from cgitb import text

from enum import auto
from fileinput import filename
from operator import index
from pdb import Restart
import time

from typing import Text
import dash
import dash_bootstrap_components as dbc
import numpy as np
import plotly.graph_objs as go
from dash import Input, Output, dcc, html
###################################################clusters

import pandas as pd
import plotly.graph_objs as go

from sklearn import datasets
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
#################################################del appv2
# -*- coding: utf-8 -*-
from genericpath import exists
from itertools import count
from re import X
from turtle import color
#from typing_extensions import assert_type
import pandas as pd
import numpy as np
from pandas import DataFrame
#from DataFrame import iloc

import pylab
from statsmodels.graphics.gofplots import qqplot
import statsmodels.api as sm
import math

import plotly.express as px
import plotly.graph_objects as go

from statsmodels.graphics.gofplots import qqplot_2samples
from sklearn.linear_model import LinearRegression
from sklearn.ensemble import RandomForestRegressor
from sklearn.svm import SVR

from dash import Dash, dcc, html, Input, Output
from sklearn.model_selection import train_test_split
from sklearn import linear_model, tree, neighbors
from sklearn import metrics, datasets
import dash
from dash import dcc, Dash, dash_table
from dash import html
from dash.dependencies import Input, Output

import plotly.figure_factory as ff

from csv import reader
# Tratamiento de datos
# ==============================================================================
# Gráficos
# ==============================================================================
import matplotlib.pyplot as plt
from matplotlib import style
import seaborn as sns

# Preprocesado y análisis
# ==============================================================================
import statsmodels.api as sm
#from slider import transform_value

# Configuración matplotlib
# ==============================================================================


# Configuración warnings
# ==============================================================================
import warnings
warnings.filterwarnings('ignore')
#####################################################################
######################################################################
import dash
from dash.dependencies import Input, Output, State
import dash_html_components as html
from dash import html
from dash import dcc, html, dash_table, callback, Dash
#####################################################################
import plotly.io as pio
pio.templates
################################################################
import sys
#############################################################
import dash

import pandas as pd
import plotly.graph_objs as go
from dash import Input, Output, dcc, html
from sklearn import datasets
from sklearn.cluster import KMeans

import base64


##############################################################################
from sklearn.neighbors import NearestCentroid
################################################data
from dash import dcc
import io
##########################################montecarlo
import random
################################################data
from sklearn.neighbors import KNeighborsRegressor
####################################################


import base64
import datetime
import io

import dash
from dash.dependencies import Input, Output, State
from dash import dcc, html, dash_table

import pandas as pd

from dash.exceptions import PreventUpdate
from collections import OrderedDict

import webbrowser
from threading import Timer

from statistics import mean
from pathlib import Path
import frozendict



print("Hello World")

Expected behavior
it should open correctly a plotlydashboard

Your Environment:

  • Python version (python --version): 3.9.13
  • auto-py-to-exe version (pip show auto-py-to-exe):2.28
  • PyInstaller version (pip show pyinstaller):5.7.0
  • Eel version (pip show eel): 0.14.0
    error autopy
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** - [x] I have read/searched in the [help post](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe) - [x] I have [searched other issues](https://github.com/brentvollebregt/auto-py-to-exe/issues?q=is%3Aissue+), looking for an issue similar to mine - [x] I have made sure my application/script runs before trying to package **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): 1. Go to '...' run the program and the error will appear 2. Click on '....' 3. Scroll down to '....' 4. See error ```python ############################################### tabs from ast import Return from cgitb import text from enum import auto from fileinput import filename from operator import index from pdb import Restart import time from typing import Text import dash import dash_bootstrap_components as dbc import numpy as np import plotly.graph_objs as go from dash import Input, Output, dcc, html ###################################################clusters import pandas as pd import plotly.graph_objs as go from sklearn import datasets from sklearn.cluster import KMeans from sklearn.decomposition import PCA #################################################del appv2 # -*- coding: utf-8 -*- from genericpath import exists from itertools import count from re import X from turtle import color #from typing_extensions import assert_type import pandas as pd import numpy as np from pandas import DataFrame #from DataFrame import iloc import pylab from statsmodels.graphics.gofplots import qqplot import statsmodels.api as sm import math import plotly.express as px import plotly.graph_objects as go from statsmodels.graphics.gofplots import qqplot_2samples from sklearn.linear_model import LinearRegression from sklearn.ensemble import RandomForestRegressor from sklearn.svm import SVR from dash import Dash, dcc, html, Input, Output from sklearn.model_selection import train_test_split from sklearn import linear_model, tree, neighbors from sklearn import metrics, datasets import dash from dash import dcc, Dash, dash_table from dash import html from dash.dependencies import Input, Output import plotly.figure_factory as ff from csv import reader # Tratamiento de datos # ============================================================================== # Gráficos # ============================================================================== import matplotlib.pyplot as plt from matplotlib import style import seaborn as sns # Preprocesado y análisis # ============================================================================== import statsmodels.api as sm #from slider import transform_value # Configuración matplotlib # ============================================================================== # Configuración warnings # ============================================================================== import warnings warnings.filterwarnings('ignore') ##################################################################### ###################################################################### import dash from dash.dependencies import Input, Output, State import dash_html_components as html from dash import html from dash import dcc, html, dash_table, callback, Dash ##################################################################### import plotly.io as pio pio.templates ################################################################ import sys ############################################################# import dash import pandas as pd import plotly.graph_objs as go from dash import Input, Output, dcc, html from sklearn import datasets from sklearn.cluster import KMeans import base64 ############################################################################## from sklearn.neighbors import NearestCentroid ################################################data from dash import dcc import io ##########################################montecarlo import random ################################################data from sklearn.neighbors import KNeighborsRegressor #################################################### import base64 import datetime import io import dash from dash.dependencies import Input, Output, State from dash import dcc, html, dash_table import pandas as pd from dash.exceptions import PreventUpdate from collections import OrderedDict import webbrowser from threading import Timer from statistics import mean from pathlib import Path import frozendict print("Hello World") ``` **Expected behavior** it should open correctly a plotlydashboard **Your Environment:** - Python version (`python --version`): 3.9.13 - auto-py-to-exe version (`pip show auto-py-to-exe`):2.28 - PyInstaller version (`pip show pyinstaller`):5.7.0 - Eel version (`pip show eel`): 0.14.0 ![error autopy](https://user-images.githubusercontent.com/69969971/216905925-5d49df95-c16e-438c-8520-735400d7f0ff.png)
kerem 2026-02-26 12:21:07 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@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.

<!-- gh-comment-id:1418635215 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:1418658541 --> @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.
Author
Owner

@brentvollebregt commented on GitHub (Feb 6, 2023):

but the app uses all those libraries

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.

<!-- gh-comment-id:1418766476 --> @brentvollebregt commented on GitHub (Feb 6, 2023): > but the app uses all those libraries 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.
Author
Owner

@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'

<!-- gh-comment-id:1418889029 --> @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 <module> 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'
Author
Owner

@brentvollebregt commented on GitHub (Feb 7, 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.

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).

Have you tried making exe those modules?

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.

(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)

Did you change nothing and get a different result when running the exe?

<!-- gh-comment-id:1420394962 --> @brentvollebregt commented on GitHub (Feb 7, 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. 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). > Have you tried making exe those modules? 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. > (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) Did you change nothing and get a different result when running the exe?
Author
Owner

@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_table with from dash import dash_table

Also, if you're using any of the table format helpers (e.g. Group), replace
from dash_table.Format import Group with
from dash.dash_table.Format import Group

C:\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 html with from dash import html

4412 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)
error window

and this is the error that appears (when running the exe):

Traceback (most recent call last):
  File "PokerUtils.py", line 9310, in <module>
  File "PokerUtils.py", line 9306, 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'

what I've added to the app:


@app.callback(Output('contenedor_push','children'),Input('sliderpush',"value"))
def update_push(drop):
    
    data = OrderedDict(
        [
            ("Push", ["A", "K", "Q", "J", "T", "9", "8", "7", "6", "5", "4", "3", "2"]),
            ("A", [0.5,3,5,7,7,11,13,16,20,21,22,23,25]),


        ]
    )

    df = pd.DataFrame(data)
    #innput=7#input("insert the value: ")
    #df.set_index("Push")


    
    innput=float(drop)#float(input("Please choose a value: "))
    #innput=(innput/100)dfcr78=dfcr78.to_json(orient='table')

    df['id'] = df.index

    app.layout = html.Div([
    dcc.Input(id='valor_rango_push', type='number'),
    html.Div(id='table')
    ])
    return dash_table.DataTable(
        data=df.to_dict('records'),
        style_header={
        'backgroundColor': 'grey',
        'fontWeight': 'white'
        },
        style_cell={'textAlign': 'center'},
        columns=[{'name': i, 'id': i} for i in df.columns if i != 'id'],
        style_data_conditional=
        [{'if':{'column_id':'Push'},
                                 'backgroundColor': 'grey',
                                 'color': 'white'}]+
                                   [{
                                       'if': {
                                           'filter_query': '{{{}}} <= {}'.format(col, innput),
                                           'column_id': col
                                       },
                                       'backgroundColor': '#B10DC9',
                                       'color': 'white'
                                   } for col in df.columns[1:]
                               ] 
        
        
    )

<!-- gh-comment-id:1420678445 --> @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 replace `import dash_core_components as dcc` with `from 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_table` with `from dash import dash_table` Also, if you're using any of the table format helpers (e.g. Group), replace `from dash_table.Format import Group` with `from dash.dash_table.Format import Group` C:\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 html` with `from dash import html` 4412 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) ![error window](https://user-images.githubusercontent.com/69969971/217241410-a5476723-8837-458d-9395-ce513c27d6d6.png) and this is the error that appears (when running the exe): ``` Traceback (most recent call last): File "PokerUtils.py", line 9310, in <module> File "PokerUtils.py", line 9306, 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' ``` what I've added to the app: ``` @app.callback(Output('contenedor_push','children'),Input('sliderpush',"value")) def update_push(drop): data = OrderedDict( [ ("Push", ["A", "K", "Q", "J", "T", "9", "8", "7", "6", "5", "4", "3", "2"]), ("A", [0.5,3,5,7,7,11,13,16,20,21,22,23,25]), ] ) df = pd.DataFrame(data) #innput=7#input("insert the value: ") #df.set_index("Push") innput=float(drop)#float(input("Please choose a value: ")) #innput=(innput/100)dfcr78=dfcr78.to_json(orient='table') df['id'] = df.index app.layout = html.Div([ dcc.Input(id='valor_rango_push', type='number'), html.Div(id='table') ]) return dash_table.DataTable( data=df.to_dict('records'), style_header={ 'backgroundColor': 'grey', 'fontWeight': 'white' }, style_cell={'textAlign': 'center'}, columns=[{'name': i, 'id': i} for i in df.columns if i != 'id'], style_data_conditional= [{'if':{'column_id':'Push'}, 'backgroundColor': 'grey', 'color': 'white'}]+ [{ 'if': { 'filter_query': '{{{}}} <= {}'.format(col, innput), 'column_id': col }, 'backgroundColor': '#B10DC9', 'color': 'white' } for col in df.columns[1:] ] ) ```
Author
Owner

@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)

<!-- gh-comment-id:1422661225 --> @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)
Author
Owner

@jsgaston commented on GitHub (Feb 10, 2023):

Have you tried making exe those modules?

How do I do exe the modules?

<!-- gh-comment-id:1425033942 --> @jsgaston commented on GitHub (Feb 10, 2023): > > Have you tried making exe those modules? > How do I do exe the modules?
Author
Owner

@jsgaston commented on GitHub (Feb 10, 2023):

is it with add-all? (yes I added all) with the same error

<!-- gh-comment-id:1425039604 --> @jsgaston commented on GitHub (Feb 10, 2023): is it with add-all? (yes I added all) with the same error
Author
Owner

@jsgaston commented on GitHub (Feb 10, 2023):

I added all modules and let the cmd promt. And with this, the app worked in exe.

<!-- gh-comment-id:1425376055 --> @jsgaston commented on GitHub (Feb 10, 2023): I added all modules and let the cmd promt. And with this, the app worked in exe.
Author
Owner

@Dattebayooooo commented on GitHub (Jun 18, 2023):

I added all modules and let the cmd promt. And with this, the app worked in exe.

Hi, Can you please share the cli generated command, I have been facing issue to generate exe

<!-- gh-comment-id:1596222360 --> @Dattebayooooo commented on GitHub (Jun 18, 2023): > I added all modules and let the cmd promt. And with this, the app worked in exe. Hi, Can you please share the cli generated command, I have been facing issue to generate **exe**
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#299
No description provided.