sqlalchemy version compatibility error when installing superset with PyPI #29258
Unanswered
jihyeon0429
asked this question in
Q&A / Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've tried many different versions of sqlalchemy(with pip install ~) when installing superset with PyPI and keep having compatibility error.
Environment is as below.
Can someone advise which sqlalchemy version should I use? Any advice would be appreciated.
(It worked fine when I use Python 3.6.5 & sqlalchemy 1.3.24)
Errors I had was like this.
Traceback (most recent call last):
File "/home/superset/myvenv/bin/superset", line 5, in
from superset.cli.main import superset
File "/home/superset/myvenv/lib/python3.9/site-packages/superset/init.py", line 21, in
from superset.app import create_app
File "/home/superset/myvenv/lib/python3.9/site-packages/superset/app.py", line 24, in
from superset.initialization import SupersetAppInitializer
File "/home/superset/myvenv/lib/python3.9/site-packages/superset/initialization/init.py", line 35, in
from superset.extensions import (
File "/home/superset/myvenv/lib/python3.9/site-packages/superset/extensions/init.py", line 35, in
from superset.utils.encrypt import EncryptedFieldFactory
File "/home/superset/myvenv/lib/python3.9/site-packages/superset/utils/encrypt.py", line 24, in
from sqlalchemy.engine import Connection, Dialect, Row
ImportError: cannot import name 'Row' from 'sqlalchemy.engine' (/home/superset/myvenv/lib/python3.9/site-packages/sqlalchemy/engine/init.py)
dding uuids for
dbs
...Traceback (most recent call last):
File "/home/superset/myvenv/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1810, in _execute_context
context = constructor(
File "/home/superset/myvenv/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 1077, in _init_compiled
param = [
File "/home/superset/myvenv/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 1078, in
processorskey
File "/home/superset/myvenv/lib/python3.9/site-packages/sqlalchemy/sql/type_api.py", line 1666, in process
return impl_processor(process_param(value, dialect))
File "/home/superset/myvenv/lib/python3.9/site-packages/sqlalchemy_utils/types/uuid.py", line 86, in process_bind_param
value = self._coerce(value)
File "/home/superset/myvenv/lib/python3.9/site-packages/sqlalchemy_utils/types/uuid.py", line 65, in _coerce
value = uuid.UUID(value)
File "/usr/local/lib/python3.9/uuid.py", line 174, in init
hex = hex.replace('urn:', '').replace('uuid:', '')
AttributeError: 'function' object has no attribute 'replace'
Beta Was this translation helpful? Give feedback.
All reactions