Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure dependency loading from cache does not fail #411

Merged
merged 3 commits into from
May 16, 2024
Merged

Conversation

hagenw
Copy link
Member

@hagenw hagenw commented May 16, 2024

As can be seen in https://github.com/audeering/audinterface/actions/runs/9094046905/job/25009555875?pr=172 and is decribed at audeering/audinterface#172 (comment), loading of an existing dependency table from cache, stored by an older version of audb than 1.7, might fail with KeyError under Python 3.8.

I added KeyError to the list of the errors we catch when trying to load the cache file,
and show in audeering/audinterface#174 that this fixes the problem we see for the test in audinterface.

I have opted against catching all possible errors, as we do not want to catch an Interruption initiated by the user, e.g. keyboard interruption.

@hagenw hagenw marked this pull request as draft May 16, 2024 09:07
@hagenw hagenw marked this pull request as ready for review May 16, 2024 09:16
@hagenw hagenw requested a review from ChristianGeng May 16, 2024 09:32
@ChristianGeng ChristianGeng self-requested a review May 16, 2024 12:25
Copy link
Member

@ChristianGeng ChristianGeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had only one minor comment that was related to the addition of an additional error class. This has been discussed and therefore approval will be given.

@hagenw hagenw merged commit e6a6c67 into main May 16, 2024
9 checks passed
@hagenw hagenw deleted the fix-old-cache branch May 16, 2024 12:28
@hagenw
Copy link
Member Author

hagenw commented May 16, 2024

This is really annoying. Turns out under Windows it is failing again with another error: https://github.com/audeering/audinterface/actions/runs/9094046905/job/25052936311?pr=172

ModuleNotFoundError("No module named 'pandas.core.arrays.arrow.dtype'")

:(

@hagenw
Copy link
Member Author

hagenw commented May 16, 2024

I guess we have to add a test for it, or we should catch all exceptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants