Calibre-web update error #104

Closed
opened 2026-02-04 16:38:38 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @Aloe-recite on GitHub (Nov 25, 2024).

Originally assigned to: @havardthom on GitHub.

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

Hi all,
Running the "update" command on Calibre-web LXC gives this error with option 7-8-9 selected:

 /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.11/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.

[ERROR] in line 146: exit code 0: while executing command pip install --upgrade calibreweb[$cps_options]

If no option is selected:
|environment: line 143: options: unbound variable

After that, the container is broken and I had to restore from a backup.

IF updating from the web GUI, it gets stuck "stopping server" and I have to stop the LXC and again restore the previous backup.
Screenshot 2024-11-25 alle 17 57 56

I'm running the previous to last version of Calibre on standard settings and with a mount point added on the NFS share that holds my library.
Please advise :)
Thanks!

What settings are you currently utilizing?

  • Default Settings
  • Advanced Settings

Which Linux distribution are you employing?

Debian 12

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

No response

Please provide detailed steps to reproduce the issue.

Run "update" command on a calibre-web LXC with version previous to last installed.
Alternatively, perform the update from within the web GUI.

Originally created by @Aloe-recite on GitHub (Nov 25, 2024). Originally assigned to: @havardthom on GitHub. ### Please verify that you have read and understood the guidelines. yes ### A clear and concise description of the issue. Hi all, Running the "update" command on Calibre-web LXC gives this error with option 7-8-9 selected: ``` /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.11/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. [ERROR] in line 146: exit code 0: while executing command pip install --upgrade calibreweb[$cps_options] ``` If no option is selected: ` |environment: line 143: options: unbound variable` After that, the container is broken and I had to restore from a backup. IF updating from the web GUI, it gets stuck "stopping server" and I have to stop the LXC and again restore the previous backup. <img width="478" alt="Screenshot 2024-11-25 alle 17 57 56" src="https://github.com/user-attachments/assets/b484a81f-8a3d-45e2-9280-5ed99aebde0c"> I'm running the previous to last version of Calibre on standard settings and with a mount point added on the NFS share that holds my library. Please advise :) Thanks! ### What settings are you currently utilizing? - [X] Default Settings - [ ] Advanced Settings ### Which Linux distribution are you employing? Debian 12 ### If relevant, including screenshots or a code block can be helpful in clarifying the issue. _No response_ ### Please provide detailed steps to reproduce the issue. Run "update" command on a calibre-web LXC with version previous to last installed. Alternatively, perform the update from within the web GUI.
OVERLORD added the bug label 2026-02-04 16:38:38 +03:00
Author
Owner

@havardthom commented on GitHub (Nov 25, 2024):

https://github.com/tteck/Proxmox/discussions/3300#discussioncomment-9923938

@havardthom commented on GitHub (Nov 25, 2024): https://github.com/tteck/Proxmox/discussions/3300#discussioncomment-9923938
Author
Owner

@Aloe-recite commented on GitHub (Nov 25, 2024):

@havardthom Thanks Havard, so I just need to run rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED and update again?
I suppose that this is one of the questions repeated over and over. Have you thought about implementing a FAQ or somehow explain these steps in the changelog or website page or whatever? I feel like I am wasting your time, but on the other hand I wouldn't have been able to find that comment on my own since the topic does not seem related at first view :(

@Aloe-recite commented on GitHub (Nov 25, 2024): @havardthom Thanks Havard, so I just need to run `rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED` and update again? I suppose that this is one of the questions repeated over and over. Have you thought about implementing a FAQ or somehow explain these steps in the changelog or website page or whatever? I feel like I am wasting your time, but on the other hand I wouldn't have been able to find that comment on my own since the topic does not seem related at first view :(
Author
Owner

@MickLesk commented on GitHub (Nov 25, 2024):

Leave the issue open, I'll create a guide in discussion tomorrow.

@MickLesk commented on GitHub (Nov 25, 2024): Leave the issue open, I'll create a guide in discussion tomorrow.
Author
Owner

@Aloe-recite commented on GitHub (Nov 25, 2024):

ok I ran rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED on the console, ran update without any additional option for good measure, but still got this error and a non-working container:

 |environment: line 143: options: unbound variable
@Aloe-recite commented on GitHub (Nov 25, 2024): ok I ran `rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED` on the console, ran `update` without any additional option for good measure, but still got this error and a non-working container: ``` |environment: line 143: options: unbound variable ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#104