Python Not Working

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Python Not Working 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.
jcheshire
 
Posts: 7
Joined: Wed Apr 27, 2011 4:34 pm

Re: Python Not Working Sun Sep 16, 2012 10:28 am • by a_freyer
Any change when you set the exit code directly?

Code: Select all
exit (0)
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

Re: Python Not Working Sun Sep 16, 2012 8:33 pm • by jcheshire
Sonufa. That did it.

Alright, good to know: force a clean exit. Thanks!
jcheshire
 
Posts: 7
Joined: Wed Apr 27, 2011 4:34 pm


Return to Support