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
new_port fails with AttributeError (locale.nl_langinfo missing) #1313
Comments
The situation is
About the bug: Module locale has no nl_langinfo in python 2.7 and 3.3 in Windows |
@Kwpolska Got the same bug, and the workaround results in this:
I changed the python file to |
Oh, that’s broken, too. Thanks for the report, @ishamf! Will fix it soon. |
What if we delegate date-time to some library that have it's own databases, meaning it will not link with some semi-ramdom implementation of a C library ? Looking in pypi and the web two possible candidates are BabelPure python, includes database from CLDR (Common Locale Data Repository) . PyICUPython bindings to the ICU library , http://site.icu-project.org/ , includes its own databases. Not pure python, I suspect will be not pip friendly in unix-like systems (installation mentions to adjust some path, probably it would be better to install from a distro package manager) Interesting because long term it could handle all the localization needs for Nikola, without need to install OS locale support for extra languajes. It also provides conversion between posix locale names and windows locale names. Size: 12MB the windows binaries + bindings Also: current PyICU mantainer is very responsive, I asked for certain function not present in the binding at in a few hours was added to the svn repo. So what ?I think pyICU is a bit heavy-weight just now, at least for unix-like systems. I can give it a try to Babel if Nikola honchos think is an acceptable dependency. A question: in new_post.py , function get_date(), do we need to mimic exactly the current output format ? |
@ccanepa We don’t need to mimic any previous format. It just has to be usable by everyone (including About the other things we do with locales, we might try with Babel, if it works out for Nikola’s needs… |
Just installed Nikola, your handbook claims that you support Windows. However you use locale.nl_langinfo which is not available there, resulting in crashes.
Is Windows actually supported (i.e. tested) or should I move on to another website generator? I know docs can easily become inaccurate :)
The text was updated successfully, but these errors were encountered: