0

I want to create a python program that continously monitors a directory for any change and if a change hapens like creation or modification it should execure a shell script via exec. For that reason I am trying to use watchdog on my MacOsX Mavriks. But every time I try to install it I get an error saying I do it via

sudo easy_install watchdog

Searching for watchdog Reading http://pypi.python.org/simple/watchdog/ Best match: watchdog 0.7.1 Downloading https://pypi.python.org/packages/source/w/watchdog/watchdog-0.7.1.tar.gz#md5=ffec8b4afd1058e76f6c664ade8a0de7 Processing watchdog-0.7.1.tar.gz Running watchdog-0.7.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Z2T0_T/watchdog-0.7.1/egg-dist-tmp-rxk3TS no previously-included directories found matching 'docs/source/_themes/.git*' clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future error: Setup script exited with error: command 'cc' failed with exit status 1 

I have also installed all its dependencies including homebrew.

Is there any other FAM I can run easily on my mac or How will this thing work

2
  • Have you tried installing it using pip? Commented May 21, 2014 at 6:01
  • I dont have it in my system but I have tried to install it with its source Commented May 21, 2014 at 6:19

1 Answer 1

0

You need an extra archflag.

sudo ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" easy_install watchdog

This is an OSX update issue. See this similar (but not duplicate) question Installing Pillow, getting -Wunused-command-line-argument-hard-error-in-future

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.