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

detect cannot be pickled #28

Open
Dobatymo opened this issue Feb 13, 2020 · 0 comments
Open

detect cannot be pickled #28

Dobatymo opened this issue Feb 13, 2020 · 0 comments

Comments

@Dobatymo
Copy link
Contributor

Dobatymo commented Feb 13, 2020

Hi, it would be great to have pickle support. The following snippet fails on python 3.7 and 3.8 using version 0.31 and 0.41 respectively.

>>> import pickle, pycld2
>>> pickle.dumps(pycld2.detect)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
_pickle.PicklingError: Can't pickle <built-in function detect>: import of module 'cld' failed

I am not familiar with C bindings for python, but maybe the error is related to using the wrong name for the module here

"cld", // m_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant