|
Post by Powderjockey on Aug 26, 2022 11:42:22 GMT -8
Getting this error with the /dash_app/index.py. Any ideas on this?
ImportError: cannot import name 'ValidatorCache' from partially initialized module 'plotly.validator_cache' (most likely due to a circular import) (/usr/local/lib/python3.9/dist-packages/plotly/validator_cache.py)
|
|
|
Post by SDL on Aug 27, 2022 8:45:20 GMT -8
What version and software are you running?
This is a new one on me.
BP
|
|
|
Post by Powderjockey on Aug 29, 2022 7:33:10 GMT -8
What version and software are you running? This is a new one on me. BP Version 016 of WeatherSense
|
|
|
Post by SDL on Aug 30, 2022 15:14:06 GMT -8
It looks like this has to do with a version problem. Could you post the complete error? With the lines above showing where the problem is.
BP
|
|
|
Post by Powderjockey on Sept 6, 2022 14:36:38 GMT -8
It looks like this has to do with a version problem. Could you post the complete error? With the lines above showing where the problem is. BP pi@Pi-In-A-Rack:~/SDL_Pi_WeatherSense/dash_app $ sudo python3 index.py <module 'config' from '../config.py'> 1 /home/pi/SDL_Pi_WeatherSense/dash_app/static Dash is running on http://0.0.0.0:8050/
* Serving Flask app "index" (lazy loading) * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: off n_intervals= 332 SolarMAX Solar Voltages n_intervals= 332 SolarMAX Solar Currents [2022-09-05 04:35:36,406] ERROR in app: Exception on /_dash-update-component [POST] Traceback (most recent call last): File "/usr/lib/python3/dist-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/usr/lib/python3/dist-packages/flask/app.py", line 1952, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib/python3/dist-packages/flask/app.py", line 1821, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise raise value File "/usr/lib/python3/dist-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python3/dist-packages/flask/app.py", line 1936, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/local/lib/python3.9/dist-packages/dash/dash.py", line 1096, in dispatch response.set_data(func(*args, outputs_list=outputs_list)) File "/usr/local/lib/python3.9/dist-packages/dash/dash.py", line 1017, in add_context output_value = func(*args, **kwargs) # %% callback invoked %% File "/home/pi/SDL_Pi_WeatherSense/dash_app/index.py", line 419, in update_metrics figure = solarmax_page.build_graph2_figure() File "/home/pi/SDL_Pi_WeatherSense/dash_app/solarmax_page.py", line 80, in build_graph2_figure trace1c = go.Scatter(x=df.timestamp, y=df.batterycurrent, name='battery current') File "/usr/local/lib/python3.9/dist-packages/plotly/graph_objs/_scatter.py", line 3212, in __init__ self["name"] = _v File "/usr/local/lib/python3.9/dist-packages/plotly/basedatatypes.py", line 4847, in __setitem__ validator = self._get_validator(prop) File "/usr/local/lib/python3.9/dist-packages/plotly/basedatatypes.py", line 4327, in _get_validator from .validator_cache import ValidatorCache ImportError: cannot import name 'ValidatorCache' from partially initialized module 'plotly.validator_cache' (most likely due to a circular import) (/usr/local/lib/python3.9/dist-packages/plotly/validator_cache.py
|
|
|
Post by SDL on Sept 11, 2022 15:52:16 GMT -8
Are you running the SD Card? If so, what version?
BP
|
|