Bug 506026 - No pip packages available in flatpak version
Summary: No pip packages available in flatpak version
Status: CONFIRMED
Alias: None
Product: LabPlot2
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.12.0
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Gerlach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-23 08:32 UTC by Henri Michael
Modified: 2025-07-07 16:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Michael 2025-06-23 08:32:01 UTC
When installing Labplot2 with flatpak the pip packages like numpy are not accessible.
Even when installing python3.12 and numpy on the host.
This comes down to the python version in the Flatpack not using the site-packages folder from the host. 

STEPS TO REPRODUCE
1. Install With Flatpack
2. Install python3.12
3. install numpy with pip
4. create a notepad and run `import numpy`

OBSERVED RESULT
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'

EXPECTED RESULT
the import of numpy without a error

SOFTWARE/OS VERSIONS
Debian 12 wayland
Gnome 43.9
Flatpak 1.14.10
LabPlot  org.kde.labplot  2.12.0  stable

ADDITIONAL INFORMATION
i got it to work by adding this Variable via Flatseal:
PYTHONPATH=/home/this.user/.local/lib/python3.12/site-packages
Comment 1 Stefan Gerlach 2025-07-07 16:31:35 UTC
This is by design of Flatpak. To access local Python packages manual actions are needed.