Skip to content

Difficulties with cx_Freeze and plotly.py #1199

Closed
@T4rk1n

Description

@T4rk1n

Trying to cx_Freeze a dash app, I get errors that it cannot import pkg_resources in

from pkg_resources import resource_string
.

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions