eliemichel / LilySurfaceScraper

Import shaders end environments in Blender from a single URL
Other
597 stars 58 forks source link

cannot import name 'etree' from 'lxml' #178

Open icaroc opened 3 years ago

icaroc commented 3 years ago

I'm getting this error, no matter the version. is something missing in my system?

ImportError: cannot import name 'etree' from 'lxml' (C:\Users\Icaro\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScrapper-master\blender\LilySurfaceScrapper\site-packages\lxml\__init__.py)

eliemichel commented 3 years ago

In this order:

Try using the release zip rather than the source code when installing the add-on.

If not working, try installing vc_redist.x64.exe from https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0

If it still does not work, install lxml manually by running in admin mode:

"C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\bin\python.exe" -m pip install lxml -t "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules"

And tell me which of these steps fixed the issue!

pro-nav commented 3 years ago

@eliemichel This maybe is an issue due to the blender being installed from the windows store and the app folder cannot be accessed directly. Tried running blender as admin but it won't work. The only workaround I think is setting read and write permissions for the WindowsApps folder and manually installing lxml as said above but I have not tested this. Instead, it is easier to just install blender normally and add the addon from the .zip.

yuki-koyama commented 2 years ago

[Post edited] I'm so sorry, never mind my original post. It seemed I was wrong.

Related issue: https://github.com/eliemichel/LilySurfaceScraper/issues/191

eliemichel commented 2 years ago

@pro-nav I did not try with Blender installed from the store indeed, you'd have to edit the command line to match whereever Blender is installed. Also, I made a mistake above, I typed -r instead of -t, it should be:

"C:\Program Files\Blender Foundation\Blender 3.1\3.1\python\bin\python.exe" -m pip install lxml -t "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\modules"