watchdog is a file system monitoring tool written in Python.
see also: The watchmedo command of the watchdog module is useful-the spill of biased language followers
The watchdog currently runs on Python 2.5 and above, so most environments are done by running the following command:
pip install watchdog
Windows + Python 3.3 However, if you are in a Windows environment and the version of Python with pip is 3.3, it may fail with the following error: (In my case, Python 3.2 was fine and I got this error in Python 3.3)
argh.py
UnicodeDecodeError: 'cp932' codec can't decode byte 0x94 in position 112: illegal multibyte sequence
If this happens, follow the steps below to continue the installation.
I think that the working directory during installation is created in your Python installation destination or in a virtual environment created by virtualenv. The installation of argh has failed, so let's open argh / setup.py. There is a tab character near the number of lines pointed out in the error message, so replace it with four single-byte spaces.
After modifying setup.py, go to the argh folder and hit the following command to install argh.
python install setup.py
This shouldn't hinder you, so hit pip install watchdog
again.
If you're still in the argh folder, you might want to move the path.
If you use watchdog with joy and courage, you will immediately get the following error:
bricks.py
if not sys.version < (2, 6, 0):
TypeError: unorderable types: str() < tuple()
It's very disappointing, so open this bricks.py from the folder where you installed watchdog and replace sys.version
with sys.version_info
.
Recommended Posts