hello-ltr icon indicating copy to clipboard operation
hello-ltr copied to clipboard

Decode problems with json.loads

Open chrisoraruf opened this issue 3 years ago • 2 comments

I'm simply running "osc-blog.ipynb" inside "hello-ltr/notebooks/elasticsearch/osc-blog/" with jupyter notebook. I can run only the first cell, because in the second one, where is json.loads, comes

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 1780: character maps to

I read that with python 3.9 encoding argument has been removed, so I don't know how to resolve the problem.

chrisoraruf avatar Jul 14 '21 15:07 chrisoraruf

Hello,

What version of Python are you currently on? I get lots of other problems with the project dependencies when I try to use 3.9.6 so we may just be incompatible with that version for the time being until the dependencies are updated. So far I haven't been able to replicate the specific error you ran into.

Regarding the docker issues you mentioned in relevance slack: If you edit the docker compose file to remove the solr service and edit your Docker for Desktop settings to allocate more RAM you may have more luck with that route.

worleydl avatar Jul 14 '21 16:07 worleydl

Hello,

I've created a virtual environment to run the program, and I also have some problems with the dependecies; anyway, in this environment I'm using python 3.9, I think 3.9.1.

Regarding docker, I'll try this way. I hope that I'll not need to use docker in my project. Thanks

chrisoraruf avatar Jul 15 '21 07:07 chrisoraruf