Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'Script Problem' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Script Problem
Authored by: berndtj on Wed, May 30 2007 at 6:54PM PDT
The issue is that the script is still running python 2.3. The subprocess module is part of python 2.4+, hence the dependence.

After you install python 2.4 or 2.5, you will need to change the link to python in /usr/bin

from the terminal type "ls -la | grep python", you will see what I mean.

To fix this just do the following:

sudo mv python python.old

sudo ln -s /Library/Frameworks/Python.framework/Versions/Current/bin/python python

sudo rm python.old

Once you do this, the script should work. If you don't want to muck with the links in /usr/bin, you can replace the first line of the script from:
#!/usr/bin/python
to:
#!/Library/Frameworks/Python.framework/Versions/Current/bin/python

Hope that helps.

[ Reply to This | # ]
Script Problem
Authored by: robgmann on Wed, May 30 2007 at 10:13PM PDT
I was able to get the script to start by making sure #!/usr/bin/python was on the first line of the script. (When I pasted it from the hint, it wasn't the first line).

Then it reads the DVD for a minute and outputs:
........................................nripping: chapter 0 (0s)
.nyou totally ripped! (0:1:40 total time)

No output file is created, i.e. nothing appears to have happened.
Is there a simple way to see diagnostics of this script?
So far, it seems no one has had success making it run.




[ Reply to This | # ]
Script Problem
Authored by: berndtj on Wed, May 30 2007 at 10:30PM PDT
Hmmm.

Well you can run HandBrakeCLI stand alone, and see if it works. From the output you show, it appears that the scanning did not return anything.

Try:

HandBrakeCLI /Volumes/your_dvd -t 0

You should see a bunch of output. The script parses this output to return the longest title.

[ Reply to This | # ]
Script Problem
Authored by: robgmann on Fri, Jun 1 2007 at 8:13AM PDT
Still not getting it... here is my command and output:
HandBrakeCLI -i /Volumes/WW_S3_D4/ -t0

HandBrake 0.8.5b1 (2007042001) - http://handbrake.m0k.org/
1 CPU detected
Opening /Volumes/WW_S3_D4/...
Scanning title 1 of 13...
Scanning title 2 of 13...
Scanning title 3 of 13...
Scanning title 7 of 13...
Scanning title 8 of 13...
Scanning title 9 of 13...
Scanning title 10 of 13...
Scanning title 13 of 13...
No title found.
HandBrake has exited.

And when I run the script, I still just get
./scripts/rip.py /Volumes/SHARED/shared/Ripped/
.........nripping: chapter 0 (0s)
.nyou totally ripped! (0:1:9 total time)
sh: line 1: growlnotify: command not found



[ Reply to This | # ]
Script Problem
Authored by: berndtj on Fri, Jun 1 2007 at 8:18AM PDT
"No title found" sounds like HandBrake is having trouble reading the DVD properly. Try it with a different DVD.

[ Reply to This | # ]