Closed dmnxprss closed 6 years ago
Hi @dmnxprss , thanks for submitting your issue. We'll get back to you in the next few days, but in the meantime, could you please help out with a few details?
python -V
, please check to make sure if you are in virtualenv/condalexnlp
version: $ python3 -c "import lexnlp; print(lexnlp.__version__)"
Hey no issues, I'll look into it using 3
Hi @mjbommar, originally i tried import lexnlp.nlp.en.segments.paragraphs
with python 2.7
which produced the error
ValueError: unsupported pickle protocol: 4
I then moved to python 3.6
and tried loading this and other pickle files which produced the below error
_pickle.UnpicklingError: invalid load key, '\x02
as for the lexnlp version, i am using 0.1.8
Hi @dmnxprss
could you please also share pip freeze
output?
Hello @dmnxprss, we've been unable to reproduce this issue so far on our end. It seems like it was first caused by using the wrong version of Python (we only support Python 3), but the second error suggests you might be opening the file without binary mode (or targeting the wrong file).
If you can produce some sample code for us to review, we might otherwise be able to help.
Receiving the following error where any pickle file is loaded _pickle.UnpicklingError: invalid load key, '\x02'
Eg. Line 35 sections.py