ImportError: dlopen - While activating plugin on M1 Mac
hadyashraf opened this issue · comments
Hello all,
I am not a programer by any means so please bear with me.
Im running Lily Surface Scraper 1.8 - Blender 3.1 on M1 Mac mini 8GB (macOS Monterey 12.3)
At first I was getting "ImportError: "etree" from "lxml" but I was able to download lxml library and copy it in the Blender folder. Which fixed that issue.
Now I am getting "ImportError: dlopen .... file path ... (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')
Im not sure how to copy the error log, I'm sure it would help.
Im not sure how to copy the error log, I'm sure it would help.
Go to Window > Toggle System Console, or run Blender from a terminal, then in the terminal that shows errors copy using right click > copy (Cmd+C may not work).
Also could you go in Blender's Python terminal and type this and report the output please:
import platform
platform.machine()
If you could as well send me the lxml
directory you've copied, thanks!
Okey indeed the binaries for M1 are wrong in 1.8.0 could you please share the content of the lxml directory you installed from pip?
Oh the person that told me they were M1 binaries got it wrong apparently, we'll wait for somebody else to share their binaries.
Modules Installed (LilySurfaceScraper) from '/Users/hadyashraf/Documents/Blender Addons Assets/LilySurfaceScraper-v1.8.0-rc1c.zip' into '/Users/hadyashraf/Library/Application Support/Blender/3.1/scripts/addons' Traceback (most recent call last): File "/Applications/Blender.app/Contents/Resources/3.1/scripts/modules/addon_utils.py", line 351, in enable mod = __import__(module_name) File "/Users/hadyashraf/Library/Application Support/Blender/3.1/scripts/addons/LilySurfaceScraper/__init__.py", line 31, in <module> from . import frontend File "/Users/hadyashraf/Library/Application Support/Blender/3.1/scripts/addons/LilySurfaceScraper/frontend.py", line 10, in <module> from .CyclesLightData import CyclesLightData File "/Users/hadyashraf/Library/Application Support/Blender/3.1/scripts/addons/LilySurfaceScraper/CyclesLightData.py", line 9, in <module> from .LightData import LightData File "/Users/hadyashraf/Library/Application Support/Blender/3.1/scripts/addons/LilySurfaceScraper/LightData.py", line 7, in <module> from .ScrapersManager import ScrapersManager File "/Users/hadyashraf/Library/Application Support/Blender/3.1/scripts/addons/LilySurfaceScraper/ScrapersManager.py", line 26, in <module> from .Scrapers.AbstractScraper import AbstractScraper File "/Users/hadyashraf/Library/Application Support/Blender/3.1/scripts/addons/LilySurfaceScraper/Scrapers/AbstractScraper.py", line 31, in <module> from lxml import etree ImportError: dlopen(/Applications/Blender.app/Contents/Resources/3.1/scripts/modules/lxml/etree.cpython-310-darwin.so, 0x0002): tried: '/Applications/Blender.app/Contents/Resources/3.1/scripts/modules/lxml/etree.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))
Traceback (most recent call last):
File "/Applications/Blender.app/Contents/Resources/3.1/scripts/modules/addon_utils.py", line 351, in enable
mod = __import__(module_name)
File "/Users/hadyashraf/Library/Application Support/Blender/3.1/scripts/addons/LilySurfaceScraper/__init__.py", line 31, in <module>
from . import frontend
File "/Users/hadyashraf/Library/Application Support/Blender/3.1/scripts/addons/LilySurfaceScraper/frontend.py", line 10, in <module>
from .CyclesLightData import CyclesLightData
File "/Users/hadyashraf/Library/Application Support/Blender/3.1/scripts/addons/LilySurfaceScraper/CyclesLightData.py", line 9, in <module>
from .LightData import LightData
File "/Users/hadyashraf/Library/Application Support/Blender/3.1/scripts/addons/LilySurfaceScraper/LightData.py", line 7, in <module>
from .ScrapersManager import ScrapersManager
File "/Users/hadyashraf/Library/Application Support/Blender/3.1/scripts/addons/LilySurfaceScraper/ScrapersManager.py", line 26, in <module>
from .Scrapers.AbstractScraper import AbstractScraper
File "/Users/hadyashraf/Library/Application Support/Blender/3.1/scripts/addons/LilySurfaceScraper/Scrapers/AbstractScraper.py", line 31, in <module>
from lxml import etree
ImportError: dlopen(/Applications/Blender.app/Contents/Resources/3.1/scripts/modules/lxml/etree.cpython-310-darwin.so, 0x0002): tried: '/Applications/Blender.app/Contents/Resources/3.1/scripts/modules/lxml/etree.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))
```'
![Screen Shot 2022-04-06 at 5 37 19 PM](https://user-images.githubusercontent.com/68152683/162013363-e362e597-466e-408f-b638-7a3875730f68.png)
Thanks @eliemichel
I was not sure how to share the lxml folder, so here's a screenshot of the folder with the directory at the bottom
Please let me know how I can help more.
Looking forward to using this lovely Addon
hello everyone, thanks for this amazing addons. I have the same problem. Any solution. Thank you !!