Re: [Freevo-users] Current rel-1 svn and kaa svn - freevo won't start
Adam Charrett wrote: > On Sun, April 26, 2009 1:33 pm, Duncan Webb wrote: > >> Adam Charrett wrote: >> >>> On Fri, 2009-04-24 at 21:45 +0100, John Molohan wrote: >>> Duncan Webb wrote: > Adam Charrett wrote: > > >> On Thu, April 23, 2009 10:14 pm, John Molohan wrote: >> >> >>> John Molohan wrote: >>> > > Out of interest without reading through the code were there some further steps that could have been taken running freevo prompt to narrow down the problem? >>> Not really the way I debugged it was that I had a hunch that the problem >>> was in config as exceptions in that module never seem to generate a >>> stacktrace when starting freevo. I just put lots of print statements in >>> until I narrowed the problem down to a few lines. >>> >> I used a slightly different way, using ./freevo --debug generates a >> freevo-pdb.sh that you can then run any will leave you in the main module. >> >> # cat freevo-pdb.sh >> #!/bin/bash >> export RUNAPP= >> export FREEVO_SCRIPT=/sources/svn/freevo-1/rel-1/freevo/freevo >> export FREEVO_PYTHON=/sources/svn/freevo-1/rel-1/freevo/src >> export FREEVO_LOCALE=/sources/svn/freevo-1/rel-1/freevo/i18n >> export FREEVO_SHARE=/sources/svn/freevo-1/rel-1/freevo/share >> export FREEVO_CONTRIB=/sources/svn/freevo-1/rel-1/freevo/contrib >> export FREEVO_CONFIG=/sources/svn/freevo-1/rel-1/freevo/freevo_config.py >> export FREEVO_HELPERS=/sources/svn/freevo-1/rel-1/freevo/src/helpers >> export PYTHONPATH=/sources/svn/freevo-1/rel-1/freevo/src >> export >> PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/root/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/sbin:/usr/sbin >> python -m pdb /sources/svn/freevo-1/rel-1/freevo/src/main.py --debug >> >> However I use the wing ide which is easier to use and then break and >> step though the code. >> >> Duncan >> >> > > Ahh that is useful to know, I was trying to debug it at work over lunch. > At work I've got Netbeans with Python support running in Windows and a > Ubuntu image running in VirtualBox for Freevo. One thing I haven't tried > yet is using a debugger with python, I shall give it a go. > > Cheers > > Adam > > Yep, good to know. Thanks to both of you for the replies. John -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Current rel-1 svn and kaa svn - freevo won't start
On Sun, April 26, 2009 1:33 pm, Duncan Webb wrote: > Adam Charrett wrote: >> On Fri, 2009-04-24 at 21:45 +0100, John Molohan wrote: >>> Duncan Webb wrote: Adam Charrett wrote: > On Thu, April 23, 2009 10:14 pm, John Molohan wrote: > >> John Molohan wrote: >>> Out of interest without reading through the code were there some >>> further >>> steps that could have been taken running freevo prompt to narrow down >>> the problem? >> >> Not really the way I debugged it was that I had a hunch that the problem >> was in config as exceptions in that module never seem to generate a >> stacktrace when starting freevo. I just put lots of print statements in >> until I narrowed the problem down to a few lines. > > I used a slightly different way, using ./freevo --debug generates a > freevo-pdb.sh that you can then run any will leave you in the main module. > > # cat freevo-pdb.sh > #!/bin/bash > export RUNAPP= > export FREEVO_SCRIPT=/sources/svn/freevo-1/rel-1/freevo/freevo > export FREEVO_PYTHON=/sources/svn/freevo-1/rel-1/freevo/src > export FREEVO_LOCALE=/sources/svn/freevo-1/rel-1/freevo/i18n > export FREEVO_SHARE=/sources/svn/freevo-1/rel-1/freevo/share > export FREEVO_CONTRIB=/sources/svn/freevo-1/rel-1/freevo/contrib > export FREEVO_CONFIG=/sources/svn/freevo-1/rel-1/freevo/freevo_config.py > export FREEVO_HELPERS=/sources/svn/freevo-1/rel-1/freevo/src/helpers > export PYTHONPATH=/sources/svn/freevo-1/rel-1/freevo/src > export > PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/root/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/sbin:/usr/sbin > python -m pdb /sources/svn/freevo-1/rel-1/freevo/src/main.py --debug > > However I use the wing ide which is easier to use and then break and > step though the code. > > Duncan > Ahh that is useful to know, I was trying to debug it at work over lunch. At work I've got Netbeans with Python support running in Windows and a Ubuntu image running in VirtualBox for Freevo. One thing I haven't tried yet is using a debugger with python, I shall give it a go. Cheers Adam -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Current rel-1 svn and kaa svn - freevo won't start
Adam Charrett wrote: > On Fri, 2009-04-24 at 21:45 +0100, John Molohan wrote: >> Duncan Webb wrote: >>> Adam Charrett wrote: >>> On Thu, April 23, 2009 10:14 pm, John Molohan wrote: > John Molohan wrote: > >> Hi, >> >> I'm testing tonight's svn of rel-1. I deleted my build and >> /usr/lib/site-packages/ directories, did a svn update on both kaa and >> freevo, built and installed kaa with no errors reported then did the >> same with freevo but running freevo all I get in the log is: >> >> [r...@localhost john]# tail -f /var/log/freevo/main-0.log >> >> Looks like Duncan has been updating setup_freevo.py, but forgot to update config.py as well :-) >>> Yes that gotme, hadn't expected config to call setup_freevo. >>> >>> Debugging through the code shows that there is some more work needed... >>> config sets the same defaults as setup_freevo. >>> >> Out of interest without reading through the code were there some further >> steps that could have been taken running freevo prompt to narrow down >> the problem? > > Not really the way I debugged it was that I had a hunch that the problem > was in config as exceptions in that module never seem to generate a > stacktrace when starting freevo. I just put lots of print statements in > until I narrowed the problem down to a few lines. I used a slightly different way, using ./freevo --debug generates a freevo-pdb.sh that you can then run any will leave you in the main module. # cat freevo-pdb.sh #!/bin/bash export RUNAPP= export FREEVO_SCRIPT=/sources/svn/freevo-1/rel-1/freevo/freevo export FREEVO_PYTHON=/sources/svn/freevo-1/rel-1/freevo/src export FREEVO_LOCALE=/sources/svn/freevo-1/rel-1/freevo/i18n export FREEVO_SHARE=/sources/svn/freevo-1/rel-1/freevo/share export FREEVO_CONTRIB=/sources/svn/freevo-1/rel-1/freevo/contrib export FREEVO_CONFIG=/sources/svn/freevo-1/rel-1/freevo/freevo_config.py export FREEVO_HELPERS=/sources/svn/freevo-1/rel-1/freevo/src/helpers export PYTHONPATH=/sources/svn/freevo-1/rel-1/freevo/src export PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/root/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/sbin:/usr/sbin python -m pdb /sources/svn/freevo-1/rel-1/freevo/src/main.py --debug However I use the wing ide which is easier to use and then break and step though the code. Duncan -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Current rel-1 svn and kaa svn - freevo won't start
On Fri, 2009-04-24 at 21:45 +0100, John Molohan wrote: > Duncan Webb wrote: > > Adam Charrett wrote: > > > >> On Thu, April 23, 2009 10:14 pm, John Molohan wrote: > >> > >>> John Molohan wrote: > >>> > Hi, > > I'm testing tonight's svn of rel-1. I deleted my build and > /usr/lib/site-packages/ directories, did a svn update on both kaa and > freevo, built and installed kaa with no errors reported then did the > same with freevo but running freevo all I get in the log is: > > [r...@localhost john]# tail -f /var/log/freevo/main-0.log > > > >> Looks like Duncan has been updating setup_freevo.py, but forgot to update > >> config.py as well :-) > >> > > > > Yes that gotme, hadn't expected config to call setup_freevo. > > > > Debugging through the code shows that there is some more work needed... > > config sets the same defaults as setup_freevo. > > > Out of interest without reading through the code were there some further > steps that could have been taken running freevo prompt to narrow down > the problem? Not really the way I debugged it was that I had a hunch that the problem was in config as exceptions in that module never seem to generate a stacktrace when starting freevo. I just put lots of print statements in until I narrowed the problem down to a few lines. > > > >> There are 2 bugs the first is the config.py references setup_freevo.Struct > >> which has become FreevoConf and the second is config.py calls > >> check_program with a keyword that is no longer accepted (verbose=0). > >> > > > > This is now fixed, sorry for that. > > > > Duncan > > > No problem at all, comes with the territory :) Fixed in 24 hours, only > with open source. > > John > > cheers Adam -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Current rel-1 svn and kaa svn - freevo won't start
Duncan Webb wrote: > Adam Charrett wrote: > >> On Thu, April 23, 2009 10:14 pm, John Molohan wrote: >> >>> John Molohan wrote: >>> Hi, I'm testing tonight's svn of rel-1. I deleted my build and /usr/lib/site-packages/ directories, did a svn update on both kaa and freevo, built and installed kaa with no errors reported then did the same with freevo but running freevo all I get in the log is: [r...@localhost john]# tail -f /var/log/freevo/main-0.log >> Looks like Duncan has been updating setup_freevo.py, but forgot to update >> config.py as well :-) >> > > Yes that gotme, hadn't expected config to call setup_freevo. > > Debugging through the code shows that there is some more work needed... > config sets the same defaults as setup_freevo. > Out of interest without reading through the code were there some further steps that could have been taken running freevo prompt to narrow down the problem? > >> There are 2 bugs the first is the config.py references setup_freevo.Struct >> which has become FreevoConf and the second is config.py calls >> check_program with a keyword that is no longer accepted (verbose=0). >> > > This is now fixed, sorry for that. > > Duncan > No problem at all, comes with the territory :) Fixed in 24 hours, only with open source. John -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Current rel-1 svn and kaa svn - freevo won't start
Adam Charrett wrote: > On Thu, April 23, 2009 10:14 pm, John Molohan wrote: >> John Molohan wrote: >>> Hi, >>> >>> I'm testing tonight's svn of rel-1. I deleted my build and >>> /usr/lib/site-packages/ directories, did a svn update on both kaa and >>> freevo, built and installed kaa with no errors reported then did the >>> same with freevo but running freevo all I get in the log is: >>> >>> [r...@localhost john]# tail -f /var/log/freevo/main-0.log >>> > > Looks like Duncan has been updating setup_freevo.py, but forgot to update > config.py as well :-) Yes that gotme, hadn't expected config to call setup_freevo. Debugging through the code shows that there is some more work needed... config sets the same defaults as setup_freevo. > There are 2 bugs the first is the config.py references setup_freevo.Struct > which has become FreevoConf and the second is config.py calls > check_program with a keyword that is no longer accepted (verbose=0). This is now fixed, sorry for that. Duncan -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Current rel-1 svn and kaa svn - freevo won't start
On Thu, April 23, 2009 10:14 pm, John Molohan wrote: > John Molohan wrote: >> Hi, >> >> I'm testing tonight's svn of rel-1. I deleted my build and >> /usr/lib/site-packages/ directories, did a svn update on both kaa and >> freevo, built and installed kaa with no errors reported then did the >> same with freevo but running freevo all I get in the log is: >> >> [r...@localhost john]# tail -f /var/log/freevo/main-0.log >> Looks like Duncan has been updating setup_freevo.py, but forgot to update config.py as well :-) There are 2 bugs the first is the config.py references setup_freevo.Struct which has become FreevoConf and the second is config.py calls check_program with a keyword that is no longer accepted (verbose=0). Cheers Adam -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Current rel-1 svn and kaa svn - freevo won't start
John Molohan wrote: > Hi, > > I'm testing tonight's svn of rel-1. I deleted my build and > /usr/lib/site-packages/ directories, did a svn update on both kaa and > freevo, built and installed kaa with no errors reported then did the > same with freevo but running freevo all I get in the log is: > > [r...@localhost john]# tail -f /var/log/freevo/main-0.log > > > Freevo 1.8.4-svn r11427 started at Thu Apr 23 19:51:56 2009 > > > Freevo 1.8.4-svn r11427 started at Thu Apr 23 19:52:02 2009 > > > > Running freevo --debug give this: > > [r...@localhost john]# freevo --debug > opts={'profile': False, 'fullscreen': False, 'daemon': False, 'dry_run': > False, 'trace': [], 'doc': False, 'stop': False, 'execute': None, > 'debug': 1, 'server_layout': None} > args=[] > opt_debug=['--debug'] > opt_trace=[] > opt_daemon=[] > opt_server_layout=[] > RUNAPP='' > FREEVO_SCRIPT='/usr/bin/freevo' > FREEVO_PYTHON='/usr/lib/python2.5/site-packages/freevo' > FREEVO_LOCALE='/usr/share/locale' > FREEVO_SHARE='/usr/share/freevo' > FREEVO_CONTRIB='/usr/share/freevo/contrib' > FREEVO_CONFIG='/usr/share/freevo/freevo_config.py' > FREEVO_HELPERS='/usr/lib/python2.5/site-packages/freevo/helpers' > PYTHONPATH='/usr/lib/python2.5/site-packages/freevo' > PATH='/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/opt/real/RealPlayer:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/sbin:/usr/sbin' > USER='john' > HOME='/root' > arg=None > args=[] > name='freevo' > getpid(name='freevo', args=['python', > '/usr/lib/python2.5/site-packages/freevo/main.py', '--debug', '--debug']) > 2:fname='/var/run/freevo-0.pid' pid=0 > start(name='freevo', arg=['python', > '/usr/lib/python2.5/site-packages/freevo/main.py', '--debug', > '--debug'], daemon=0, store=1) > os.execvp('python', ['python', > '/usr/lib/python2.5/site-packages/freevo/main.py', '--debug', '--debug']) > arg=['python', '/usr/lib/python2.5/site-packages/freevo/main.py', > '--debug', '--debug'] > [r...@localhost john]# > > Which doesn't shed any light but I don't have any other freevo setups to > verify against. Playing with svn on the only production machine is > always a risk I guess :) I'll try test some more but if anyone can shed > some light please do. > > John > > Not really sure where to debug this. I'm trying with freevo promt and ran on a whim: import config from freevo import main And in /var/log/freevo/prompt-0.log I get some output: Freevo 1.8.4-svn r11427 started at Thu Apr 23 21:33:18 2009 2009-04-23 21:33:28,807 INFO new process watcher instance 2009-04-23 21:33:28,876 DEBUGaudio/mpeg registered 2009-04-23 21:33:28,877 DEBUGaudio/ac3 registered 2009-04-23 21:33:28,877 DEBUGapplication/adts registered 2009-04-23 21:33:28,878 DEBUGaudio/m4a registered 2009-04-23 21:33:28,879 DEBUGapplication/ogg registered 2009-04-23 21:33:28,880 DEBUGapplication/pcm registered 2009-04-23 21:33:28,881 DEBUGvideo/asf registered 2009-04-23 21:33:28,882 DEBUGvideo/flv registered 2009-04-23 21:33:28,882 DEBUGapplication/mkv registered 2009-04-23 21:33:28,883 DEBUGvideo/quicktime registered 2009-04-23 21:33:28,884 DEBUGvideo/mpeg registered 2009-04-23 21:33:28,885 DEBUGapplication/ogg registered 2009-04-23 21:33:28,886 DEBUGvideo/real registered 2009-04-23 21:33:28,887 DEBUGvideo/avi registered 2009-04-23 21:33:28,887 DEBUGvideo/vcd registered 2009-04-23 21:33:28,888 DEBUGaudio/cd registered 2009-04-23 21:33:28,889 DEBUGvideo/dvd registered 2009-04-23 21:33:28,890 DEBUGvideo/dvd registered 2009-04-23 21:33:28,891 DEBUGvideo/dvd registered 2009-04-23 21:33:28,891 DEBUGvideo/vcd registered 2009-04-23 21:33:28,892 DEBUGcd/unknown registered 2009-04-23 21:33:28,893 DEBUGimage/bmp registered 2009-04-23 21:33:28,894 DEBUGimage/gif registered 2009-04-23 21:33:28,895 DEBUGimage/jpeg registered 2009-04-23 21:33:28,895 DEBUGimage/png registered 2009-04-23 21:33:28,896 DEBUGimage/tiff registered 2009-04-23 21:33:28,897 DEBUGgames/gameboy registered 2009-04-23 21:33:28,898 DEBUGgames/snes registered 2009-04-23 21:33:28,899 DEBUGdirectory registered 2009-04-23 21:33:28,899 DEBUGtext/xml registered 2009-04-23 21:33:28,900 DEBUGtext/plain registered 2009-04-23 21:33:28,901 DEBUGapplication/flac registered Freevo 1.8
[Freevo-users] Current rel-1 svn and kaa svn - freevo won't start
Hi, I'm testing tonight's svn of rel-1. I deleted my build and /usr/lib/site-packages/ directories, did a svn update on both kaa and freevo, built and installed kaa with no errors reported then did the same with freevo but running freevo all I get in the log is: [r...@localhost john]# tail -f /var/log/freevo/main-0.log Freevo 1.8.4-svn r11427 started at Thu Apr 23 19:51:56 2009 Freevo 1.8.4-svn r11427 started at Thu Apr 23 19:52:02 2009 Running freevo --debug give this: [r...@localhost john]# freevo --debug opts={'profile': False, 'fullscreen': False, 'daemon': False, 'dry_run': False, 'trace': [], 'doc': False, 'stop': False, 'execute': None, 'debug': 1, 'server_layout': None} args=[] opt_debug=['--debug'] opt_trace=[] opt_daemon=[] opt_server_layout=[] RUNAPP='' FREEVO_SCRIPT='/usr/bin/freevo' FREEVO_PYTHON='/usr/lib/python2.5/site-packages/freevo' FREEVO_LOCALE='/usr/share/locale' FREEVO_SHARE='/usr/share/freevo' FREEVO_CONTRIB='/usr/share/freevo/contrib' FREEVO_CONFIG='/usr/share/freevo/freevo_config.py' FREEVO_HELPERS='/usr/lib/python2.5/site-packages/freevo/helpers' PYTHONPATH='/usr/lib/python2.5/site-packages/freevo' PATH='/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/opt/real/RealPlayer:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/sbin:/usr/sbin' USER='john' HOME='/root' arg=None args=[] name='freevo' getpid(name='freevo', args=['python', '/usr/lib/python2.5/site-packages/freevo/main.py', '--debug', '--debug']) 2:fname='/var/run/freevo-0.pid' pid=0 start(name='freevo', arg=['python', '/usr/lib/python2.5/site-packages/freevo/main.py', '--debug', '--debug'], daemon=0, store=1) os.execvp('python', ['python', '/usr/lib/python2.5/site-packages/freevo/main.py', '--debug', '--debug']) arg=['python', '/usr/lib/python2.5/site-packages/freevo/main.py', '--debug', '--debug'] [r...@localhost john]# Which doesn't shed any light but I don't have any other freevo setups to verify against. Playing with svn on the only production machine is always a risk I guess :) I'll try test some more but if anyone can shed some light please do. John -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users