igo95862 / bubblejail

Bubblewrap based sandboxing for desktop applications
260 stars 17 forks source link

ModuleNotFoundError: No module named 'jinja2' #146

Open 12D687 opened 9 hours ago

12D687 commented 9 hours ago

Output of bubblejail --version

0.9.3

Your distro name and version

Debian

Description

Command meson compile fails, even though the jinja2 has already been installed:

The Meson build system Version: 1.6.0 Source dir: /home/user/Downloads/bubblejail-0.9.3 Build dir: /home/user/Downloads/bubblejail-0.9.3/build Build type: native build Project name: bubblejail Project version: 0.9.3 Host machine cpu family: x86_64 Host machine cpu: x86_64 Program python3 found: YES (/usr/bin/python3) Message: Using non site-packages directory /usr/local/lib/bubblejail/python-packages Program scdoc found: NO Program man_generator.py found: YES (/home/user/.local/pipx/venvs/meson/bin/python -B /home/user/Downloads/bubblejail-0.9.3/docs/man_generator.py) Program jinja2_run.py found: YES (/home/user/.local/pipx/venvs/meson/bin/python -B /home/user/Downloads/bubblejail-0.9.3/tools/jinja2_run.py) Build targets in project: 5

Found ninja-1.11.1 at /usr/bin/ninja

INFO: autodetecting backend as ninja INFO: calculating backend command to run: /usr/bin/ninja [1/3] Generating tools/bubblejailgui...d (wrapped by meson to capture output) FAILED: tools/bubblejail-config /home/user/.local/bin/meson --internal exe --capture tools/bubblejail-config -- /home/user/.local/pipx/venvs/meson/bin/python -B /home/user/Downloads/bubblejail-0.9.3/tools/jinja2_run.py --template-dir /home/user/Downloads/bubblejail-0.9.3/templates --define SHARE_PREFIX /usr/local/share --define LIB_PREFIX /usr/local/lib/x86_64-linux-gnu --define BUBBLEJAIL_VERSION 0.9.3 --define SYSCONF_DIR /etc --define PYTHON_SHEBANG_SHORT_OPTS I --define PYTHON_PACKAGES_DIR /usr/local/lib/bubblejail/python-packages bubblejail_launch_gui_qt.py.jinja --- stderr --- Traceback (most recent call last): File "/home/user/Downloads/bubblejail-0.9.3/tools/jinja2_run.py", line 10, in from jinja2 import Environment, FileSystemLoader, StrictUndefined ModuleNotFoundError: No module named 'jinja2'

[2/3] Generating tools/bubblejail_help...d (wrapped by meson to capture output) FAILED: tools/bubblejail-helper /home/user/.local/bin/meson --internal exe --capture tools/bubblejail-helper -- /home/user/.local/pipx/venvs/meson/bin/python -B /home/user/Downloads/bubblejail-0.9.3/tools/jinja2_run.py --template-dir /home/user/Downloads/bubblejail-0.9.3/templates --define SHARE_PREFIX /usr/local/share --define LIB_PREFIX /usr/local/lib/x86_64-linux-gnu --define BUBBLEJAIL_VERSION 0.9.3 --define SYSCONF_DIR /etc --define PYTHON_SHEBANG_SHORT_OPTS I --define PYTHON_PACKAGES_DIR /usr/local/lib/bubblejail/python-packages bubblejail_launch_helper.py.jinja --- stderr --- Traceback (most recent call last): File "/home/user/Downloads/bubblejail-0.9.3/tools/jinja2_run.py", line 10, in from jinja2 import Environment, FileSystemLoader, StrictUndefined ModuleNotFoundError: No module named 'jinja2'

[3/3] Generating tools/bubblejailcli...d (wrapped by meson to capture output) FAILED: tools/bubblejail /home/user/.local/bin/meson --internal exe --capture tools/bubblejail -- /home/user/.local/pipx/venvs/meson/bin/python -B /home/user/Downloads/bubblejail-0.9.3/tools/jinja2_run.py --template-dir /home/user/Downloads/bubblejail-0.9.3/templates --define SHARE_PREFIX /usr/local/share --define LIB_PREFIX /usr/local/lib/x86_64-linux-gnu --define BUBBLEJAIL_VERSION 0.9.3 --define SYSCONF_DIR /etc --define PYTHON_SHEBANG_SHORT_OPTS I --define PYTHON_PACKAGES_DIR /usr/local/lib/bubblejail/python-packages bubblejail_launch_cli.py.jinja --- stderr --- Traceback (most recent call last): File "/home/user/Downloads/bubblejail-0.9.3/tools/jinja2_run.py", line 10, in from jinja2 import Environment, FileSystemLoader, StrictUndefined ModuleNotFoundError: No module named 'jinja2'

ninja: build stopped: subcommand failed.

igo95862 commented 8 hours ago

Hello @12D687

Is jinja installed in your pipx venv or your system site-packages?

12D687 commented 8 hours ago

Neither. It is installed locally /home/user/.local/lib/python3.11/site-packages

igo95862 commented 6 hours ago

You probably need to install it in to the same venv as your meson.