Closed edejuan closed 2 years ago
By the way, I'm using Google Colab Pro Thanks!
Hi @edejuan , thanks for your comment.
The code sets locale to en_DK.UTF-8 to read the files from OMIE:
locale.setlocale(locale.LC_NUMERIC, "en_DK.UTF-8")
so you have to have it installed. i guess they come installed by default in windows systems, but you may need to figure out how to install them in other systems. For instance, in ubuntu is:
sudo apt-get update sudo apt-get install locales
I hope this helps. Let me know how it goes.
Hi @edejuan, I hope it finally worked. I will close this issue so it does not stay indefinitely opened.
Hello Alberto I reopen this issue because I m using pycharm in windows and I can't figure it out how to fix this issue with the format. I looked on forums but didn t found. Any idea on your side pls?
Hi tn2094, sorry i took so long for me to answer. It looks like the issue is still closed so i didnt see your comment until now...
Did you try to install locales? Could you tell me what OS are you using to run the package? I would like to try to reproduce the issue so please provide as much information as possible.
Hola Alberto !
I just tried again but keep on having this error. Maybe do you have a moment to discuss so i can share you my screen and we see? If yes can i send you an invitation via a.cruz.garcia@gmail.com?
Thanks for the help
Hello, I am also having the same error, using a docker container python:3.10.1-slim-buster. Any further developments on this issue?
Somehow this locale en_DK.UTF-8 was not pre-installed. I solved this issue using the following commands. What made the trick was installing locales-all
RUN apt-get update && \ apt-get install -y locales locales-all && \ dpkg-reconfigure --frontend=noninteractive locales
Thanks for the additional explanation on how to fix it.
Hi @acruzgarcia @mirelmora , congrats on this project! It looks super interesting. I'm very excited to using it, but unfortunately it gives me an error.
I'm launching this piece of code from your examples (I changed the dates to try faster):
But I'm afraid I get an error "unsupported locale setting". This is the output:
I'd really appreciate if you could tell my what I'm doing wrong. Thanks!