You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "sfc-gh-twhite (via GitHub)" <gi...@apache.org> on 2023/09/11 13:46:59 UTC

[GitHub] [arrow-adbc] sfc-gh-twhite commented on issue #1047: python/driver/snowflake: TypeError: __init__() got multiple values for keyword argument 'database'

sfc-gh-twhite commented on issue #1047:
URL: https://github.com/apache/arrow-adbc/issues/1047#issuecomment-1713923148

   Should have included that, sorry!
   
   ```
   ---------------------------------------------------------------------------
   TypeError                                 Traceback (most recent call last)
   Cell In[12], line 7
         3 from dotenv import load_dotenv
         5 load_dotenv(override=True)
   ----> 7 conn = adbc_driver_snowflake.dbapi.connect(conn_kwargs={
         8     "_".join(k.split("_")[1:]).lower(): v
         9     for k, v in os.environ.items()
        10     if k.upper().startswith("SNOWFLAKE")
        11 })
   
   File [/opt/conda/lib/python3.11/site-packages/adbc_driver_snowflake/dbapi.py:120](https://vscode-remote+dev-002dcontainer-002b7b22686f737450617468223a222f55736572732f7477686974652f5653436f646550726f6a656374732f736e6f77666c616b652d616462632d6578616d706c6573222c22636f6e66696746696c65223a7b22246d6964223a312c22667350617468223a222f55736572732f7477686974652f5653436f646550726f6a656374732f736e6f77666c616b652d616462632d6578616d706c65732f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c2265787465726e616c223a2266696c653a2f2f2f55736572732f7477686974652f5653436f646550726f6a656374732f736e6f77666c616b652d616462632d6578616d706c65732f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c2270617468223a222f55736572732f7477686974652f5653436f646550726f6a656374732f736e6f77666c616b652d616462632d6578616d706c65732f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c22736368656d65223a2266696c65227d7d.vscode-resource.vscode-cdn.net/opt/conda/lib/python3.11/site-pac
 kages/adbc_driver_snowflake/dbapi.py:120), in connect(uri, db_kwargs, conn_kwargs, **kwargs)
       118 try:
       119     db = adbc_driver_snowflake.connect(uri, db_kwargs=db_kwargs)
   --> 120     conn = adbc_driver_manager.AdbcConnection(db, **(conn_kwargs or {}))
       121     return adbc_driver_manager.dbapi.Connection(db, conn, **kwargs)
       122 except Exception:
   
   File [/opt/conda/lib/python3.11/site-packages/adbc_driver_manager/_lib.pyx:632](https://vscode-remote+dev-002dcontainer-002b7b22686f737450617468223a222f55736572732f7477686974652f5653436f646550726f6a656374732f736e6f77666c616b652d616462632d6578616d706c6573222c22636f6e66696746696c65223a7b22246d6964223a312c22667350617468223a222f55736572732f7477686974652f5653436f646550726f6a656374732f736e6f77666c616b652d616462632d6578616d706c65732f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c2265787465726e616c223a2266696c653a2f2f2f55736572732f7477686974652f5653436f646550726f6a656374732f736e6f77666c616b652d616462632d6578616d706c65732f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c2270617468223a222f55736572732f7477686974652f5653436f646550726f6a656374732f736e6f77666c616b652d616462632d6578616d706c65732f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c22736368656d65223a2266696c65227d7d.vscode-resource.vscode-cdn.net/opt/conda/lib/python3.11/site-packa
 ges/adbc_driver_manager/_lib.pyx:632), in adbc_driver_manager._lib.AdbcConnection.__init__()
   
   TypeError: __init__() got multiple values for keyword argument 'database'
   ```


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org