PotreeConverter: locale::facet::_S_create_c_locale name not valid
Hi there! I am trying to make PotreeConverter work on MacOS 10.12. I have managed to compile it (with gcc6) but when I try to run it I get the following error:
PotreeConverter -h
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Abort trap: 6
Any ideas how to fix this problem?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 6
- Comments: 15
So, after checking out various posts on similar issues I tried putting this in my .profile: export LC_ALL=C; unset LANGUAGE
and now it works 😃
in my case, I could not make it work with the previous 2 commands changing both LC_ALL and LANGUAGE
I had to edit the file /etc/locale.gen and uncomment the line
and finally run the command “sudo locale-gen”
I think this issue was closed too soon, changing the locale is a workaround and not a fix.
I got the same issue when running from
python:3.7-alpine
but I do not have the issue when running fromalpine
alpine
python:3.7-alpine