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

TypeError: Row argument 1 must be Cursor, not Cursor #18

Open
niki-sp opened this issue Oct 30, 2023 · 1 comment
Open

TypeError: Row argument 1 must be Cursor, not Cursor #18

niki-sp opened this issue Oct 30, 2023 · 1 comment

Comments

@niki-sp
Copy link

niki-sp commented Oct 30, 2023

v 0.3.0
When using existing sqlite3 database i get

Traceback (most recent call last):
  File "e.py", line 81, in __getitem__
    r = self._cursor.fetchone()
        ^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.local/lib/python3.11/site-packages/libsql_client/dbapi2/types.py", line 845, in __init__
    raise TypeError(msg)
TypeError: Row argument 1 must be Cursor, not Cursor

Removing issubclass(cur_tp, Cursor) check seems to restore normal operation

@niki-sp
Copy link
Author

niki-sp commented Oct 30, 2023

Same error with full names:
TypeError: Row argument 1 must be <class 'libsql_client.dbapi2.types.Cursor'>, not <class 'sqlite3.Cursor'>

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

1 participant