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: tuple indices must be integers or slices, not str #1292

Open
1 of 2 tasks
fwang356 opened this issue Oct 17, 2023 · 1 comment
Open
1 of 2 tasks

TypeError: tuple indices must be integers or slices, not str #1292

fwang356 opened this issue Oct 17, 2023 · 1 comment

Comments

@fwang356
Copy link

Search before asking

  • I have searched the EvaDB issues and found no similar bug report.

Bug

I'm storing a numpy array in a PostgreSQL table using pgvector. In line 95 here I am getting the following error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/evadb/storage/native_storage_engine.py", line 195, in read
    data_batch.append(_deserialize_sql_row(row, ordered_columns))
  File "/usr/local/lib/python3.10/dist-packages/evadb/storage/native_storage_engine.py", line 95, in _deserialize_sql_row
    if col.type == ColumnType.NDARRAY and isinstance(sql_row[col.name], bytes):
  File "lib/sqlalchemy/cyextension/resultproxy.pyx", line 48, in sqlalchemy.cyextension.resultproxy.BaseRow.__getitem__
TypeError: tuple indices must be integers or slices, not str

Environment

Google Colab

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@github-actions
Copy link
Contributor

👋 Hello @fwang356, thanks for your interest in EVA DB 🙏 Please visit our 🔮 Tutorials to get started, where you can find quickstart guides for simple tasks like Image Classification all the way to more interesting tasks like Emotion Analysis.

If this is a 🐞 Bug Report, please provide a minimum reproducible example to help us debug it.

If this is a ❓ Question, please provide as much information as possible, including dataset examples and query results.

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