Closed
Description
Trying to cx_Freeze a dash app, I get errors that it cannot import pkg_resources
in
plotly.py/plotly/offline/offline.py
Line 11 in f727c46
From a google search, seems like pkg_resources
is hard to include with cx_Freeze and most solutions requires editing the site-package libs that use pkg_resources
. I was only able to get past the problem once I commented out the import in my local plotly install.
I think pkg_resources
can be replaced with pkgutils
like we use in dash to get the bundle files.
https://github.com/plotly/dash/blob/f94991be2db9a3a640ea680c2cf872611f857eb6/dash/dash.py#L453
Metadata
Metadata
Assignees
Labels
No labels