Breaking changes in SQLAlchemy 1.4
Hey,
I noticed, that SQLAlchemy 1.4 brings some breaking changes for the equilibrator-cache, which is why the dependency should be fixed to 1.3 until the calling code can be updated.
Here is the error message:
>>> import equilibrator_api
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/fredrik/.local/lib/python3.8/site-packages/equilibrator_api-0.4.0-py3.8.egg/equilibrator_api/_init_.py", line 48, in <module>
from equilibrator_api.component_contribution import ComponentContribution
File "/home/fredrik/.local/lib/python3.8/site-packages/equilibrator_api-0.4.0-py3.8.egg/equilibrator_api/component_contribution.py", line 33, in <module>
from component_contribution import (
File "/home/fredrik/.local/lib/python3.8/site-packages/component_contribution-0.4.1-py3.8.egg/component_contribution/_init_.py", line 37, in <module>
from .preprocessor import Preprocessor
File "/home/fredrik/.local/lib/python3.8/site-packages/component_contribution-0.4.1-py3.8.egg/component_contribution/preprocessor.py", line 31, in <module>
from equilibrator_cache import Compound, Reaction
File "/home/fredrik/.local/lib/python3.8/site-packages/equilibrator_cache-0.4.1-py3.8.egg/equilibrator_cache/_init_.py", line 40, in <module>
from .models import (
File "/home/fredrik/.local/lib/python3.8/site-packages/equilibrator_cache-0.4.1-py3.8.egg/equilibrator_cache/models/_init_.py", line 38, in <module>
from .compound_identifier import CompoundIdentifier
File "/home/fredrik/.local/lib/python3.8/site-packages/equilibrator_cache-0.4.1-py3.8.egg/equilibrator_cache/models/compound_identifier.py", line 41, in <module>
class CompoundIdentifier(TimeStampMixin, Base):
File "/home/fredrik/.local/lib/python3.8/site-packages/SQLAlchemy-1.4.0b3-py3.8-linux-x86_64.egg/sqlalchemy/orm/decl_api.py", line 60, in _init_
as_declarative(cls.registry, cls, cls.dict_)
File "/home/fredrik/.local/lib/python3.8/site-packages/SQLAlchemy-1.4.0b3-py3.8-linux-x86_64.egg/sqlalchemy/orm/decl_base.py", line 125, in _as_declarative
return MapperConfig.setup_mapping(registry, cls, dict, None, {})
File "/home/fredrik/.local/lib/python3.8/site-packages/SQLAlchemy-1.4.0b3-py3.8-linux-x86_64.egg/sqlalchemy/orm/decl_base.py", line 176, in setup_mapping
return cfg_cls(registry, cls_, dict_, table, mapper_kw)
File "/home/fredrik/.local/lib/python3.8/site-packages/SQLAlchemy-1.4.0b3-py3.8-linux-x86_64.egg/sqlalchemy/orm/decl_base.py", line 290, in _init_
super(ClassScanMapperConfig, self).init(registry, cls)
File "/home/fredrik/.local/lib/python3.8/site-packages/SQLAlchemy-1.4.0b3-py3.8-linux-x86_64.egg/sqlalchemy/orm/decl_base.py", line 189, in _init_
init_method=registry.constructor,
File "/home/fredrik/.local/lib/python3.8/site-packages/SQLAlchemy-1.4.0b3-py3.8-linux-x86_64.egg/sqlalchemy/util/langhelpers.py", line 1222, in _getattr_
return self._fallback_getattr(key)
File "/home/fredrik/.local/lib/python3.8/site-packages/SQLAlchemy-1.4.0b3-py3.8-linux-x86_64.egg/sqlalchemy/util/langhelpers.py", line 1196, in _fallback_getattr
raise AttributeError(key)
AttributeError: constructor
>>> exit()
Edited by Johann Fredrik Jadebeck