Closed loretoparisi closed 5 years ago
Thanks for the report. This is still most likely to be an issue with the environment or the data. For example, perhaps the updated pythainlp
project is now a different version that doesn't work with the pickled data (because it no longer includes the multi_cut
module).
The only reason this would be an issue with zodbpickle
is if the standard library pickle
module can successfully unpickle this data, but zodbpickle
cannot (in the same environment).
@jamadden from the last run I can see that after installing pythainlp
, I had the following logging:
[nltk_data] Downloading package wordnet to
[nltk_data] /Users/loretoparisi/nltk_data...
[nltk_data] Unzipping corpora/wordnet.zip.
[nltk_data] Downloading package omw to
[nltk_data] /Users/loretoparisi/nltk_data...
[nltk_data] Unzipping corpora/omw.zip.
and then the same error, or better without pythainlp
I had ImportError: No module named pythainlp.tokenize.multi_cut
, while with the module I had the latter ImportError: No module named multi_cut
. Not sure what this means.
It probably means that pythonainlp.tokenize
exists (now that you installed it), but that pythonainlp.tokenize.multi_cut
does not exist. But the pickled file refers to that missing module---hence the guess about an incompatible version.
At any rate, this doesn't appear to be zodbpickle related, most likely the standard library pickle would have the same issues. I would suggest discussing this with the maintainers of that library or data file.
Got it thank you.
I get this error while running:
As suggested, I have added
pythainlp
withpip install pythainlp -U
, but then I get