-
Notifications
You must be signed in to change notification settings - Fork 43
Description
Bug Description
After downloading the latest version of "mitsuba-blender.zip" and attempting to install it, an error pops up:
Cannot activate mitsuba-blender add-on. Python pip module cannot be initialized.
And the add-on is not enabled.
To Reproduce
Steps to reproduce the behavior:
- Download the latest copy of
mitsuba-blender.zipfrom the releases tab - Open Blender (I'm using 4.3.2, but this error should occur on any recent version of Blender)
- Open Blender's Preferences (CTRL+[,] or Edit > Preferences)
- Click Add-ons > Add-ons Settings drop-down > Install from Disk...
- Navigate and select
mitsuba-blender.zip - Attempt to enable "Mitsuba-Blender" add-on
Expected behavior
The Mitsuba Blender add-on to be enabled without any errors.
Resources
If applicable, add screenshots or other files (Blender projects, Mitsuba scenes) to help explain or demonstrate your problem.
Environment (please complete the following information):
uname -aoutput:Linux jacobarch 6.12.8-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 02 Jan 2025 22:52:21 +0000 x86_64 GNU/Linux- Blender Version: 4.3.2
- Add-on Version: latest
Additional context
Unlike other Linux distros (e.g. Debian), Arch Linux follows PEP 668. This means you cannot simply install packages using pip, the regular way to do it is by first initializing a venv with:
python -m venv [ENV_DIR]
and then using pip from the virtual environment:
[ENV_DIR]/bin/python -m pip install [Package Name]To understand why this is, see PEP 668, or additionally the thread "What's the story on pip's externally-managed-environment error?" on the Arch Linux forums.