sqlite3.InterfaceError: Error binding parameter 1 - probably unsupported type.
See original GitHub issueEncountered 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:
- Created a year ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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!