Skip to content
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

Cython Enums can't be pickled #167

Open
fxjung opened this issue May 14, 2021 · 0 comments
Open

Cython Enums can't be pickled #167

fxjung opened this issue May 14, 2021 · 0 comments
Labels
ongoing waiting for external events

Comments

@fxjung
Copy link
Member

fxjung commented May 14, 2021

see e.g.

cls = <class 'multiprocessing.reduction.ForkingPickler'>, obj = <concurrent.futures.process._CallItem object at 0x7f266ab446a0>, protocol = None

    @classmethod
    def dumps(cls, obj, protocol=None):
        buf = io.BytesIO()
>       cls(buf, protocol).dump(obj)
E       _pickle.PicklingError: Can't pickle <enum 'ExternalCost'>: attribute lookup ExternalCost on importlib._bootstrap failed

/home/jung/anaconda3/envs/the_simulator_b/lib/python3.9/multiprocessing/reduction.py:51: PicklingError
@fxjung fxjung added the ongoing waiting for external events label May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ongoing waiting for external events
Projects
None yet
Development

No branches or pull requests

1 participant