Bug 506026

Summary: No pip packages available in flatpak version
Product: [Applications] LabPlot2 Reporter: Henri Michael <henri.michael>
Component: generalAssignee: Stefan Gerlach <stefan.gerlach>
Status: CONFIRMED ---    
Severity: normal CC: stefan.gerlach
Priority: NOR    
Version First Reported In: 2.12.0   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.