Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-25-2017, 10: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
Old 05-25-2017, 10: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: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,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-25-2017, 11:19 PM   #3
BetterRed
null operator (he/him)
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: 20,553
Karma: 26954694
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-25-2017, 11:23 PM   #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: 43,843
Karma: 22666666
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 online now   Reply With Quote
Old 05-26-2017, 04: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
Old 05-26-2017, 04: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: 43,843
Karma: 22666666
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 online now   Reply With Quote
Old 05-26-2017, 06: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


Forum Jump

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


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


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