Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] pip not installed so docker image incomplete #329

Closed
1 task done
banksonian opened this issue Nov 25, 2024 · 6 comments
Closed
1 task done

[BUG] pip not installed so docker image incomplete #329

banksonian opened this issue Nov 25, 2024 · 6 comments
Labels

Comments

@banksonian
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

logs show a persistent error looking for the Flask package and web site is inaccessible (not running)

Instance fixed by:
docker exec -it calibre-web /bin/bash

apt install python3-pip
rerunning the dockerfile's RUN commands

Expected Behavior

web site is acccessible

Steps To Reproduce

fresh docker compose

Environment

pulled using docker compose

CPU architecture

x86-64

Docker creation

image pulled using docker compose

Container logs

...
calibre-web  | ModuleNotFoundError: No module named 'flask'
calibre-web  | Traceback (most recent call last):
calibre-web  |   File "/app/calibre-web/cps.py", line 28, in <module>
calibre-web  |     from cps.main import main
calibre-web  |   File "/app/calibre-web/cps/__init__.py", line 28, in <module>
calibre-web  |     from flask import Flask
calibre-web  | ModuleNotFoundError: No module named 'flask'
calibre-web  | Traceback (most recent call last):
calibre-web  |   File "/app/calibre-web/cps.py", line 28, in <module>
calibre-web  |     from cps.main import main
calibre-web  |   File "/app/calibre-web/cps/__init__.py", line 28, in <module>
calibre-web  |     from flask import Flask
calibre-web  | ModuleNotFoundError: No module named 'flask'
calibre-web  | Traceback (most recent call last):
calibre-web  |   File "/app/calibre-web/cps.py", line 28, in <module>
calibre-web  |     from cps.main import main
calibre-web  |   File "/app/calibre-web/cps/__init__.py", line 28, in <module>
calibre-web  |     from flask import Flask
...
@banksonian banksonian changed the title [BUG] pip not installed os docker image incomplete [BUG] pip not installed so docker image incomplete Nov 25, 2024
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@LinuxServer-CI LinuxServer-CI moved this from Issues to Insufficient Info in Issue & PR Tracker Nov 25, 2024
Copy link

A human has marked this issue as invalid, this likely happened because the issue template was not used in the creation of the issue.

@radcki
Copy link

radcki commented Dec 15, 2024

I had same issue. It can be fixed simply by changing "python3" to "/lsiopy/bin/python3" here:

cd /app/calibre-web s6-setuidgid abc python3 /app/calibre-web/cps.py

@aptalca
Copy link
Member

aptalca commented Dec 15, 2024

That's not a proper solution. You need to fix the env vars you're setting.

https://info.linuxserver.io/issues/2023-05-22-portainer/

@aptalca aptalca closed this as completed Dec 15, 2024
@LinuxServer-CI LinuxServer-CI moved this from Insufficient Info to Done in Issue & PR Tracker Dec 15, 2024
@radcki
Copy link

radcki commented Dec 15, 2024

Right, as reference for others - when compared to fresh deployment I was missing "/lsiopy/bin" in PATH variable.

@aptalca
Copy link
Member

aptalca commented Dec 15, 2024

The real solution is that you should not be setting the PATH variable at all. It's meant to be an internal var that is set in the image, not externally in compose or docker run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

3 participants