Closed MartinKurtz closed 3 months ago
After a suggestion from a friend, it turns out PyCharm was misreporting the version of tinydb installed was 4.8.0 when actually it was 3.15.2, updating to 4.8.0 from outside of PyCharm resolved the issue
@MartinKurtz Great to hear that you found the issue 🙂
This is from a piece of software for a students project for a computermuseum, dealing with all kinds of weird data formats, and it has a split operation that splits one file into 2 subfiles by inserting a second subfile into the DB and modifying the first to be the first subfile after the split.
Excerpts of my Code:
The original Insertion of the file into the DB
The Insertion of a subfile:
The first split call that should insert
the second one
The two relevant tables of the DB look like this after the call:
What do i expect to happen? after 2 splits that are confirmed to be happening, i expect there to be 3 subfiles in that table, and after all the insert is getting called twice on split and once on creation.
What happens? The DB does not seem to take the second insert call(first one after file creation) causing my program to crash when running further. You can see from the excerpt of the console output that the insert method is definitely getting called, however only one of those 2 calls actually results in an actual insertion happening.