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

PermissionError: Operation not permitted #65

Open
ours-code opened this issue Dec 12, 2024 · 1 comment
Open

PermissionError: Operation not permitted #65

ours-code opened this issue Dec 12, 2024 · 1 comment

Comments

@ours-code
Copy link

ours-code commented Dec 12, 2024

Hello,
Before all thanks for the work you gave in this.
When running the container, Python throw back an error, see the logs:
image
And I can confirm from the shell:
image

From what I could find this comes from a broken Python version for Raspbian
see here: https://stackoverflow.com/questions/70195968/dockerfile-raspberry-pi-python-pip-install-permissionerror-errno-1-operation
and here: https://bugs.python.org/issue45960

Although I am not sure it's Raspbian you use since the package manager is apk ?
image

However when looking at your image I cannot get what Python you use and that layer ADD is a bit obscure to me ( I am a docker noob ):
image

Can someone provide pointers on how to identify further that Python version and how to modify that first layer please ?

Many thanks,

@ours-code
Copy link
Author

ours-code commented Dec 12, 2024

So the first stupid answer to find what is that ADD layer is "go look at the Dockerfile" (in Portainer they show the ADD rather than FROM) and from there we see it's alpine:3.16

For the Python exception, I tried running the container on Bookworm (Desktop amd64) and it works. Indeed I was previously running the container on a raspberry, I thought Docker was abstracting it so it would use whatever OS image is pulled but Im am lacking Docker knowledge.

Looking for modifying the image to be Raspberry friendly

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

No branches or pull requests

1 participant