plotly.py
plotly.py copied to clipboard
pyinstaller plotly 6.1.0
Using pyinstaller to compile plotly version 6.1.0 gives an error:
Traceback (most recent call last):
File "test_build.py", line 1, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 450, in exec_module
File "plotly/express/__init__.py", line 25, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 450, in exec_module
File "plotly/express/_imshow.py", line 3, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 450, in exec_module
File "plotly/express/_core.py", line 50, in <module>
File "plotly/graph_objs/__init__.py", line 161, in __getattr__
File "_plotly_utils/importers.py", line 36, in __getattr__
File "importlib/__init__.py", line 126, in import_module
ModuleNotFoundError: No module named 'plotly.graph_objs._scatter'
If using a PyInstaller spec file (test_build.spec):
Edit your spec file and add:
hiddenimports=[ "plotly.graph_objs", "plotly.validators", "plotly.graph_objs.scatter", "plotly.graph_objs.layout", "plotly.graph_objs.bar", "plotly.graph_objs.figure", "plotly.graph_objs.scattergl", "plotly.graph_objs.histogram", "plotly.graph_objs.pie", "plotly.graph_objs.box", "plotly.graph_objs.heatmap" ], Then build with:
pyinstaller test_build.spec