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

ModuleNotFoundError: No module named '_watchdog_fsevents' #1008

Open
dhnam opened this issue Sep 16, 2023 · 3 comments
Open

ModuleNotFoundError: No module named '_watchdog_fsevents' #1008

dhnam opened this issue Sep 16, 2023 · 3 comments

Comments

@dhnam
Copy link

dhnam commented Sep 16, 2023

from watchdog.observers.fsevents import FSEventsObserver

gives me

Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/home/vscode/.local/lib/python3.11/site-packages/watchdog/observers/fsevents.py", line 32, in <module>
    import _watchdog_fsevents as _fsevents  # type: ignore[import]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_watchdog_fsevents'
@altendky
Copy link
Contributor

Based on your path (/home/...) it looks like you are running Linux. Is that correct? FSEvents is a macOS only thing I believe.

What is the bigger picture here that lead you to run into this error?

Regardless, it could certainly be useful to provide a better message here to help out developers.

@dhnam
Copy link
Author

dhnam commented Sep 18, 2023

Yup it's on Linux - actually it's on codespace. It is used on other library (pyedifice) so I installed watchdog, and ran into this error.

Current version of pyedifice doesn't handle this exception well (It actually checks exception, but expects wrong exception.) so I ran into the problem.

Guess it's more like problem of said library.

@altendky
Copy link
Contributor

At present, I think it is likely that your issue will be addressed by a change in the other library. But, let's leave this issue open as there is room for improvement around the handling of this in watchdog itself.

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

No branches or pull requests

2 participants