-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
_rust_notify.WatchfilesRustInternalError: error in underlying watcher: IO error for operation on <python path>: No such file or directory (os error 2) #282
Comments
I am encountering the same issue with the
Downgrading from "0.22.0" to "0.21.0" fix the problem. |
Does the file being watched exist? |
The error message points to an IO issue for |
thanks, I assume v0.23 has the same issue? |
I am getting same error, also Docker on WSL2 (Ubuntu 22.04). I get error on |
I found that because I am mounting my root folder to the docker container, having a virtual environment in my local root will break The workaround I am using to fix this: |
Thanks so much for the feedback, please could you try with |
Edit: Btw, my errors are actually resolved if I |
Maybe this has the same cause as #294? |
I can't tell. However, I did some testing, and the change that broke it is upgrading |
For reference, I'm also mounting an empty volume at |
I've encountered the issue without using the Docker. I was tinkering with the
A similar error occurs when running Downgrading |
I think this is related to notify-rs/notify#581, I think we need to either ignore this error, or return a "file deleted" event. |
I could, potentially, if you were to describe the procedure. I am simply running an app (Shiny, fastHTML, etc), without understanding the fine nuances of what is happening in the background (uvicorn, starlette, etc). |
Turns out there's no env var to enable debug, but I think I have enough to fix this. |
@samuelcolvin I wouldn't call this a very thorough test, but I did install the new version from a wheel, and the error does NOT pop up where it used to previously. Just before the installation I was able to trigger the error with v0.23 (within 10 seconds or so after uvicorn launch), and with the new version I did not get any errors after about 3 minutes of interacting with the app. |
That's great news, thank you. I'll wait a day or two to see if someone else can also check it and confirm the error is gone, then make a release. |
This issue still persists on Windows WSL2, any quick fixes for it? UPDATE : Had to Install Rust through the CLI to fix this |
It should be fixed with the latest release on pypi. |
Description
Details
This error occurs on
uvicorn
startup in a docker environment (based on python:3.11-slim) when using the uvicorn--reload
flag.The path is pointing to the python3 executable of my virtual environment i.e. /backend/app/.ignore/venv/bin/python3.
Full stack trace:
Workaround
Specifically adding
watchfiles==0.21.0
as a dependency to my project resolves the issue.Example Code
No response
Watchfiles Output
No response
Operating System & Architecture
docker on WSL2
Environment
docker on WSL2
Python & Watchfiles Version
Rust & Cargo Version
No response
The text was updated successfully, but these errors were encountered: