-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
SystemError when switching projects #14779
Comments
It seems this was fixed in the latest version of Could you update and try again? |
I can also confirm the issue manifests with bootstrapping from a conda environment. Dependencies
resulting in a similar traceback File "/Users/rclary/opt/miniconda3/envs/spy-dev/lib/python3.9/site-packages/watchdog/observers/fsevents.py", line 283, in run
_fsevents.add_watch(self, self.watch, callback, self.pathnames)
SystemError: <built-in function add_watch> returned NULL without setting an error Note that the most recent version of Not sure if gorakhargosh/watchdog#763 simply failed to completely resolve gorakhargosh/watchdog#762 or whether this is a different issue. Should we change constraint for |
It seems something else than the reported issue on watchdog. What paths are being handled? Can you provide a minimal code to reproduce? |
@BoboTiG, thanks for chiming in! It seems you need to open and close one of our projects several times for this to happen. |
@ccordoba12, do we want to defer this issue until further updates to watchdog. We'll need to retest and unconstrain the version when possible. |
We will investigate on our side and come with a fix ASAP. |
Sorry but I had to fix it now because we're planning to release 4.2.2 tomorrow.
Sure, once this is fixed on the Watchdog side, we'll remove the constrain I added on PR #14791. |
Thanks for your help @BoboTiG! |
@ccordoba12 release v2.0.2 with the fix is out. The bug was present since a while (inclusing v1.0.2) but it was just ignored. |
Thanks a lot for your help @BoboTiG! Since we're going to release our version 4.2.2 today, we'll leave the current constraint in place (just because we don't have enough time to test it on our side). But we'll remove it in our next version, to be released in a month or so. |
With artifact from #14797 I still get the following error. File "watchdog/observers/fsevents.pyc", line 283, in run
RuntimeError: Cannot add watch <ObservedWatch: path=/Users/rclary/Documents/Python/spyder-kernels, is_recursive=True> - it is already scheduled
|
Yes, the old behavior was bad as it was hiding the error (a bug in our implementation). You will need to catch the error or not add watch for already watched folders. |
Description
What steps will reproduce the problem?
Traceback
Versions
Dependencies
The text was updated successfully, but these errors were encountered: