Skip to content

pyinstaller plotly 6.1.0 #5190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Liripo opened this issue May 20, 2025 · 1 comment
Open

pyinstaller plotly 6.1.0 #5190

Liripo opened this issue May 20, 2025 · 1 comment
Labels
bug something broken P2 considered for next cycle

Comments

@Liripo
Copy link

Liripo commented May 20, 2025

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'
@gvwilson gvwilson added bug something broken P2 considered for next cycle labels May 20, 2025
@rahimbaig28
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P2 considered for next cycle
Projects
None yet
Development

No branches or pull requests

3 participants