You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/02/17 11:05:23 UTC

[GitHub] [incubator-superset] danny-zhu commented on issue #4974: (exceptions.TypeError) __init__() got an unexpected keyword argument 'connect_timeout'

danny-zhu commented on issue #4974: (exceptions.TypeError) __init__() got an unexpected keyword argument 'connect_timeout'
URL: https://github.com/apache/incubator-superset/issues/4974#issuecomment-586940353
 
 
   I got the same issue when i wanna to build a new hive database connection. The full error stacktrace is :
   2020-02-17 09:50:09,700:ERROR:root:__init__() got an unexpected keyword argument 'connect_timeout'
   Traceback (most recent call last):
     File "/home/superset/superset/views/core.py", line 1716, in testconn
       with closing(engine.connect()) as conn:
     File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/engine/base.py", line 2196, in connect
       return self._connection_cls(self, **kwargs)
     File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/engine/base.py", line 103, in __init__
       else engine.raw_connection()
     File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/engine/base.py", line 2296, in raw_connection
       self.pool.unique_connection, _connection
     File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/engine/base.py", line 2265, in _wrap_pool_connect
       return fn()
     File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/pool/base.py", line 303, in unique_connection
       return _ConnectionFairy._checkout(self)
     File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/pool/base.py", line 760, in _checkout
       fairy = _ConnectionRecord.checkout(pool)
     File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/pool/base.py", line 492, in checkout
       rec = pool._do_get()
     File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/pool/impl.py", line 238, in _do_get
       return self._create_connection()
     File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/pool/base.py", line 308, in _create_connection
       return _ConnectionRecord(self)
     File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/pool/base.py", line 437, in __init__
       self.__connect(first_connect_check=True)
     File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/pool/base.py", line 639, in __connect
       connection = pool._invoke_creator(self)
     File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/engine/strategies.py", line 114, in connect
       return dialect.connect(*cargs, **cparams)
     File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/engine/default.py", line 453, in connect
       return self.dbapi.connect(*cargs, **cparams)
     File "/usr/local/lib/python3.7/dist-packages/pyhive/hive.py", line 94, in connect
       return Connection(*args, **kwargs)
   TypeError: __init__() got an unexpected keyword argument 'connect_timeout'
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org