tursodatabase / tursodatabase/libsql

Issue: pyo3_runtime.PanicException: not yet implemented

Open
#1,658 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
17.2k
Forks
531
Avg merge
1h 12m
Merged PRs (30d)
1

Description

Using the Turso DB straight from my Flask python backend, i've faced an issue when trying to use a INSERT OR IGNORE sqlite clause.

The code is:
for track in tracks_info:
# Insert or ignore album information
conn.execute('''
INSERT OR IGNORE INTO apple_albums (apple_album_id, title, release_year, artist_id, picture_url)
VALUES (?, ?, ?, ?, ?)
''', (track['apple_album_id'], track['album_title'], track['release_year'], track['apple_artist_id'], track['image_url']))

This results in : pyo3_runtime.PanicException: not yet implemented

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied Flask/Python snippet and trace the libSQL Python execution path for INSERT OR IGNORE. Reproduce the pyo3_runtime.PanicException, then verify that the statement executes without a panic and preserves the requested insert-or-ignore behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, python, sqlite
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.