Error: cannot import name 'Sequence' from 'bpy.types' (unknown location) with Blender 4.3+
When installing the addon (latest 2.3) in blender 4.3+ I get the following error output:
Traceback (most recent call last):
File "/mnt/Software/_Blender/blender-4.4.3-linux-x64/4.4/scripts/modules/addon_utils.py", line 432, in enable
mod = importlib.import_module(module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/Software/_Blender/blender-4.4.3-linux-x64/4.4/python/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/thales/.config/blender/4.4/scripts/addons/animation_nodes/__init__.py", line 166, in <module>
auto_load.init()
File "/home/thales/.config/blender/4.4/scripts/addons/animation_nodes/auto_load.py", line 23, in init
modules = get_all_submodules(Path(__file__).parent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thales/.config/blender/4.4/scripts/addons/animation_nodes/auto_load.py", line 51, in get_all_submodules
return list(iter_submodules(directory, directory.name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thales/.config/blender/4.4/scripts/addons/animation_nodes/auto_load.py", line 55, in iter_submodules
yield importlib.import_module("." + name, package_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/Software/_Blender/blender-4.4.3-linux-x64/4.4/python/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/thales/.config/blender/4.4/scripts/addons/animation_nodes/sockets/sequence.py", line 3, in <module>
from bpy.types import Sequence
ImportError: cannot import name 'Sequence' from 'bpy.types' (unknown location)
Error: cannot import name 'Sequence' from 'bpy.types' (unknown location)
Traceback (most recent call last):
File "/mnt/Software/_Blender/blender-4.4.3-linux-x64/4.4/scripts/addons_core/bl_pkg/bl_extension_ops.py", line 1499, in execute
cmd_batch = self.exec_command_iter(is_modal)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/Software/_Blender/blender-4.4.3-linux-x64/4.4/scripts/addons_core/bl_pkg/bl_extension_ops.py", line 2589, in exec_command_iter
self.exec_legacy(source_filepath)
File "/mnt/Software/_Blender/blender-4.4.3-linux-x64/4.4/scripts/addons_core/bl_pkg/bl_extension_ops.py", line 2722, in exec_legacy
bpy.types.PREFERENCES_OT_addon_install.execute(self, bpy.context)
File "/mnt/Software/_Blender/blender-4.4.3-linux-x64/4.4/scripts/startup/bl_operators/userpref.py", line 813, in execute
bpy.ops.preferences.addon_enable(module=mod.__name__)
File "/mnt/Software/_Blender/blender-4.4.3-linux-x64/4.4/scripts/modules/bpy/ops.py", line 109, in __call__
ret = _op_call(self.idname_py(), kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: cannot import name 'Sequence' from 'bpy.types' (unknown location)
We do not support those combination of versions. We only supported latest AN on latest Blender version. Or v2.3 for Blender 4.2 LTS.
We do not support those combination of versions. We only supported latest AN on latest Blender version. Or v2.3 for Blender 4.2 LTS.
So AN 2.3 will work on blender 4.5?
EDIT: Just tried it and getting the same exact error.
@sabudum No. AN 4.4 (Called "Latest" in the website) should work with latest Blender version.
@sabudum No. AN 4.4 (Called "Latest" in the website) should work with latest Blender version.
Oh, it's only available in the website, not in github, that doesn't really help, there's not even a version written on it, which is 2.4, or to what Blender version it applies.
Anyways, thanks a lot for the help, really appreciate it.