View Single Post
Old 07-19-2023, 06:50 PM   #1
Albretch Mueller
Junior Member
Albretch Mueller began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2023
Device: none
On a Linux base with python3 I can't install/setup calibre-6.23.0 ...

$ date; pwd; ls -l; file calibre-6.23.0.tar.xz; sha256sum --binary calibre-6.23.0.tar.xz
Wed 19 Jul 2023 02:58:42 PM UTC
/media/user/Linux/calibre
total 41880
-rwxrwxrwx 1 user user 42881840 Jul 19 13:47 calibre-6.23.0.tar.xz
calibre-6.23.0.tar.xz: XZ compressed data
5d7e75d6452d2f89694aca7d253b87ac625de0ce82840e8fc1 8e5e9e7db37fc2 *calibre-6.23.0.tar.xz

$ uname --all
Linux debian 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux

$ python3 --version
Python 3.9.2

$ export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig

$ sudo python3 ./setup.py install
Dropping privileges to those of user: 1000

*
* Running build
*

Package hunspell was not found in the pkg-config search path.
Perhaps you should add the directory containing `hunspell.pc'
to the PKG_CONFIG_PATH environment variable
No package 'hunspell' found
...
Package uchardet was not found in the pkg-config search path.
Perhaps you should add the directory containing `uchardet.pc'
to the PKG_CONFIG_PATH environment variable
No package 'uchardet' found
...
Traceback (most recent call last):
File "/media/user/Linux/calibre/calibre-6.23.0/./setup.py", line 119, in <module>
sys.exit(main())
File "/media/user/Linux/calibre/calibre-6.23.0/./setup.py", line 104, in main
command.run_all(opts)
File "/media/user/Linux/calibre/calibre-6.23.0/setup/__init__.py", line 239, in run_all
self.run_cmd(self, opts)
File "/media/user/Linux/calibre/calibre-6.23.0/setup/__init__.py", line 229, in run_cmd
self.run_cmd(scmd, opts)
File "/media/user/Linux/calibre/calibre-6.23.0/setup/__init__.py", line 233, in run_cmd
cmd.run(opts)
File "/media/user/Linux/calibre/calibre-6.23.0/setup/build.py", line 445, in run
raise Exception(ext.error)
Exception: ['PoDoFo not found on your system. Various PDF related', ' functionality will not work. Use the PODOFO_INC_DIR and', ' PODOFO_LIB_DIR environment variables.']
$

I have no idea why this is happening and I couldn't find a thorough step-by-step installation guideline. Perhaps the python setup can't 'run_...' these procedures because the user privileges were dropped.

How can I troubleshoot this problem?

I do corpora research and may have to heavily use calibre.

lbrtchx
Albretch Mueller is offline   Reply With Quote