Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oedialect does not support newer versions of SQLAlchemy (oedialect not usable with sqla v1.4.0) #42

Open
mltja opened this issue May 7, 2021 · 1 comment

Comments

@mltja
Copy link

mltja commented May 7, 2021

When testing eDisGo with an version of SQLAlchemy 1.4.0 or higher errors occur which are probably inflicted through oedialect.

Error message

self = <oedialect.compiler.OECompiler object at 0x7fdfa9d748d0>
select = <sqlalchemy.sql.selectable.Select object at 0x7fdfa9d74c88>
asfrom = False, parens = True, fromhints = None, compound_index = 0
nested_join_translation = False, select_wraps_for = None, kwargs = {}
jsn = {'command': 'advanced/search', 'type': 'select'}

    def visit_select(
        self,
        select,
        asfrom=False,
        parens=True,
        fromhints=None,
        compound_index=0,
        nested_join_translation=False,
        select_wraps_for=None,
        **kwargs
    ):
        jsn = {"command": "advanced/search", "type": "select"}
        needs_nested_translation = (
>           select.use_labels
            and not nested_join_translation
            and not self.stack
            and not self.dialect.supports_right_nested_joins
        )
E       AttributeError: 'Select' object has no attribute 'use_labels'

 #../../../lib/python3.6/site-packages/oedialect/compiler.py:614: AttributeError
@jh-RLI
Copy link
Contributor

jh-RLI commented Aug 29, 2022

We currently do not support SQLAlchemy 1.4. use sqlalchemy == 1.3.23 instead. We have to update the interface but ATM this was not on our priolist, as the oedialect is working with the necessary modules.

@jh-RLI jh-RLI changed the title Oedialect does not work with SQLAlchemy 1.4.0 or higher ? Oedialect does not support newer versions of SQLAlchemy (oedialect not usable with sqla v1.4.0) Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants