watchmedo not working on M1 Mac
See original GitHub issueHey Guys,
We have two mac Big Sur, one intel and the other M1. watchmedo is not working when called from the M1.
test_app| Inotify._raise_error() test_app | File "/usr/local/lib/python3.8/dist-packages/watchdog/observers/inotify_c.py", line 405, in _raise_error test_app | raise OSError(err, os.strerror(err)) **test_app | OSError: [Errno 38] Function not implemented** test_app_valid exited with code 1 test_app exited with code 1
watchmedo is being called inside a docker image.
Our compose.yml command:
command: watchmedo auto-restart -d test_app/test_app_valid/ -p '*.py' -- python3 -m debugpy --listen 0.0.0.0:20000 -m test_app. test_app_valid
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:8
Top Results From Across the Web
Failed to set up locally in M1 Mac · Issue #615 · fastai/fastpages
I tried building it locally in my M1 Macbook by make server ... File "/usr/local/lib/python3.7/site-packages/watchdog/watchmedo.py", ...
Read more >Watchdog kernel panics in M1 Macs running macOS X ...
A web search for watchdog and kernel panics indicates that this problem is a common one, and has been an issue since at...
Read more >Running Redash on M1 Mac on Docker - Stephan Meijer
This removes the watchmedo binary. The downside is that the daemons will not restart on changes in the Redash source code. Source for...
Read more >Fix broken Docker Development on Apple Macbook M1
Docker has written a blog post that explains all the problems that need to be solved: Migrate to new hypervisor framework (does not...
Read more >Watchdog - PyPI
python -m pip install -U watchdog # or to install the watchmedo utility: ... This is an inherent problem with kqueue because it...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m having a similar issue with the watchdog library (not watchmedo):
The base image is python:3.9-slim.
If you have the flexibility of using an
arm64based container, this is also another solution to this problem. The docker issue is withinotifyunder the emulation mode only. If you have the option to use an arm based container,watchdogshould work normally.