Forums

AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'

I'm running a dash app on python 3.8. I have fully up to date versions of plotly of and dash installed. Every time I try to include this import:

import plotly.graph_objs as go

I get this error:

AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'

I've tried everything. I've tried updating, uninstalling, and reinstalling plotly. I've exhausted everything I can find in Google. The solution I keep finding is to update to the latest version of plotly.

Here you go: https://github.com/plotly/plotly.py/issues/1630

Thanks for getting back to me Glenn. I had tried this once before without luck, but I gave it another shot. I ended up manually deleting all plotly, ipywidgets, and dash files from my directory, and then reinstalling them via pip. It's finally working! I can finally press forward. Thank you for getting me over this hurdle.

Glad to hear that you made it work!

Glenn and bauerjordan42 can you please indicate which steps you did to solve the problem ? It is indicated to delete all plotlyt etc files. Where are these files ? I tried to download but then I was vlocked by the system

thanks

what do you mean by vlocked?

I have the same problem but we can't uninstall package because we do not have the permission to do so. Croma meant he was blocked ! And I'm facing the same issue. But I try this :

import plotly.figure_factory as ff

I get this error :

AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'

Install the version of plotly that your code is written for: https://help.pythonanywhere.com/pages/InstallingNewModules/