Page 1 of 1

Python Not Working

PostPosted: Fri Sep 14, 2012 7:03 pm
by jcheshire
I hope this is just something obvious that I'm missing, but I can't get Python to work with Hazel in any way.

I've gone so far as to make the simplest possible Python script that is guaranteed to return a successful execution, and the log lines keep showing an error.

The Incredibly Simple Rule That Fails:
Image

The Resulting Log Lines:
Code: Select all
2012-09-14 15:49:08.250 hazelworker[13336] blah.txt: Rule Testing Python matched.
2012-09-14 15:49:08.334 hazelworker[13336] [Error] Shell script failed: Error processing shell script on file /Users/myusername/Desktop/test/blah.txt.
2012-09-14 15:49:08.334 hazelworker[13336] Shellscript exited with non-successful status code: 1
2012-09-14 15:49:08.338 hazelworker[13336] Done processing folder test


Am I missing something obvious? I've tried following the directions to reinstall Hazel, and that didn't help. I've made sure /usr/bin/python is the right location of my Python binary.

Re: Python Not Working

PostPosted: Sun Sep 16, 2012 10:28 am
by a_freyer
Any change when you set the exit code directly?

Code: Select all
exit (0)

Re: Python Not Working

PostPosted: Sun Sep 16, 2012 8:33 pm
by jcheshire
Sonufa. That did it.

Alright, good to know: force a clean exit. Thanks!