question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sqlite3.InterfaceError: Error binding parameter 1 - probably unsupported type.

See original GitHub issue

Encountered this error during a write to the database using the library. The objects being written were collections.Counter[Tuple[str]] and Dict[str, Counter[Tuple[str]]]

Both types of objects previously worked fine in being written to the DB, but this time, it threw an error. Not sure why, and I haven’t been able to narrow it down any further, but it did corrupt my existing DB that was being built over a long process with successive (batched) write operations.

sqlite3.InterfaceError: Error binding parameter 1 - probably unsupported type.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
piskvorkycommented, Apr 29, 2022

Thanks for the additional info. If the error is not deterministic, this will be a tricky. I’ll try to google around.

-1 on bypassing DB errors by copying the DB… who knows what else is wrong, plus such copying can be done at the application level, like you said.

0reactions
aalok-sathecommented, May 9, 2022

Is there a way to find out what object, if at all, when being committed, caused an error in sqlite3? That would give us a hint about the point of failure. I don’t mean the top-level object, I mean the specific value. Maybe this can be phrased better, I’m unfortunately not too familiar with sqlite3. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

sqlite3.InterfaceError: Error binding parameter 1 - probably ...
The easiest way to solve that issue is- convert all the dataframe columns into str, and apply to_sql method. df = df.applymap(str) otherwise, ......
Read more >
sqlite3.InterfaceError: Error binding parameter 0 - probably ...
InterfaceError : Error binding parameter 0 - probably unsupported type. Best I can tell from reddit API is that all data returned is...
Read more >
(sqlite3.InterfaceError) Error binding parameter 6 - probably ...
First check I added a very descriptive title to this issue. I used the GitHub search to find a similar issue and didn't...
Read more >
sqlite3.InterfaceError: Error binding parameter - Pyrogram
This error occurs when you pass a chat id value of the wrong type when trying to call a method. Most likely, you...
Read more >
Getting this error Error sqlite3 InterfaceError Error binding ...
InterfaceError : Error binding parameter 0 - probably unsupported type. python · sqlite3 · pyqt4. Oct 1, 2018 in Python by bug_seeker
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found