Install PIL Button Doesn't Work #103
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
kkbp-dev/KKBP_Importer#103
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Install PIL button does not actually do anything because of changes to Blender, the code that executes when pressing the button tries to run the command with --user, which the console will tell you is no longer supported.
I managed to install PIL myself by running this script in Blender though:
import pip
pip.main(['install', 'pillow', ''])
There's also another potential problem that's entirely Blender's fault not because of KKBP though, where the version of pip Blender uses is outdated, so I had to force update the one built into Blender (it unfortunately does not use the version of pip installed in your system's command line).
Hi, the plugin uses the built in wheel method of installing pillow now. If you update to the latest version (9.5.0) it should work
Basically it runs these commands to download the wheel for the specific version of python blender is running:
from pip import _internal
_internal.main(['download', 'pillow', '--dest', kkbp_wheels_folder])
Then it fills in the wheels section of the blender_manifest.toml file, disables kkbp, and re-enables it. The next time blender opens, it finds the pillow wheel and installs it automatically
I've tested this method on blender 4.5 to 5.2 and it's been working nicely