kevancress / MeasureIt_ARCH

MeasureIt_ARCH is an addon for Blender, that adds tools to create design documentation and technical drawings that can be previewed within Blender's 3D viewport, and exported as images, vector graphics or .dxf files. Read the Doc's here:
https://kevancress.github.io/MeasureIt_ARCH/
Other
255 stars 36 forks source link

typing_extensions dependency version conflict with other addons #280

Open Andrej730 opened 1 month ago

Andrej730 commented 1 month ago

Hi, got feedback for other addon (BlenderBIM, https://github.com/IfcOpenShell/IfcOpenShell/issues/4691) that it's failed to load with an error message:

  File "C:\Users\Sahru\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blenderbim\libs\site\packages\xsdata\formats\dataclass\typing.py", line 18, in <module>
    from typing_extensions import ForwardRef
ImportError: cannot import name 'ForwardRef' from 'typing_extensions' (C:\Users\Sahru\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\MeasureIt_ARCH-development\libs\typing_extensions.py)

MeasureIt_ARCH comes with older typing_extensions version (2 years old) that didn't had ForwardRef yet.

As a workaround users can: 1) Disable both MeasureIt_ARCH and another addon that's breaking. 2) Restart Blender. 3) Enable breaking addon first, so it will load newer version of dependency. 4) Enable MeasureIt_ARCH.

Not sure if there's any need to actually update typing_extensions in the MeasureIt_ARCH if it works fine without update, just wanted to give a heads up for anyone meeting a similar issue and noticing MeasureIt_ARCH at the end of the traceback.