question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

csvjson: AttributeError: 'module' object has no attribute 'Locale'

See original GitHub issue

When using csvjson with Python 2.7 I got this error:

AttributeError: 'module' object has no attribute 'Locale'

I traced the issue back to the package parsedatetime-2.6 that is used by csvkit.

The issue can be fixed by locking that package to version 2.5.

Also see these discussions: https://github.com/bear/parsedatetime/issues/246 https://github.com/certbot/certbot/issues/8042

I hope that this issue can be useful for others that run into the same problem.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:11
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
spacetouristcommented, Jun 29, 2020

Helped me, so much appreciated ❤️

1reaction
spiercommented, Apr 17, 2021

Great to see that this thread is still useful for others 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Certbot fails with AttributeError: 'module' object has no ...
I setup a new server a couple of months ago, running Ubuntu 18.04 LTS. I successfully installed certbot and created my certificates using...
Read more >
certbot: AttributeError: 'module' object has no attribute 'Locale'
certbot: AttributeError: 'module' object has no attribute 'Locale'. Reported by: ryandesign (Ryan Schmidt), Owned by: Schamschula (Marius ...
Read more >
manual page for csvjson 1.0.2 - manpages.ubuntu!
-e ENCODING, --encoding ENCODING Specify the encoding of the input CSV file. -L LOCALE, --locale LOCALE Specify the locale (en_US) of any formatted...
Read more >
ttf_lookup_cache attribute not found in FontManager when ...
AttributeError : 'FontManager' object has no attribute 'ttf_lookup_cache'. But when I do the following it works: >>> from matplotlib.font_manager import ...
Read more >
latest PDF - CKAN documentation
AttributeError : 'module' object has no attribute 'css/main.debug.css'. This error is likely to show up when debug is set to True. To fix...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found