eliemichel / LilySurfaceScraper

Import shaders end environments in Blender from a single URL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Activating oil M1 Mac fails with error

asexauer opened this issue · comments

error message

Activating the plugin on an M1 Apple Silicon Mac with Blender 2.93 fails. The image shows the last part of the error message. It seams to have something to do with lxml and using the wrong Darwin architecture. Any ideas how to fix that?

You can try to manually install lxml using for instance from Blender's Python console:

import sys
import subprocess
subprocess.check_call([sys.executable, "-m", "pip", "install", "lxml"])

then restart Blender. If it still doesn't work remove /Users/andreas/Library/Application Support/Blender/2.93/scripts/addons/LilySurfaceScraper/site-packages/lxml to make sure it no longer tries to load that version.

Sorry this returned an error for the subprocess in the console of blender. But I found a different solution.
I have home-brew installed. So I installed lxml inside home-brew for the python version used by blender with:
python3.9 -m pip install lxml
than I identified the location of the successful compiled lxml-version with:
python3.9 -m pip show lxml
which leads to
Location: /opt/homebrew/lib/python3.9/site-packages
there I find the directory lxml and copied the files over to the add-on in
/Users/andreas/Library/Application Support/Blender/2.93/scripts/addons/LilySurfaceScraper/site-packages/lxml
first switch to the directory of lxml and the copy to the add-on
cd /opt/homebrew/lib/python3.9/site-packages/lxml
with
cp -r * "/Users/andreas/Library/Application Support/Blender/2.93/scripts/addons/LilySurfaceScraper/site-packages/lxml"
after this I could successfully activate the plugin inside blender.
Copying must be done after installation of the plugin, before activation.

Maybe this helps other users.

Perfect, could you share me your lxml directory so I can include it in the addon for everybody? :)

Sure, I attach the files Thank you for your work.
Files from /opt/homebrew/lib/python3.9/site-packages/lxml lxml-homebrew-directory.zip
merged Files from /Users/andreas/Library/Application Support/Blender/2.93/scripts/addons/LilySurfaceScraper/site-packages/lxml LilySurfacePluignLxmlDirectory.zip

I had the same issue with apple m1 chip and blender 2.93.5 and latest release of addon , so issue is still there but above solution worked pretty well. I just wanted to thank you :)

If somebody else has this issue could you try this version? https://github.com/eliemichel/LilySurfaceScraper/releases/tag/v1.7.5-rc1