eliemichel / LilySurfaceScraper

Import shaders end environments in Blender from a single URL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot import name etree from lxml

AnityEx opened this issue · comments

i know this might just be an error ob blender itself or on my part, but its weird and im adding it here anyway just in case, but on a fresh install blender accepts the addon (by changing the name of the config of blender inside appdata/roaming/blender foundation/2.93 to something else) and with my own preferences it doesnt

aditionally i also changed the init py by addigng a hash to "import preferences" then erased it and saved and the it said "name module is not defined" so i just deleted and added back again the 1.7.1 version

  • Version of LilySurfaceScrapper: 1.7.1 rc1
  • Version of Blender: 2.93 beta
  • Operating System: Windows 10
 Traceback (most recent call last):
  File "E:\Program Files\Blender Foundation\blender-2.93beta\2.93\scripts\modules\addon_utils.py", line 351, in enable
    mod = __import__(module_name)
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\__init__.py", line 31, in <module>
    from . import frontend
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\frontend.py", line 9, in <module>
    from .CyclesLightData import CyclesLightData
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\CyclesLightData.py", line 9, in <module>
    from .LightData import LightData
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\LightData.py", line 7, in <module>
    from .ScrapersManager import ScrapersManager
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\ScrapersManager.py", line 26, in <module>
    from .Scrapers.AbstractScraper import AbstractScraper
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\Scrapers\AbstractScraper.py", line 29, in <module>
    from lxml import etree
ImportError: cannot import name 'etree' from 'lxml' (C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\modules\lxml\__init__.py)

image
also i managed to "activate" the addon by going back to 2.92 change the file name of the configurations from 2.93 to 2.92 activate it go back and change 2.92 to 2.93 again and it looks like it doesnt have a problem with accepting it, but theres no menu of lily surface on it

Mmh the 1.7.1 RC1 was supposed to fix this. :/ The lxml version packaged inside the add-on before was for the Python version used between 2.83 and 2.92, cause 2.93 switches to a new version.
Could you python -m pip install lxml manually (where "python" is the one inside Blender's installation) and share the lxml package it installs?

genuinely I dont know how to do that, sorry

having the same error on Ubuntu 20.04
When running suggested command above I get:

2.93/python/bin/python3.9 -m pip install lxml -r 2.93/scripts/modules/ /blender/2.93/python/bin/python3.9: No module named pip

how can I install pip for Blender if it's not already bundled? (pip IS installed for python3 on the main system, as is the lxml package)
Thanks!

You can run python -m ensurepip to install pip (dunno why they provide directly pip on windows and not on linux...) That'd help me a lot if you could get these lxml files for linux!

newest version

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules\addon_utils.py", line 351, in enable
    mod = __import__(module_name)
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\__init__.py", line 31, in <module>
    from . import frontend
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\frontend.py", line 9, in <module>
    from .CyclesLightData import CyclesLightData
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\CyclesLightData.py", line 9, in <module>
    from .LightData import LightData
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\LightData.py", line 7, in <module>
    from .ScrapersManager import ScrapersManager
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\ScrapersManager.py", line 26, in <module>
    from .Scrapers.AbstractScraper import AbstractScraper
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\Scrapers\AbstractScraper.py", line 29, in <module>
    from lxml import etree
ImportError: cannot import name 'etree' from 'lxml' (C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\modules\lxml\__init__.py)


sorry but no, only 2.92 works for me

this is after installin vc_redistx64

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules\addon_utils.py", line 351, in enable
    mod = __import__(module_name)
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\__init__.py", line 31, in <module>
    from . import frontend
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\frontend.py", line 9, in <module>
    from .CyclesLightData import CyclesLightData
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\CyclesLightData.py", line 9, in <module>
    from .LightData import LightData
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\LightData.py", line 7, in <module>
    from .ScrapersManager import ScrapersManager
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\ScrapersManager.py", line 26, in <module>
    from .Scrapers.AbstractScraper import AbstractScraper
  File "C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\LilySurfaceScraper\Scrapers\AbstractScraper.py", line 29, in <module>
    from lxml import etree
ImportError: cannot import name 'etree' from 'lxml' (C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\modules\lxml\__init__.py)


update: i deleted preferences for 2.93 and installed only with this addon

seems to work fine

maybe its another addon messing with this

Interesting, thanks for the feedback.

C:\Users\Alan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\modules\lxml_init_.py see this?

i just deleted the "modules" folder after trial and error on what addon could cause this, maybe an older version added this or some other addon