WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Calibre 1.48 doesn't run! :-(  (Read 2208 times)

Offline quellen

  • Newbie
  • *
  • Posts: 47
Calibre 1.48 doesn't run! :-(
« on: June 22, 2016, 01:50:12 PM »
Hi,
i have downloades the binaries of calibre 1.48 here:
https://download.calibre-ebook.com/1.48.0/

but it doesn't work:

Code: [Select]
$ ./calibre
WARNING: Failed to set default libc locale, using en_US.UTF-8
Traceback (most recent call last):
  File "site.py", line 56, in main
  File "site.py", line 13, in set_default_encoding
  File "locale.py", line 547, in setlocale
Error: unsupported locale setting
Code: [Select]
$ ./ebook-edit
WARNING: Failed to set default libc locale, using en_US.UTF-8
Traceback (most recent call last):
  File "site.py", line 56, in main
  File "site.py", line 13, in set_default_encoding
  File "locale.py", line 547, in setlocale
Error: unsupported locale setting

Code: [Select]
$ ls -l
total 184
drwxr-xr-x    2 tc       staff         4096 Jun 22 22:33 bin/
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 calibre
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 calibre-complete
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 calibre-customize
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 calibre-debug
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 calibre-parallel
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 calibre-server
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 calibre-smtp
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 calibre_postinstall
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 calibredb
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 ebook-convert
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 ebook-device
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 ebook-edit
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 ebook-meta
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 ebook-polish
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 ebook-viewer
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 fetch-ebook-metadata
drwxr-xr-x    5 tc       staff         4096 Jun 22 22:35 lib/
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 lrf2lrs
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 lrfviewer
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 lrs2lrf
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 markdown-calibre
drwxr-xr-x   13 tc       staff         4096 Jun 22 22:36 resources/
-rwxr-xr-x    1 tc       staff          162 Jun 22 22:36 serverauth.mkbWjNxZBv
-rwxr-xr-x    1 tc       staff         7454 Jun 22 22:36 web2disk
Code: [Select]
$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=it
LC_CTYPE="it"
LC_NUMERIC="it"
LC_TIME="it"
LC_COLLATE="it"
LC_MONETARY="it"
LC_MESSAGES="it"
LC_PAPER="it"
LC_NAME="it"
LC_ADDRESS="it"
LC_TELEPHONE="it"
LC_MEASUREMENT="it"
LC_IDENTIFICATION="it"
LC_ALL=


Code: [Select]
tc@box:~$ mkdir -p $HOME/.locale
tc@box:~$ I18NPATH=./wrk/ localedef -f UTF-8 -i it_IT $HOME/.locale/it_IT.UTF-8
tc@box:~$ LOCPATH=$HOME/.locale LC_ALL=it_IT.UTF-8 date
Wed Jun 22 23:17:42 UTC 2016
tc@box:~$ echo "export LOCPATH=\$HOME/.locale" >> $HOME/.bashrc
tc@box:~$ echo "export LANG=it_IT.UTF-8" >> $HOME/.bashrc

why? :-(
« Last Edit: June 22, 2016, 02:19:56 PM by quellen »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11220
Re: Calibre 1.48 doesn't run! :-(
« Reply #1 on: June 22, 2016, 06:23:54 PM »
Hi quellen
Code: [Select]
LANG=it
LC_CTYPE="it"
LC_NUMERIC="it"
LC_TIME="it"
LC_COLLATE="it"
LC_MONETARY="it"
LC_MESSAGES="it"
LC_PAPER="it"
LC_NAME="it"
LC_ADDRESS="it"
LC_TELEPHONE="it"
LC_MEASUREMENT="it"
LC_IDENTIFICATION="it"
LC_ALL=
According to this:
http://stackoverflow.com/questions/14547631/python-locale-error-unsupported-locale-setting
Quote
Note that if you want to set the locale to it_IT you must also specify the .utf8

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10961
Re: Calibre 1.48 doesn't run! :-(
« Reply #2 on: June 23, 2016, 02:27:54 AM »
Have you generated those locales, using getlocale.tcz? The base only supports the "C" locale.
The only barriers that can stop you are the ones you create yourself.

Offline quellen

  • Newbie
  • *
  • Posts: 47
Re: Calibre 1.48 doesn't run! :-(
« Reply #3 on: June 23, 2016, 05:31:57 AM »
thanks for reply, but what could i type?

i have tried:
Code: [Select]
$ export LANG="it_IT.UTF-8"
$ export LC_ALL="it_IT.UTF-8"
$ export LC_CTYPE="it_IT.UTF-8"
$ sudo getlocale.sh

but calibre still say same error.

Offline quellen

  • Newbie
  • *
  • Posts: 47
Re: Calibre 1.48 doesn't run! :-(
« Reply #4 on: June 23, 2016, 05:51:34 AM »
I SOLVED:
Code: [Select]
$ export LC_ALL=C

now ebook-edit run but it's very very slow (hard disk swap continaully)

in the same computer with WindowsXP (and Calibre1.48 portable) works faster. why?

i have 128MB of RAM + a swap partition of 300MB
« Last Edit: June 23, 2016, 05:55:34 AM by quellen »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Calibre 1.48 doesn't run! :-(
« Reply #5 on: June 23, 2016, 12:43:40 PM »
You need more RAM.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11220
Re: Calibre 1.48 doesn't run! :-(
« Reply #6 on: June 23, 2016, 06:03:35 PM »
Hi quellen
You could try freeing up some RAM and see if that helps. Add the  nozswap  boot code to your boot loader. Switching to
a persistent  /home  and  /opt  if you have a lot of stuff in them could help too.

Offline quellen

  • Newbie
  • *
  • Posts: 47
Re: Calibre 1.48 doesn't run! :-(
« Reply #7 on: June 24, 2016, 12:56:15 PM »
/home is already persistent. in /opt i haven't big things (Calibre is at /home).
while using Calibre (ebook-edit), the swap usage is max 95MB (of 300MB)

I am forced to use WindowsXP :-(

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10961
Re: Calibre 1.48 doesn't run! :-(
« Reply #8 on: June 25, 2016, 12:51:41 AM »
If Calibre's memory usage between platforms differs that much, you should report a bug to them.
The only barriers that can stop you are the ones you create yourself.