Re: [Freevo-users] Freevo 1.5.x Wakeup Client and Server
Robert Winder wrote: On Tuesday, August 8, 2006, 7:54:05 PM, Duncan wrote: One problem I'm having is finding a version of grub that actually works with the --once patch. It seems to stay at the poweroff entry. Well it was a long time ago I messed with this but never found a grub version which worked with the --once option. Still using old and trusty lilo for this very reason. But things with Grub might have changed by now. Hi Robert, I have found a version 0.95 plus the IPCop patches, or a SuSE 0.95-10. (SuSE has a grubonce script) I'm not sure that this is a problem with the patches of some odd configuration detail.What I've found out is that grub is a bit fussy. The first time we set the default to 0 and the power of entry to say 2, then reboot. After this it is possible to change the menu.lst or grub.conf to use default saved, afterwards it will boot to entry 0 when shutdown with the --once option OR it will boot with saved default if normally rebooted. Took me quite some time and a few gray hairs to figure this out. I've attached the grub.conf file and my shutdown script which may make this clearer. Duncan # Begin /boot/grub/grub.conf # Allow 2 seconds before booting the default. timeout 2 # By default boot the first menu entry. #default 0 # By default boot is the last menu selected. default saved # Use prettier colors. color blue/black light-blue/black foreground = ee background = 313191 # Use a splash image splashimage=(hd0,1)/boot/grub/freevo.xpm.gz # vga=0x318 video=vesafb:mtrr,ywrap # video=vesafb:mtrr,ywrap,[EMAIL PROTECTED] # vga 1280x1024-16 = 0x31A = 794 # vga 1280x1024-32 = 0x31A = 795 # vga 1024x768-16 = 0x317 = 791 # vga 1024x768-32 = 0x317 = 792 # vga 800x600-24 = 0x114 = 276 (788) title LFS kernel-2.6.15.6-r1 Freevo on TV root (hd0,1) kernel /boot/kernel-2.6.15.6-r1 root=/dev/sda2 ro vga=791 video=vesafb:mtrr,ywrap idebus=66 quiet 4 splash=silent initrd /boot/initrd.splash savedefault title LFS kernel-2.6.15.6-r1 Freevo on PC SMP root (hd0,1) kernel /boot/kernel-2.6.15.6-r1 root=/dev/sda2 ro vga=791 video=vesafb:mtrr,ywrap idebus=66 quiet 5 splash=silent initrd /boot/initrd.splash savedefault title PowerOff Halt halt # End /boot/grub/grub.conf #! /bin/bash bootloader=${1:-grub} bootloaderentry=${2:-1} needreboot=${3:-yes} echo Usage: $(basename $0) bootloader (grub or lilo) entry number or name need reboot (yes or no) if [ ${bootloader} == grub ]; then if ! echo savedefault --default=${bootloaderentry} --once \nquit | /sbin/grub --no-floppy --batch; then echo failed to set up grub with \savedefault --default=${bootloaderentry} --once\ exit 1 fi elif [ ${bootloader} == lilo ]; then if ! /sbin/lilo -R ${bootloaderentry}; then echo failed to set up lilo with \-R ${bootloaderentry}\ exit 1 fi else echo Bootloader \${bootloader}\ not supported exit 1 fi #echo Press Enter to Reboot/Shutdown #read ENTER if [ ${needreboot} == yes ]; then /sbin/shutdown -r now elif [ ${needreboot} == no ]; then /sbin/shutdown -h now else echo needreboot \${needreboot}\ should be \yes\ or \no\ exit 1 fi - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Freevo crashes (microdom.py)
Mustafa Yilmaz wrote: Hello all, I've recently installed freevo and I had no errors during installation. When I try to run it though I get an error: ImportError: No module named web.microdom. I found out that web.microdom is part of twisted-python, I checked if it's installed and found it at /usr/lib/python2.4/site-packages/twisted. Here's the complete output of freevo: After installing it, you should run 'freevo cache --rebuild' WARNING: PyLirc not found, lirc remote control disabled! failed to load plugin tv.scheduled_recordings start 'freevo plugins -l' to get a list of plugins Traceback (most recent call last): File /home/yilmaz/Downloads/freevo-1.5.4/src/plugin.py, line 570, in __load_plugin__ exec('import %s' % module) File string, line 1, in ? File /home/yilmaz/Downloads/freevo-1.5.4/src/tv/plugins/scheduled_recordings.py, line 46, in ? import tv.record_client as record_client File /home/yilmaz/Downloads/freevo-1.5.4/src/tv/record_client.py, line 52, in ? from util.marmalade import jellyToXML, unjellyFromXML File /home/yilmaz/Downloads/freevo-1.5.4/src/util/marmalade.py, line 429, in ? from twisted.web.microdom import Text, Element, Node, Document, parse, parseString, CDATASection, NodeList ImportError: No module named web.microdom failed to load plugin tv.view_favorites start 'freevo plugins -l' to get a list of plugins Traceback (most recent call last): File /home/yilmaz/Downloads/freevo- 1.5.4/src/plugin.py, line 570, in __load_plugin__ exec('import %s' % module) File string, line 1, in ? File /home/yilmaz/Downloads/freevo-1.5.4/src/tv/plugins/view_favorites.py, line 45, in ? import tv.record_client as record_client File /home/yilmaz/Downloads/freevo-1.5.4/src/tv/record_client.py, line 52, in ? from util.marmalade import jellyToXML, unjellyFromXML File /home/yilmaz/Downloads/freevo- 1.5.4/src/util/marmalade.py, line 429, in ? from twisted.web.microdom import Text, Element, Node, Document, parse, parseString, CDATASection, NodeList ImportError: No module named web.microdom failed to load plugin tv.manual_record start 'freevo plugins -l' to get a list of plugins Traceback (most recent call last): File /home/yilmaz/Downloads/freevo-1.5.4/src/plugin.py, line 570, in __load_plugin__ exec('import %s' % module) File string, line 1, in ? File /home/yilmaz/Downloads/freevo-1.5.4/src/tv/plugins/manual_record.py, line 50, in ? import tv.record_client as record_client File /home/yilmaz/Downloads/freevo- 1.5.4/src/tv/record_client.py, line 52, in ? from util.marmalade import jellyToXML, unjellyFromXML File /home/yilmaz/Downloads/freevo-1.5.4/src/util/marmalade.py, line 429, in ? from twisted.web.microdom import Text, Element, Node, Document, parse, parseString, CDATASection, NodeList ImportError: No module named web.microdom Crash! Traceback (most recent call last): File /home/yilmaz/Downloads/freevo- 1.5.4/src/main.py, line 488, in ? MainMenu().getcmd() File /home/yilmaz/Downloads/freevo-1.5.4/src/main.py, line 190, in getcmd items += p.items(self) File /home/yilmaz/Downloads/freevo- 1.5.4/src/tv/__init__.py, line 48, in items import tvmenu File /home/yilmaz/Downloads/freevo-1.5.4/src/tv/tvmenu.py, line 64, in ? from tv.tvguide import TVGuide File /home/yilmaz/Downloads/freevo- 1.5.4/src/tv/tvguide.py, line 72, in ? from program_display import ProgramItem File /home/yilmaz/Downloads/freevo-1.5.4/src/tv/program_display.py, line 58, in ? import tv.record_client as record_client File /home/yilmaz/Downloads/freevo-1.5.4/src/tv/record_client.py, line 52, in ? from util.marmalade import jellyToXML, unjellyFromXML File /home/yilmaz/Downloads/freevo- 1.5.4/src/util/marmalade.py, line 429, in ? from twisted.web.microdom import Text, Element, Node, Document, parse, parseString, CDATASection, NodeList ImportError: No module named web.microdom Has anyone experienced a similar problem? Can anyone help me? Thanks in advance. Regards, Mustafa Have you installed the Twisted package and TwistedWeb? TwistedWeb is now contained in Twisted-2.4.0. Duncan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] (Help weird happenings): FIX for tv_grab issue...
Flynn42 wrote: For Norm or anybody else with the same problem... Yesterday I started having the same tv_grab_na_dd problem you described. I was only getting listings up to the current hour. I started hacking away and found that the --days parameter in tv_grab_na_dd was only fetching up to about 12 hours ahead of the current time. When I used the --offset parameter and set it to the number of days ahead I wanted to fetch listings it worked. To fix the problem from within Freevo I opened my local_config.py file and altered the value for the XMLTV_GRABBER parameter. It use to say this XMLTV_GRABBER = '/usr/bin/tv_grab_na_dd' ...it now says this XMLTV_GRABBER = '/usr/bin/tv_grab_na_dd --offset 12 ' *NOTE: there is a space after the --offset 12* I simply added the --offset parameter into the call to the tv_grab_na_dd program. I have a feeling the error is coming from the the zap2it service. Maybe they changed the listing format around. Anyway...this fix worked for me. I hope it will work for you. Todd :-) On the subject of XMLTV, I've noticed a small problem with changing from one grabber to another, for example I used to use tv_grab_ch but this got blocked, then I switched to tv_grab_de_tvtoday and finality to tv_grab_ch_bluewin, and the same favorite with a different case eg Waking the Dead or Waking The Dead are treated as different programs. The attached patch fixes this problem. Another problem with tv_grab_ch_bluewin is that it times out quite often, so I have written the build-xml script to get the channels one at a time. (This script can be improved, I've ## the channels that I don't want) Duncan diff -Naur freevo-1.5.4.orig/src/helpers/recordserver.py freevo-1.5.4/src/helpers/recordserver.py --- freevo-1.5.4.orig/src/helpers/recordserver.py 2005-10-16 11:18:50.0 +0200 +++ freevo-1.5.4/src/helpers/recordserver.py2006-08-09 18:42:30.0 +0200 @@ -622,7 +622,7 @@ for fav in favs.values(): -if prog.title == fav.title: +if prog.title.lower() == fav.title.lower(): if fav.channel == tv_util.get_chan_displayname(prog.channel_id) \ or fav.channel == 'ANY': if Unicode(fav.dow) == Unicode(dow) or Unicode(fav.dow) == u'ANY': #! /bin/bash config=${1:-tv_grab_ch_bluewin.conf} run=${2:-s} out=${3:-o.xml} process () { ${run} echo #!/bin/bash ${run} echo if [ -d output ]; then ${run} echo rm -r output ${run} echo fi ${run} echo mkdir output ${run} echo failed ${run} echo succeeded ${run} echo ${out} ${run} echo ${run} while read channel num name; do if [ $channel != ##channel ]; then fn=$(echo $name | sed 's/[#. ]//g') echo $name #echo $channel $num $name $fn.conf echo echo '$channel $num $name' ${run} echo echo '$channel $num $name' config ${run} echo if tv_grab_ch_bluewin --config-file config --output output.xml --days 7; then ${run} echo echo '$channel $num $name' succeeded ${run} echo cat output.xml ${out} ${run} echo mv output.xml output/${fn} ${run} echo else ${run} echo echo '$channel $num $name' failed ${run} echo fi ${run} echo rm -f config ${run} #echo ${run} fi done echo sed -i '/\/tv/,/tv /d' ${out} ${run} echo echo '/tv' ${out} ${run} } process ${config} chmod +x ${run} exit - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Patch for encoding server error 'module' object has no attribute 'disc'
Sorry for cross posting but I figured this may be of use to people on the users list too. Hi, the copy of the encodingserver on the addons page had a bug importing ifoparser from mmpython. Here's a patch to fix it. diff -Naur /usr/lib/python2.4/site-packages/freevo/helpers/encodingcore.py /usr/lib/python2.4/site-packages/freevo/helpers/encodingcore.py.orig --- /usr/lib/python2.4/site-packages/freevo/helpers/encodingcore.py 2006-08-11 20:32:56.0 +0100 +++ /usr/lib/python2.4/site-packages/freevo/helpers/encodingcore.py.orig 2005-07-24 17:19:23.0 +0100 @@ -34,7 +34,6 @@ import sys, os, re, popen2 #, ConfigParser, copy #import config # QuickRip global configuration. import mmpython -from mmpython.disc import ifoparser from copy import copy from string import split, join - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users