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

Cannot install Python packages due to read-only file system #188

Open
yar2001 opened this issue Sep 19, 2024 · 1 comment
Open

Cannot install Python packages due to read-only file system #188

yar2001 opened this issue Sep 19, 2024 · 1 comment

Comments

@yar2001
Copy link

yar2001 commented Sep 19, 2024

Hi, I'm using an add-on that requires the pillow package. However, when I try to install the package, it throws:

ERROR: Could not install packages due to an OSError: [Errno 30] Read-only file system: '/app/blender/4.2/python/lib/python3.11/site-packages/pillow.libs'

Here is the python script I used to install the package:

import pip
pip.main(['install','pillow'])

It seems that the flatpak sandboxed environment is the cause of the problem. Is it possible to solve the problem? Thanks!

@yar2001 yar2001 changed the title How to install Python packages? Cannot install Python packages due to read-only file system Sep 19, 2024
@kevinsmia1939
Copy link
Collaborator

Not sure how to install Python package from the python console inside Blender. But I have use something like,

flatpak --command=bash run org.blender.Blender
python3 -mpip install pillow

However, the current build of Blender flatpak does not have pip install. We could do that by changing the manifest from,

"runtime": "org.freedesktop.Platform",
to
"runtime": "org.freedesktop.Sdk",
Other maintainers should let us know what they think about that.

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

2 participants