Watchdog: No module named observers on windows OS

Created on 8 Apr 2016  路  5Comments  路  Source: gorakhargosh/watchdog

watchdog has been installed successfully.
Successfully installed argh-0.26.1 pathtools-0.1.2 watchdog-0.8.3
but the watchdog is not complete
>>> dir(watchdog) ['CHECK_PORT_FILE', 'CHECK_PORT_PROCESS_COMMAND', 'CHECK_PORT_PROCESS_SOCKET_COM MAND', 'MAX_DEADTIME', 'MAX_FULL_GC_COUNT', 'MAX_FULL_GC_PERCENT', 'MAX_KILL_TIM EOUT', 'MAX_START_CHECK_COUNT', 'MAX_STOP_TIMEOUT', 'PROJECT_DIR', 'PROJECT_LOG_ FILE', 'PROJECT_START_SCRIPT', 'WatchDog', '__builtins__', '__doc__', '__file__' , '__name__', '__package__', 'commands', 'glob', 'os', 'run_command', 'time']

Most helpful comment

Perhaps you named your python file as "watchdog" or "observers"...
Try to rename it and run again.

All 5 comments

Also getting the same error...

Actually I have the same problem on Mac OS X.

ImportError: No module named observers

While the watchmedo demo script works flawlessly.

Currently downgraded to v0.8.2 where the import does seem to work. I am not sure yet wether the watcher itself will work, will update this after testing.

python -m pip uninstall watchdog
python -m pip install watchdog==0.8.2

Closing as it is well tested that observers are present on all platforms. Open a speicif issue if encountering the error again.

Perhaps you named your python file as "watchdog" or "observers"...
Try to rename it and run again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Naatan picture Naatan  路  3Comments

AdrienPensart picture AdrienPensart  路  3Comments

hgrecco picture hgrecco  路  6Comments

gilles380 picture gilles380  路  3Comments

fx86 picture fx86  路  3Comments