Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 02:07 PM   #1
abdulbasitsaeed
Junior Member
abdulbasitsaeed began at the beginning.
 
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
This gives me the error:

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.
After creating a virtual environment and running
Code:
pip install unrardll
I get the error:

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
I would appreciate if someone could shed some light as to what am I doing wrong and how can I correctly install unrardll.

Many thanks!
abdulbasitsaeed is offline   Reply With Quote
Old Today, 12:41 AM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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.
DNSB is offline   Reply With Quote
Advert
Old Today, 02:08 AM   #3
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: 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.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 03:36 PM.


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