-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
OS module import fails #130
Comments
Ah, you're saying |
@Tinche yes, there was no way to import |
I had the same issue today. Installing types-aiofiles wouldn't help me though. Python 3.10.1 |
Same thing. Seeing this in mypy: |
you need to |
When uploading a file, the worker was consistently exiting with the following error: ``` [truncated] File "/app/app/routes/upload.py", line 93, in handle_upload await aiofiles.os.rename( AttributeError: module 'aiofiles' has no attribute 'os' [2023-05-28 14:07:27 +0000] [14] [ERROR] closing handshake failed ``` Fixed by importing it separately as advised in this issue: Tinche/aiofiles#130
I got this error. |
Getting the same error. |
Cannot import correctly anything from
os.path
module and cannot use its functions likepath.exists()
The text was updated successfully, but these errors were encountered: