`ModuleNotFoundError`/`KeyError` when trying to load a database from cache
Closed this issue · 0 comments
I ran into both the ModuleNotFoundError
and KeyError
when trying to load a database that already had an existing version stored, and then found this PR.
I think it isn't a cross-platform issue, but a compatibility issue with different pandas
versions.
I tried creating different versions of the db.pkl
from the db.csv
similar to what was added in d5402d6 , using always audb==1.7.2
but alternating the pandas
version. Then I loaded the db.pkl
with pd.read_pickle()
.
This replicated the error:
db.pkl
created withpandas==2.0.3
. Loading withpandas==2.2.2
leads to aModuleNotFoundError
db.pkl
created withpandas==2.2.1
orpandas==2.2.2
. Loading withpandas==2.0.3
leads to aKeyError
Maybe the problem just manifested for Windows because it happened to install a different pandas
version between tests, but for the other platforms the same pandas
version was used.
Originally posted by @audeerington in #413 (comment)