Ich habe versucht, ein TKinter -Skript in eine .exe -Datei mit PyInstall zu kompilieren, aber wenn ich die .exe -Datei öffne, wird ein Fehler angezeigt. Mein Tkinter -Skript hat Threading. Hier ist eine Stapelverfolgung, die in Speedtest.py < /p>
unberechtigt ist.
Traceback (most recent call last):
File "speedtest.py", line 156, in
ModuleNotFoundError: No module named '__builtin__'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Speedtest.py", line 3, in
from speedtest_cli import Speedtest
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 450, in exec_module
File "speedtest_cli.py", line 30, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 450, in exec_module
File "speedtest.py", line 179, in
File "speedtest.py", line 166, in __init__
AttributeError: 'NoneType' object has no attribute 'fileno'
< /code>
Auch hier ist der Code, den ich für die Kompilierung verwendet habe: < /p>
process = subprocess.Popen(
r'pyinstaller.exe --onefile --noconsole --distpath D:\PythonProjects\Speedtest Speedtest.py',
stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE,
shell=True)
output, error = process.communicate()
if error:
print(error.decode())
if output:
print(output.decode())
< /code>
Ich habe es versucht: < /p>
[list]
[*] Wechseln -Noconsole in -Windowed < /li>
Löschen von stdout = subprocess.pipe, stderr = subprocess.pipe, stdin = subprocess.pipe
[/list]
Löschen -Noconsole ist keine Option Ich brauche keine Konsole, während ich in der .exe -Datei
auch hier speedtest.py
ist
Ich habe versucht, ein TKinter -Skript in eine .exe -Datei mit PyInstall zu kompilieren, aber wenn ich die .exe -Datei öffne, wird ein Fehler angezeigt. Mein Tkinter -Skript [b] hat [/b] Threading. Hier ist eine Stapelverfolgung, die in Speedtest.py < /p> unberechtigt ist.[code]Traceback (most recent call last): File "speedtest.py", line 156, in ModuleNotFoundError: No module named '__builtin__'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "Speedtest.py", line 3, in from speedtest_cli import Speedtest File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 450, in exec_module File "speedtest_cli.py", line 30, in File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 450, in exec_module File "speedtest.py", line 179, in File "speedtest.py", line 166, in __init__ AttributeError: 'NoneType' object has no attribute 'fileno' < /code> Auch hier ist der Code, den ich für die Kompilierung verwendet habe: < /p> process = subprocess.Popen( r'pyinstaller.exe --onefile --noconsole --distpath D:\PythonProjects\Speedtest Speedtest.py', stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, shell=True)
output, error = process.communicate()
if error: print(error.decode())
if output: print(output.decode()) < /code> Ich habe es versucht: < /p> [list] [*] Wechseln -Noconsole in -Windowed < /li> Löschen von stdout = subprocess.pipe, stderr = subprocess.pipe, stdin = subprocess.pipe [/code] [/list] Löschen -Noconsole ist keine Option Ich brauche keine Konsole, während ich in der .exe -Datei auch hier [b] speedtest.py [/b] ist[code]from tkinter import * from tkinter import ttk from speedtest_cli import Speedtest import threading
Ich möchte ein Widget erstellen, um die neuesten Geschwindigkeitstestergebnisse des Benutzers anzuzeigen. Verfügt speedtest.net über eine API, die ich verwenden könnte? Ich habe versucht, eine...
Ich habe eine App für Windows in C#erstellt, die automatisch startet, wenn Windows startet. private bool autorunProperty;
private readonly static string registryString =...
Ich habe ein Problem mit React-Native in Android
(BatchedBridge konnte nicht abgerufen werden, stellen Sie sicher, dass Ihr Bundle richtig verpackt ist)
[! ]
Ich versuche, ein Bündel zu verpacken. Wenn ich es in der Intellij -Idee leite, funktioniert alles gut. Was ich habe, ist eine NPM-App, die eine ReactJS-App ist, die mit Webpack ein bündeliges.js...
Problem mit Typ: 'Asset/Source' In WebPack v5.96.0, was dazu führt, dass CSS-Dateien nicht verpackt werden. In Version 5.95.0 habe ich die folgende Konfiguration verwendet, um CSS -Dateien zu...