Hazel and tvnamer

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

Moderator: Mr_Noodle

Hazel and tvnamer Sun May 31, 2015 2:54 am • by cecconi81
Hi, i'm getting the following log when i run the rules in hazel:

= End script output ==
2015-05-31 08:50:23.243 hazelworker[35164] [Error] Shell script failed: Error processing shell script on file /Volumes/Data Mac24/Utorrent/1992.HD.s01.e08.HDTVRip.H264.Ita Ac3[BlackBIT]mutu_1980.mkv.
2015-05-31 08:50:23.243 hazelworker[35164] Shellscript exited with non-successful status code: 1
2015-05-31 08:50:23.243 hazelworker[35164] DEBUG: Tapping error retry sequence
2015-05-31 08:50:23.244 hazelworker[35164] DEBUG: 1992.HD.s01.e09-10.HDTVRip.H264.Ita Ac3[BlackBIT]mutu_1980: Did not match any rules.
2015-05-31 08:50:23.245 hazelworker[35164] 1992.HD.s01.e09.HDTVRip.H264.Ita Ac3[BlackBIT]mutu_1980.mkv: Rule Renamed matched.
2015-05-31 08:50:23.245 hazelworker[35164] DEBUG: Manual run. Forcing actions to be executed.
2015-05-31 08:50:23.367 hazelworker[35164] DEBUG: == script output ==
Traceback (most recent call last):
File "/usr/local/bin/tvnamer", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2880, in <module>
working_set = WorkingSet._build_master()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 434, in _build_master
return cls._build_from_requirements(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 447, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: tvdb-api>=1.10

the script i settled is :
/usr/local/bin/tvnamer --batch "$1"

with the shell:
/bin/bash

What can be the error?

Regards
cecconi81
 
Posts: 1
Joined: Sun May 31, 2015 2:52 am

Re: Hazel and tvnamer Mon Jun 01, 2015 11:27 am • by Mr_Noodle
I'm guessing there are some environment variables that tvrenamer needs to be set for it to work. Try searching the forums or checking with any tvrenamer support.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support