Re: Anleitung Web Interface
Verfasst: Sa 23. Feb 2019, 21:56
Das Magical Fidget Bot Forum! Vorschläge, Fehlermeldungen und alles, was sich um den Bot und Shakes and Fidget dreht.
https://forum.mfbot.de/
Code: Alles auswählen
Traceback (most recent call last):
File "MainProgram.py", line 4, in <module>
from dash.dependencies import Output, Event, Input, State
ImportError: cannot import name 'Event'
Drücken Sie eine beliebige Taste . . .
Sorry für die Späte Antwort, dir fehlt scheinbar das Installieren der Requirements.Rauschelbart hat geschrieben: ↑Fr 17. Mai 2019, 11:37 Huhu,
ich habe mich heut mal dran gemacht und versucht unter Windows 10 mit den vorgeschlagenen Python Versionen (aktuell 3.5.3) das Webinterface zum laufen zu bekommen.
Egal wie ich es drehe oder wende. Ich komme über die Fehlermeldung:
nach dem Ausführen von der Start.bat nicht hinaus. Kann mir wer einen Tipp geben in welche Richtung ich nach ner Lösung schauen sollte?Code: Alles auswählen
Traceback (most recent call last): File "MainProgram.py", line 4, in <module> from dash.dependencies import Output, Event, Input, State ImportError: cannot import name 'Event' Drücken Sie eine beliebige Taste . . .
Grüße an die Füße
Rauschelbart
Code: Alles auswählen
[2019-08-02 22:43:41,404] ERROR in app: Exception on /_dash-update-component [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python3.6/dist-packages/dash_auth/basic_auth.py", line 35, in wrap
response = f(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/dash/dash.py", line 558, in dispatch
return self.callback_map[target_id]['callback'](*args)
File "/usr/local/lib/python3.6/dist-packages/dash/dash.py", line 515, in add_context
output_value = func(*args, **kwargs)
TypeError: cb_AccountsAction_Logout() missing 1 required positional argument: 'action'
2019-08-02 22:43:46.079735 [Warnings]: Last Call for getAccounts 5.846926 s ago, going to update Acc Overview
Code: Alles auswählen
2019-10-04 16:09:53.381106 [Errors]: Legend: This is an error message
2019-10-04 16:09:53.381334 [Warnings]: Legend: This is a warning message
* Serving Flask app "auth" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: off
Code: Alles auswählen
04.10.2019 16:14:39 Info Remoting General *@*:49856 ruft /?head=1 auf
04.10.2019 16:14:39 Info Remoting General *@*:49858 ruft /Settings!GetMetaInfo auf
04.10.2019 16:14:39 Info Remoting General *@*:49860 ruft /bot/Accounts/*@S40.SFGAME.DE/Settings!GetMetaInfo auf
04.10.2019 16:14:39 Info Remoting General *@*:49862 ruft / auf
Per CURL kann ich mit dem Bot interagireren,UnknownDeveloper hat geschrieben: ↑Fr 4. Okt 2019, 18:37 Hallo
hast du bereits versucht per Kommandozeile mit dem Remote Interface vom Bot zu interagieren (mit curl).
Wenn das klappt, dann könnten es alternativ noch veralterte Bibliotheken in Python sein, wobei du ja keinen Fehler an sich kriegst...
Code: Alles auswählen
Error loading dependencies
Das gab es mal in einem Forum bzgl. des Fehlers mit Dash. Kann also auch sein, dass dein Browser was blockiertI figured out what the issue was. I noticed that everything worked in Opera, so I started tweaking Firefox settings. It was the cookie setting that was causing the issue.
If I set Firefox to block “Cookies from unvisited sites”, “All third-party cookies”, or “All cookies”, the app breaks in the iframe. But when I set it to just block “Third-party trackers”, the most permissive cookie blocking setting, then the Dash app loads in the iframe successfully.
So are the newer versions of Dash dependent on “cookies from unvisited sites”? It would be nice if it could work like the older versions did. But in any case, the issue is more or less resolved in my case.
Code: Alles auswählen
pandas>=0.23.0
plotly>=2.7.0
dash==0.21.1
dash_core_components==0.23.0
dash_html_components==0.11.0
dash_table_experiments==0.6.0
dash_renderer==0.13.0
pycurl==7.43.0.2
numpy>=1.14.4
dash_auth==1.0.2
flask==1.0.2
colorama==0.3.9