pigeo icon indicating copy to clipboard operation
pigeo copied to clipboard

UnicodeDecodeError

Open JArma19 opened this issue 4 years ago • 2 comments

I'm trying to use pigeo in library mode, but .load_model() function cause always this error:

>>> pigeo.load_model()
04/25/2020 08:41:20 PM loading the saved model from pickle files in ./models/lrworld
04/25/2020 08:41:20 PM it might take about 2 minutes...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\arman\Desktop\pigeo\pigeo.py", line 467, in load_model
    params.coordinate_address = pickle.load(gzip.open(os.path.join(model_dir, 'coordinate_address.pkl.gz'), 'rb'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9a in position 0: ordinal not in range(128)

Could you please help me? Am I missing something? Notice I followed the Quick Start guide.

JArma19 avatar Apr 25 '20 18:04 JArma19

What Python version are you using? This was written for Python 2 not Python 3.

afshinrahimi avatar Apr 26 '20 13:04 afshinrahimi

Ok, I forgot this requirement. Thanks

JArma19 avatar May 09 '20 15:05 JArma19