Post by pkelly517 on Nov 28, 2021 19:15:18 GMT -8
I finally got some free time to rebuild the SDcard in my setup.
Finding a Buster image for non-desktop installs is non-trivial. Once I got the non-desktop image installed and updated, I built the rest of the software. Most things went well, eventually.
But, when I tried to run the dash app, I get this
Dash has been updated recently. This is the pip list
dash 2.0.0
dash-bootstrap-components 1.0.1
dash-core-components 2.0.0
dash-daq 0.5.0
dash-html-components 2.0.0
dash-table 5.0.0
Is there an image available for flashing the sdcard that has all the correct components? Maybe the image that SDL uses on the sdcard they sell? That would certainly help with all software/config questions if everyone is at the same place.
Thanks
Peter
Finding a Buster image for non-desktop installs is non-trivial. Once I got the non-desktop image installed and updated, I built the rest of the software. Most things went well, eventually.
But, when I tried to run the dash app, I get this
insert cod2021-11-28 20:59:01,153] ERROR in app: Exception on /_dash-update-component [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/usr/local/lib/python3.7/dist-packages/dash/dash.py", line 1336, in dispatch
response.set_data(func(*args, outputs_list=outputs_list))
File "/usr/local/lib/python3.7/dist-packages/dash/_callback.py", line 151, in add_context
output_value = func(*func_args, **func_kwargs) # %% callback invoked %%
File "index.py", line 137, in display_page
myLayout = status_page.StatusPage()
File "/home/pi/SDL_Pi_Skyweather2/dash_app/status_page.py", line 752, in StatusPage
no_gutters=True,
File "/usr/local/lib/python3.7/dist-packages/dash/development/base_component.py", line 388, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/dash_bootstrap_components/_components/Row.py", line 76, in __init__
super(Row, self).__init__(children=children, **args)
File "/usr/local/lib/python3.7/dist-packages/dash/development/base_component.py", line 134, in __init__
", ".join(sorted(self._prop_names))
TypeError: The `dash_bootstrap_components.Row` component (version 1.0.1) received an unexpected keyword argument: `no_gutters`
Allowed arguments: align, children, className, class_name, id, justify, key, loading_state, style
^C^CError in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python3.7/logging/__init__.py", line 2038, in shutdown
h.flush()
File "/usr/lib/python3.7/logging/__init__.py", line 1017, in flush
if self.stream and hasattr(self.stream, "flush"):
File "/usr/local/lib/python3.7/dist-packages/werkzeug/local.py", line 432, in __get__
obj = instance._get_current_object()
File "/usr/local/lib/python3.7/dist-packages/werkzeug/local.py", line 553, in _get_current_object
if not hasattr(self.__local, "__release_local__"): # type: ignore
e here
Dash has been updated recently. This is the pip list
dash 2.0.0
dash-bootstrap-components 1.0.1
dash-core-components 2.0.0
dash-daq 0.5.0
dash-html-components 2.0.0
dash-table 5.0.0
Is there an image available for flashing the sdcard that has all the correct components? Maybe the image that SDL uses on the sdcard they sell? That would certainly help with all software/config questions if everyone is at the same place.
Thanks
Peter