Cannot spawn Python in Flatpak, but works in Gnome Builder

When I use Gnome Builder to run my app, it can spawn a Python process from GJS using Gio.SubprocessLauncher, either directly, or by executing a script with Python shebang. However this does not seem to work with a normal Flatpak install, where it seems Python cannot be found in path.

Isn’t Python 3 included in the GNOME runtime? What should I do to fix this?

It includes python, under /usr/bin/python3.

Ah, thanks. python3 works. I guess I’d assumed that python would be linked to python3 since python2 isn’t available. I wonder why python works in Gnome Builder, though.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.