I’m experiencing the following error when running an .exe built with cx_Freeze. This error only occurs on some PCs, and I really don’t know what it could be. I’ve checked all parts of the main code and couldn’t find the error
cx_Freeze: Python error in main script
Traceback (most recent call last):
X
File
“C:UsersmoscaAppDataLocalPackagesPythonSoftware Fou ndation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packag esPython311site-packagescx_Freezeinitscripts_startup.p
y”, line 124, in run
File
“C:UsersmoscaAppDataLocalPackagesPythonSoftware Fou ndation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packag esPython311site-packagescx_Freezeinitscriptsconsole.py”,
line 16, in run
File “Fsr3_auto_installer.py”, line 3, in File
“C:UsersmoscaAppDataLocalPackagesPythonSoftwareFou ndation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packag esPython311site-packagescustomtkinter_init_.py”, line
10, in File
“C:UsersmoscaAppDataLocalPackagesPython SoftwareFou ndation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packag esPython311site-packagescustomtkinterwindows_init_.p
y”, line 1, in
File
“C:UsersmoscaAppDataLocalPackagesPython Software Fou ndation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packag esPython311site-packagescustomtkinterwindowsctk_tk.py
“, line 9, in
File
“C:UsersmoscaAppDataLocalPackagesPythonSoftwareFou ndation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packag esPython311site-packagescustomtkinterwindowswidgets
init.py”, line 1, in
File
“C:UsersmoscaAppDataLocalPackagesPython SoftwareFou
ndation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packag
esPython311site-packagescustomtkinterwindowswidgets
ctk_button.py”, line 8, in
File
“C:UsersmoscaAppDataLocalPackagesPythonSoftwareFou ndation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packag esPython311site-packagescustomtkinterwindowswidgets core_widget_classes_init_.py”, line 1, in
File
“C:UsersmoscaAppDataLocalPackagesPythonSoftware Fou
ndation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packag
esPython311site-packagescustomtkinterwindowswidgets
core_widget_classesdropdown_menu.py”, line 6, in
File
“C:UsersmoscaAppDataLocalPackagesPythonSoftwareFou ndation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packag esPython311site-packagescustomtkinterwindowswidgets
font_init__.py”, line 21, in
AttributeError: ‘NoneType’ object has no attribute ‘write’
OK
X
I’ve looked through all parts of the code several times already, but I can’t find the error.
P4TOLINO is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.