Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-01-2017, 04:26 AM   #1
Keltia
Member
Keltia began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Nov 2013
Device: Pocketbook Lux 3 / iPad Mini retina/iPhone 6
2.85.1: locale issue with En_US.UTF-8

macOS 10.12.4, locale set to En_US.UTF-8, Python 2.7.13 from Homebrew.

I have been running with this for a long time but after doing the upgrade to 2.85.1, I now get this stacktrace and calibre has to be manually killed. Any idea?

<pre>
calibre, version 2.85.1
ERROR: Startup error: There was an error during calibre startup. Parts of calibre may not function. Click Show details to learn more.

Traceback (most recent call last):
File "site-packages/calibre/gui2/main.py", line 291, in initialize_db_stage2
File "site-packages/calibre/gui2/main.py", line 226, in start_gui
File "site-packages/calibre/gui2/ui.py", line 158, in __init__
File "site-packages/calibre/gui2/ui.py", line 172, in init_iaction
File "site-packages/calibre/customize/__init__.py", line 614, in load_actual_plugin
File "lib/python2.7/importlib/__init__.py", line 37, in import_module
File "site-packages/calibre/gui2/actions/catalog.py", line 13, in <module>
File "site-packages/calibre/gui2/tools.py", line 16, in <module>
File "site-packages/calibre/gui2/convert/single.py", line 20, in <module>
File "site-packages/calibre/gui2/convert/search_and_replace.py", line 11, in <module>
File "site-packages/calibre/gui2/convert/search_and_replace_ui.py", line 155, in <module>
File "site-packages/calibre/gui2/convert/regex_builder.py", line 18, in <module>
File "site-packages/calibre/ebooks/conversion/search_replace.py", line 7, in <module>
File "site-packages/regex/__init__.py", line 673, in <module>
File "site-packages/regex/__init__.py", line 426, in _compile
File "lib/python2.7/locale.py", line 562, in getlocale
File "lib/python2.7/locale.py", line 475, in _parse_localename
ValueError: unknown locale: UTF-8
</pre>
Keltia is offline   Reply With Quote
Old 06-01-2017, 05:23 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Your locale settings are incorrect.

You want something like

LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
kovidgoyal is offline   Reply With Quote
Advert
Old 06-01-2017, 05:25 AM   #3
Keltia
Member
Keltia began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Nov 2013
Device: Pocketbook Lux 3 / iPad Mini retina/iPhone 6
2.85.1: SOLVED

I had to add

export LC_CTYPE=En_US.UTF-8

to my environment, that's a new one.

Now, to see why the calibre3 beta fails with one these dreaded LSOpenURLsWithRole() errors (-10810).
Keltia is offline   Reply With Quote
Old 06-01-2017, 05:26 AM   #4
Keltia
Member
Keltia began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Nov 2013
Device: Pocketbook Lux 3 / iPad Mini retina/iPhone 6
Quote:
Originally Posted by kovidgoyal View Post
Your locale settings are incorrect.

You want something like

LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
I already had the first one!
Keltia is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
UTF-16 forced to UTF-8 brolny Sigil 7 09-22-2015 12:56 PM
Japanese keyboard without locale switching? Patricius Kobo Reader 4 05-04-2015 03:55 AM
Searching by date does not consider System Locale when using ambiguous dates tempura Library Management 2 04-12-2014 06:31 AM
Latest Calibre crashes on launch python complains of unknown locale en_En gmackenz Calibre 4 12-20-2010 01:00 PM
Information on unsupported Locale keng2000 HanLin eBook 0 02-24-2009 11:26 PM


All times are GMT -4. The time now is 09:43 AM.


MobileRead.com is a privately owned, operated and funded community.