-
Notifications
You must be signed in to change notification settings - Fork 72
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
locale.Error: unsupported locale setting #27
Comments
Your date format should be supported. What language is your Facebook in? Facebook language here: https://www.facebook.com/settings?tab=language |
The language is English (UK) |
Run the program again with the logging level set to |
I get the same error stack when the script tries to retrieve current month's birthdays. |
I'm also affected by this issue. My Facebook language settings are English (UK) and region format UK (English). @mobeigi I've emailed you my debug log. |
Okay so basically Facebook uses day names for the following 7 days instead of a date when displaying the data. So if a birthday is in 3 days from today which is Doing some testing now. Thanks for the logs @bobpullen |
I take it you're all experiencing this issue on unix machines. Can somebody try this solution and try to run script again: |
What do you think locale could be @moeigi |
The locale will match your Facebook language setting. As you're using Try this simple python program, does it also give you an error: import locale
locale.setlocale(locale.LC_ALL, 'en_GB') |
Then might be worth trying to set all locale by itself and then with Thanks for the help! |
Maybe using Babel library could help? Library: http://babel.pocoo.org/en/latest/index.html |
Trying the equivilent hasn't worked for me. hardcoding to en_GB.UTF-8 still gives me...
|
@bobpullen Edited your post to remove some sensitive info in the debug logs, careful! Anyway, can you try |
@bobpullen Just to be sure, did you put quotes around the locale? And what is the output of |
Okay so for the final solution I decided to use I think this solves the issue for most people. On my machine, the following locales fail both the babel and system locale lookups but we'll investigate further when a user using one of these locales shows up.
Thanks all! |
Okay. Thanks @mobeigi |
I'm new to python and getting this following error. FYI, I'm from India so, is there any issue in Indian Date Format?
The text was updated successfully, but these errors were encountered: