|
|
#1 |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Dec 2025
Device: Not sure yet
|
Trouble installing unrardll
Hi everyone!
I'm new to the calibre world, and have installed calibre 8.16.2 headless on Ubuntu Server. I am trying to install unrardll as indicated here: Code:
pip install unrardll Code:
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Code:
pip install unrardll Code:
Collecting unrardll
Using cached unrardll-0.1.7.tar.gz (10.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: unrardll
Building wheel for unrardll (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for unrardll (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
/tmp/pip-build-env-60kfojh3/overlay/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: BSD License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-312/unrardll
copying src/unrardll/__init__.py -> build/lib.linux-x86_64-cpython-312/unrardll
running build_ext
building 'unrardll.unrar' extension
creating build/temp.linux-x86_64-cpython-312/src/unrardll
x86_64-linux-gnu-g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -DSILENT=1 -DRARDLL=1 -DUNRAR=1 -D_UNIX=1 -I/var/WD_200GB/calibre.raita.xyz/Calibre-Web/calibre-web/calibre-web-env/include -I/usr/include/python3.12 -c src/unrardll/wrapper.cpp -o build/temp.linux-x86_64-cpython-312/src/unrardll/wrapper.o
src/unrardll/wrapper.cpp:19:10: fatal error: unrar/dll.hpp: No such file or directory
19 | #include <unrar/dll.hpp>
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for unrardll
Failed to build unrardll
ERROR: Could not build wheels for unrardll, which is required to install pyproject.toml-based projects
Many thanks! |
|
|
|
|
|
#2 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49,014
Karma: 174631584
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
If you are feeling nasty, you can use the --break-system-packages option for pip.
I'd try sudo pip install libunrar-dev If that doesn't work, pip install libunrar-dev --break-system-packages Edit: I was looking at Launchpad and there are quite a few options so you may have to do some more digging on your own. Last edited by DNSB; Today at 12:48 AM. |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,712
Karma: 28549304
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Why do you need to install unrardll? calibre ships with a private copy already.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trouble Installing Calibre 7.10 | SeekingFreedom | Windows Devices | 0 | 05-10-2024 11:56 PM |
| Trouble installing KOreader to kindle | Respektor | Kindle Developer's Corner | 2 | 03-18-2024 08:35 AM |
| Having trouble installing new release 7 | Chocky | Calibre | 6 | 11-22-2023 05:57 AM |
| Trouble installing Cabibre | stirdawg24 | Devices | 4 | 11-19-2011 05:38 AM |
| trouble installing update | danimal | Calibre | 1 | 05-03-2010 06:01 PM |