You are not logged in.
To make a long story short I would like to install the Calibre ebook reader.
I would like to know if that is even possible.
If so what packages need to be installed and which version of calibre works.
If someone has ever got it to work could they please say how.
My current problem:
I've installed packages xz, python, wget, and for good measure glibc-locale.
I run the python installer from the command line as root as suggested on the calibre install web site.
The install completes but I am having problems with calibre not setting locale and failing.
The specific error message is:
=====
WARNING: Failed to set default libc locale, using en_US.UTF-8
Traceback (most recent call last):
File "site.py", line 61, in main
File "site.py", line 13, in set_default_encoding
File "locale.py", line 579, in setlocale
Error: unsupported locale setting
=====
The calibre maintainer sent this in response to my plea:
=====
The setlocale glibc function is failing on your system. Why it is failing
you'd have to ask your distro maintainers for help with.
calibre first tries it as
setlocale(LC_ALL, '') for the default system locale and then
if that fails
setlocale(LC_ALL, 'en-US.UTF-8')
Most likely your distro/installation is missing the needed locale files.
======
But I read somewhere that the latest calibre needs SSE2 and I only have a pentium III (SSE only).
So I will likely try again with earlier versions.
Then there is the list of dependencies on the calibre download site, its daunting.
Offline
Hi raj,
Installing Calibre works very fine in my current system. I just corrected a bit installing commands adjusting to the fact SliTaz have no "real" sudo command:
then:
[c]--------------------------------------------------------------------------------
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | \
sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
--------------------------------------------------------------------------------[/c]
now:
[c]--------------------------------------------------------------------------------
su[/c]
enter root password and
[c]wget -O - https://download.calibre-ebook.com/linux-installer.py | \
python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
--------------------------------------------------------------------------------[/c]
To solve your problem, please provide the next information:
[c]--------------------------------------------------------------------------------
cat /etc/slitaz-release
env | grep -e 'LANG\|LC_ALL'
tazpkg -l | fgrep locale-
--------------------------------------------------------------------------------[/c]
Offline
I should have mentioned that I modified the install command line to remove sudo and ran it as root, just as you suggested. The install completed, I think the error arises from the post-install script.
Here's my details:
cat /etc/slitaz-release
5.0
env | grep -e 'LANG\|LC_ALL'
LANG=en_US
LC_ALL=en_US
tazpkg -l | fgrep locale-
locale-de 5.0 localization
locale-en 5.0 localization
locale-es 5.0 localization
locale-fr 5.0 localization
locale-pt_BR 5.0 localization
locale-ru 5.0 localization
Offline
Hi raj,
Your locale settings missed "UTF-8" at the end, my settings:
[c]LANG=ru_UA.UTF-8
LC_ALL=ru_UA.UTF-8[/c]
But it is not a root of a problem...
Right now I tried to install and run Calibre using clean SliTaz Rolling Core ISO.
Previously I only installed Python, and then run the installation command above mentioned.
[c]/==============================================================================\
root@slitaz:/home/tux# wget -O - https://download.calibre-ebook.com/linux-instal
ler.py | \
> python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec
(sys.stdin.read()); main()"
Connecting to download.calibre-ebook.com (88.202.231.80:443)
- 100% |*******************************| 26007 0:00:00 ETA
Installing to /opt/calibre
Downloading tarball signature securely...
Will download and install calibre-2.74.0-i686.txz
Downloading calibre-2.74.0-i686.txz
100% [======================================================================]
Downloaded 61520696 bytes
Checking downloaded file integrity...
Extracting files to /opt/calibre ...
Extracting application files...
Creating symlinks...
Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs
Symlinking /opt/calibre/calibre-smtp to /usr/bin/calibre-smtp
Symlinking /opt/calibre/ebook-meta to /usr/bin/ebook-meta
Symlinking /opt/calibre/ebook-edit to /usr/bin/ebook-edit
Symlinking /opt/calibre/calibre-debug to /usr/bin/calibre-debug
Symlinking /opt/calibre/ebook-viewer to /usr/bin/ebook-viewer
Symlinking /opt/calibre/calibre-server to /usr/bin/calibre-server
Symlinking /opt/calibre/calibre to /usr/bin/calibre
Symlinking /opt/calibre/ebook-device to /usr/bin/ebook-device
Symlinking /opt/calibre/fetch-ebook-metadata to /usr/bin/fetch-ebook-metadata
Symlinking /opt/calibre/ebook-convert to /usr/bin/ebook-convert
Symlinking /opt/calibre/calibredb to /usr/bin/calibredb
Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf
Symlinking /opt/calibre/ebook-polish to /usr/bin/ebook-polish
Symlinking /opt/calibre/web2disk to /usr/bin/web2disk
Symlinking /opt/calibre/markdown-calibre to /usr/bin/markdown-calibre
Symlinking /opt/calibre/lrfviewer to /usr/bin/lrfviewer
Symlinking /opt/calibre/calibre-customize to /usr/bin/calibre-customize
Symlinking /opt/calibre/calibre-parallel to /usr/bin/calibre-parallel
Setting up command-line completion...
Failed to find directory to install bash completions, using default.
____________________ WARNING ____________________
Setting up completion failed with error:
__________________________________________________
Traceback (most recent call last):
File "site-packages/calibre/linux.py", line 755, in setup_completion
File "site-packages/calibre/linux.py", line 510, in write_completion
File "site-packages/calibre/gui2/__init__.py", line 8, in <module>
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
Setting up desktop integration...
____________________ WARNING ____________________
Setting up desktop integration failed with error:
__________________________________________________
Traceback (most recent call last):
File "site-packages/calibre/linux.py", line 815, in setup_desktop_integration
File "site-packages/calibre/linux.py", line 800, in install_icons
File "site-packages/calibre/linux.py", line 790, in install_single_icon
File "site-packages/calibre/linux.py", line 1127, in render_img
ImportError: cannot import name QImage
Creating un-installer: /usr/bin/calibre-uninstall
There were 2 warnings
* Setting up completion failed with error:
* Setting up desktop integration failed with error:
Run "calibre" to start calibre
\==============================================================================/[/c]
Here errors and warnings. But I started calibre anyway:
[c]/==============================================================================\
root@slitaz:/home/tux# calibre
Traceback (most recent call last):
File "site.py", line 66, in main
File "site-packages/calibre/gui_launch.py", line 69, in calibre
File "site-packages/calibre/gui2/__init__.py", line 8, in <module>
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
\==============================================================================/[/c]
Need to install this library. I searched it using http://pkgs.slitaz.org/ and found I need package "mesa".
[c]/==============================================================================\
root@slitaz:/home/tux# tazpkg -gi mesa
mesa-9.1.3.tazpkg 100% |*******************************| 833k 0:00:00 ETA
Tracking dependencies for package "mesa"
================================================================================
Missing package "libpthread-stubs"
================================================================================
1 missing package to install.
libpthread-stubs-0.2 100% |*******************************| 2976 0:00:00 ETA
Installation of package "libpthread-stubs"
================================================================================
Weak aliases for pthread functions.
--------------------------------------------------------------------------------
Copying package... [ Done ]
Extracting package... [ Done ]
Remember modified packages... [ Done ]
Installing package... [ Done ]
Removing all tmp files... [ Done ]
================================================================================
Package "libpthread-stubs" (0.2) is installed.
Installation of package "mesa"
================================================================================
3D Graphics Library that is an open-source implementaton of OpenGL.
--------------------------------------------------------------------------------
Copying package... [ Done ]
Extracting package... [ Done ]
Remember modified packages... [ Done ]
Installing package... [ Done ]
Removing all tmp files... [ Done ]
================================================================================
Package "mesa" (9.1.3) is installed.
\==============================================================================/[/c]
Start the Calibre again:
[c]/==============================================================================\
root@slitaz:/home/tux# calibre
DBusExport: Failed to connect to DBUS session bus, with error: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
\==============================================================================/[/c]
OK, Calibre interface show.
Try using locale settings without "UTF-8" and try Calibre again:
[c]/==============================================================================\
root@slitaz:/home/tux# export LC_ALL=en_US LANG=en_US
root@slitaz:/home/tux# calibre
WARNING: Failed to set default libc locale, using en_US.UTF-8
DBusExport: Failed to connect to DBUS session bus, with error: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
WARNING: Failed to set default libc locale, using en_US.UTF-8
root@slitaz:/home/tux#
\==============================================================================/[/c]
Warning, but Calibre works, and I can open its default book...
Offline
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]