-
Notifications
You must be signed in to change notification settings - Fork 148
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
Failure with Python 3.12 but not Python 3.11: no attribute 'delete' #1642
Comments
@roll Just bringing this issue to your attention as I think it will affect anyone reading Excel with frictionless in Python 3.12. |
@roll I tested with frictionless 5.17.0 and unfortunately it doesn't fix this issue |
Thanks @mcarans! Yea, I know, I think they found the reason in this thread - Tinche/aiofiles#166 cc @pdelboca |
Hi @mcarans, can't reproduce (tried to validate an .xlsx file with python 3.12.6 + frictionless 5.17.1). |
@pierrecamilleri This will reproduce it:
|
Thanks 🙏 , I can reproduce |
I'm sorry, I just realized that the reproducible example was already in the ticket... I must have been tired... I looked at the faulty line, and it looks like it is using some The fix should be simple (we already have the value of "delete" and there is no reason to access it again through a private property), I will make a PR after double checking. |
Sorry, it took some time as I wanted to understand why pyright's type checking (run in CI with python 3.12) would not intercept this error. It looks like a limitation of stdlib typestubs : see this issue. |
- fixes #1642 Adapt to changes of API of `_TemporaryFileWrapper` in python 3.12, unfortunately not intercepted by pyright (see issue for details). The fix does not rely on this class's API, as the value is already stored in a local variable.
I have found an issue with frictionless with Python 3.12 that doesn't occur with Python 3.11. Here is the trace:
It can be reproduced with:
The text was updated successfully, but these errors were encountered: