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

Getting Error while loading dwords.p file #17

Open
rakashi opened this issue Sep 7, 2017 · 4 comments
Open

Getting Error while loading dwords.p file #17

rakashi opened this issue Sep 7, 2017 · 4 comments

Comments

@rakashi
Copy link

rakashi commented Sep 7, 2017

Traceback (most recent call last):
File "/home/bindu/Desktop/text similarity/Siamese-LSTM-master/SiameseLSTM.py", line 403, in
dtr=pickle.load(open("./dwords.p",'rb'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4: ordinal not in range(128)

@aditya1503
Copy link
Owner

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

@rakashi
Copy link
Author

rakashi commented Sep 8, 2017

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
where I have to set these properties, I tried by setting in bashrc file but I am still getting the same error again

I have installed h5py library also

Traceback (most recent call last):
File "alignDraw.py", line 3, in
import h5py
File "/home/monica/.local/lib/python2.7/site-packages/h5py/init.py", line 24, in
from . import _errors
ImportError: /home/monica/.local/lib/python2.7/site-packages/h5py/_errors.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8

Please help me

@aditya1503
Copy link
Owner

are you using Python 3?
it works on Python 2

@LuckySherry
Copy link

LuckySherry commented Nov 10, 2017

try
dtr=pickle.load(open("./dwords.p",'rb'), encoding='latin1')

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

3 participants