dcc.Geolocation problem in server for deploy in WGSI

Hi, when im going i local works. but after uploead in python anyehere shows this error:

rror running WSGI application
2023-05-17 14:19:10,678: AttributeError: module ‘dash.dcc’ has no attribute ‘Geolocation’
2023-05-17 14:19:10,678: File “/var/www/jairopb_pythonanywhere_com_wsgi.py”, line 16, in
2023-05-17 14:19:10,678: from pyvisualcross2 import app as plotly_app
2023-05-17 14:19:10,678:
2023-05-17 14:19:10,678: File “/home/jairopb/WAPP_BACKUP/pyvisualcross2.py”, line 23, in
2023-05-17 14:19:10,678: dcc.Geolocation(id=“geolocation”),

I already update to dash 2.9.3 and still doesnt work.

Hi @Jairopb

The error message looks like it’s using an older version of Dash. Are you using a virtual environment at Pythonanyhwere, and is it set to the right path.

Here is an example of how it’s set up for this Geolocation demo: https://dccgeolocation.pythonanywhere.com/


Also, it’s necessary to enable HTTPS - see more info here: