Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 05-25-2017, 11:10 PM   #1
Chaaang
Junior Member
Chaaang began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2017
Device: amazon paperwhite
Cannot run calibre-debug -g

unknown locale: UTF-8`

Hello.

I have managed to successfully install Calibre on my RMBP in the normal dmg way.

When I try to run the commands 'calibre-debug -g', I get the output: `ValueError: unknown locale: UTF-8`
https://pastebin.com/przZsvdg

If anyone can help point me in the right direction so that I can continue to figure out how to be involved in Calibre development.

thanks.
Chaaang is offline   Reply With Quote
Advert
Old 05-25-2017, 11:46 PM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 1,277
Karma: 5400000
Join Date: Jun 2010
Device: Windows 10 tablet,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
What is a RMBP?

What operating system are you using?

bernie
gbm is offline   Reply With Quote
Old 05-26-2017, 12:19 AM   #3
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 9,198
Karma: 7797387
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by gbm View Post
What is a RMBP?

What operating system are you using?

bernie
@gbm - pretty safe bet it's OSX

RMBP = Retina MacBook Pro, and dmg = disk image (files), which are an Apple ISO like artefact

BR
BetterRed is offline   Reply With Quote
Old 05-26-2017, 12:23 AM   #4
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: 31,740
Karma: 8696042
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It looks like one of your locale related environment variables is set incorrectly. Try running it with

LANG=en_US.UTF-8 calibre-debug -g
kovidgoyal is offline   Reply With Quote
Old 05-26-2017, 05:33 AM   #5
Chaaang
Junior Member
Chaaang began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2017
Device: amazon paperwhite
Unhappy

Quote:
Originally Posted by kovidgoyal View Post
It looks like one of your locale related environment variables is set incorrectly. Try running it with

LANG=en_US.UTF-8 calibre-debug -g
sry, but I got the same error,
Chaaang is offline   Reply With Quote
Advert
Old 05-26-2017, 05:41 AM   #6
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: 31,740
Karma: 8696042
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Probably you also need to set LC_ALL, see for example https://stackoverflow.com/questions/...o-utf8-how-fix
kovidgoyal is offline   Reply With Quote
Old 05-26-2017, 07:10 AM   #7
Chaaang
Junior Member
Chaaang began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2017
Device: amazon paperwhite
Thumbs up

Quote:
Originally Posted by kovidgoyal View Post
Probably you also need to set LC_ALL, see for example https://stackoverflow.com/questions/...o-utf8-how-fix
I fix this after I add the follow code into my shell(zsh) config (~/.zshrc)

```bash
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
```

It worked well.

thanks, really.

And I can't figure out how this things get work, In the same OS, I can run calibre without add anything to my config, How?
Chaaang is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to debug Calibre crash? DMcCunney Devices 8 05-14-2017 10:23 PM
Run Calibre in Debug Mode Output to File toomuchreading Calibre 1 03-07-2016 05:58 PM
Ctrl-Shft-R Debug vs calibre-debug -g JimmXinu Development 3 11-20-2014 10:57 AM
Preferences > Run in Debug Removed? JimmXinu Plugins 3 09-07-2014 04:38 PM
Calibre debug file meme Calibre 7 02-01-2011 05:45 PM


All times are GMT -4. The time now is 01:48 AM.


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