|
Post by Walt B on Jan 8, 2022 10:04:25 GMT -8
When I manually try to start dash_app, I get what appears to be a python syntax error, preceded by numerous deprecation warnings. The dash app never appears on my web browser. I've updated and pulled everything.
Help! Raspberry 4 B running Bullseye, connecting to the router via ethernet (not WiFi).
pi@raspberrypi:~/SDL_Pi_SkyWeather2 $ sudo python3 dash_app/index.py /home/pi/SDL_Pi_SkyWeather2/dash_app/index.py:5: UserWarning: The dash_core_components package is deprecated. Please replace `import dash_core_components as dcc` with `from dash import dcc` import dash_core_components as dcc /home/pi/SDL_Pi_SkyWeather2/dash_app/index.py:6: UserWarning: The dash_html_components package is deprecated. Please replace `import dash_html_components as html` with `from dash import html` import dash_html_components as html Traceback (most recent call last): File "/home/pi/SDL_Pi_SkyWeather2/dash_app/index.py", line 20, in <module> import status_page File "/home/pi/SDL_Pi_SkyWeather2/dash_app/status_page.py", line 23, in <module> import state File "/usr/local/lib/python3.9/dist-packages/state/__init__.py", line 39 except AttributeError, e: ^ SyntaxError: invalid syntax
|
|
|
Post by SDL on Jan 8, 2022 11:35:31 GMT -8
Could you do this instead and print out the results?
cd dash_app sudo python3 index.py
Note: We have NOT Tested Bullseye and it is not supported at this time. We will support it when we product our V19 SD Card (March or April).
We know Bullseye has problems with the PiCamera but they are getting cleaned up.
BP
|
|
|
Post by Jason on Jan 9, 2022 4:00:57 GMT -8
There are breaking changes to the Dash app in the latest lDash libraries. It would be best if you pip installed an older version of Dash as well.
Thanks,
Jason
|
|
|
Post by SDL on Jan 9, 2022 17:02:09 GMT -8
Jason,
I have done an update/upgrade on our buster system and everything is working. Did you do something different?
BP
|
|
|
Post by Jason on Jan 10, 2022 2:40:16 GMT -8
Dash version 2.0 has the breaking changes which I believe the OP is running. There are a lot of syntactical changes in that version that differ from previous 1.x versions.
Thanks,
Jason
|
|
|
Post by SDL on Jan 10, 2022 9:08:14 GMT -8
What do you mean, the "OP is running"?
BP
|
|
|
Post by doxidad on Jan 10, 2022 10:46:07 GMT -8
OP = Original Poster
|
|
|
Post by SDL on Jan 10, 2022 17:15:54 GMT -8
AH! Thank you. We haven't tried 2.0 yet. Needs to get on the list.
BP
|
|
tecronin
Junior Member
Posts: 91
Raspberry Pi: Yes
|
Post by tecronin on Jan 10, 2022 20:25:48 GMT -8
this thread may help get dash on the right versions.
|
|
|
Post by Jason on Jan 11, 2022 5:47:21 GMT -8
I've been mucking around with Dash 2.0 quite a bit so can take a swing at upgrading the SkyWeather2 Dash app if you'd like.
Thanks,
Jason
|
|
|
Post by SDL on Jan 11, 2022 7:50:33 GMT -8
Jason,
That would be great! then we can merge it into the code base.
BP
|
|
waltb
New Member
Posts: 8
Raspberry Pi: Yes
|
Post by waltb on Jan 13, 2022 12:00:52 GMT -8
Here's the index.py:
pi@raspberrypi:~/SDL_Pi_SkyWeather2/dash_app $ sudo python3 index.py
/home/pi/SDL_Pi_SkyWeather2/dash_app/index.py:5: UserWarning: The dash_core_components package is deprecated. Please replace `import dash_core_components as dcc` with `from dash import dcc` import dash_core_components as dcc /home/pi/SDL_Pi_SkyWeather2/dash_app/index.py:6: UserWarning: The dash_html_components package is deprecated. Please replace `import dash_html_components as html` with `from dash import html` import dash_html_components as html Traceback (most recent call last): File "/home/pi/SDL_Pi_SkyWeather2/dash_app/index.py", line 20, in <module> import status_page File "/home/pi/SDL_Pi_SkyWeather2/dash_app/status_page.py", line 23, in <module> import state File "/usr/local/lib/python3.9/dist-packages/state/__init__.py", line 39 except AttributeError, e:
|
|
|
Post by SDL on Jan 16, 2022 11:10:30 GMT -8
Waitb,
You are on a newer version of Dash than we support. See what Jason has said above.
BP
|
|