Skip to content

Python style config files try pickling module imports? #556

@bitprophet

Description

@bitprophet

I could swear we already ran into and fixed this but I cannot find another issue for it, and the only applicable test I can find specifically calls out builtins and not other imported modules.

Symptomatic case is fabric/fabric#1823 where a user is (unintentionally) loading a tasks module as a runtime config file. The presence of the os module then causes an explosion as modules cannot be pickled, which copy.copy does internally (ugh).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions