eNMS-automation / eNMS

An enterprise-grade vendor-agnostic network automation platform.
https://www.enms.io/
GNU General Public License v3.0
810 stars 160 forks source link

'AssociationProxyExtensionType' is not defined #403

Closed SaneiSaya closed 6 months ago

SaneiSaya commented 6 months ago

A new install of ver 4.7 is failing with the following error:

enms | File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/mapper.py", line 3497, in configure_mappers enms | _configure_registries(_all_registries(), cascade=True) enms | File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/mapper.py", line 3527, in _configure_registries enms | _do_configure_registries(registries, cascade) enms | File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/mapper.py", line 3568, in _do_configure_registries enms | mapper.dispatch.mapperconfigured(mapper, mapper.class) enms | File "/usr/local/lib/python3.9/site-packages/sqlalchemy/event/attr.py", line 346, in call enms | fn(*args, *kw) enms | File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/events.py", line 760, in wrap enms | fn(arg, **kw) enms | File "/eNMS/eNMS/database.py", line 209, in model_inspection enms | association_proxy = AssociationProxyExtensionType.association_proxy enms | NameError: name 'AssociationProxyExtensionType' is not defined enms exited with code 1

Does anyone have a requirements.txt with versions that are working with 4.7?

afourmy commented 6 months ago

AssociationProxyExtensionType is defined here: https://github.com/eNMS-automation/eNMS/blob/public/eNMS/database.py#L28

In my environment, it works fine with the latest version of SQLAlchemy (2.0.25).

SaneiSaya commented 6 months ago

I added that version to my local requirements.txt and it works now. I built a docker image for this version and when it came up it has the version as 4.6. Let me know if you're interested and I'll post it for testing.