Jody Gugelhupf wrote: > hi again =) > >> No, you must have a site-packages/freevo directory somewhere. >> >> try either: >> locate site-packages >> or >> find / -type d -name site-packages > > tried both and yes i have 'site-packages' directories, but no > 'site-packages/freevo' ones, no > where except in the new 'freevo-test' > > >> Can you type a ./bin/freevo prompt and get the python prompt? > > yes i do get it: > > Python 2.5.1 (r251:54863, May 2 2007, 16:56:35) > [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 > > >> Try doing a svn update in the freevo source directory, when you run >> freevo you should now get a main.X.log.log file and set in local_conf.py: >> LOGGING = logging.DEBUG >> In the main.X.log.log, you will now see the svn revision number and >> timestamps, which will help when debugging problems. > > after svn updating freevo and adding to the 'local_conf.py' LOGGING = > logging.DEBUG > i get this when i wanna start it now: > > ~/freevo-test$ ./bin/freevo > Traceback (most recent call last): > File "/var/lib/python-support/python2.5/freevo/main.py", line 57, in > <module> > import config > File "/usr/share/python-support/python-freevo/freevo/config.py", line 456, > in <module> > execfile(os.environ['FREEVO_CONFIG'], globals(), locals()) > File "/home/funky1/freevo-test/share/freevo/freevo_config.py", line 1968, > in <module> > LOGGING = logging.WARNING > NameError: name 'logging' is not defined
At last we are getting somewhere, it looks like Ubuntu uses /var/lib/python-support/python2.5/freevo for the freevo sources so move this directory out on the way and the other just to be safe. mv /var/lib/python-support/python2.5/freevo \ /var/lib/python-support/python2.5/freevo.backup mv /usr/share/python-support/python-freevo/freevo \ /usr/share/python-support/python-freevo/freevo.backup If your PYTHONPATH is correct you should be able to run the previous instructions. ./bin/freevo prompt etc. If the PYTHONPATH is incorrect then you will get an error message. Duncan > > >> Another way to test this out is by doing the following: >> # freevo prompt >> import www.web_types >> c=www.web_types.HTMLResource() >> c.printHeader(title='One') >> print c.res >> ^D >> >> When you print res you should see: >> ... >> <li><a href="search.rpy" title="Advanced Search Page">Search</a></li> >> <li id="current"><a href="help/" title="View Online Help and >> Documentation">Help</a></li> >> <li><a href="duncan.html" title="My sensor information">Sensors</a></li> >> </ul> >> </div> >> <!-- Main Content --> >> >> The line: >> <li><a href="duncan.html" title="My sensor information">Sensors</a></li> >> Shows that it is working. > > > I don't get that line I get the following: > > <li><a href="search.rpy" title="Advanced Search Page">Search</a></li> > <li id="current"><a href="help/" title="View Online Help and > Documentation">Help</a></li> > </ul> > </div> > <!-- Main Content --> > > > this is really weird got no clue anymore, maybe any other suggestions? > thx again > katie =) > > > > > > > >> Duncan >>> katie :) >>> >>> --- Duncan Webb <[EMAIL PROTECTED]> wrote: >>> >>>> Jody Gugelhupf wrote: >>>>>> The rest of the instructions are correct, You didn't see: Change the 2.X >>>>>> to the correct version of Python. >>>>> yes i saw it, but there is no >>>>> >>>>> /usr/lib/python2.5/site-packages/freevo >>>>> >>>>> or >>>>> >>>>> /usr/lib/python2.4/site-packages/freevo >>>> This only means that you have never installed freevo, it this is correct >>>> you can do a straight forward install. ie >>>> >>>> python setup.py install >>>> >>>> If you have installed freevo before then the freevo site-packages could >>>> be in /usr/lib32 /usr/lib64 if you're on a 64 bit system. >>>> >>>> Then you do not need to set the PYTHONPATH. >>>> >>>> Can you type a freevo prompt and get a python prompt? >>>> >>>>> like i said the only directory which has 'site-packages/freevo' includes >>>>> is in the new >> freevo >>>> test >>>>> directory: >>>>> >>>>> /home/jody/freevo-test/lib/python2.5/site-packages/freevo >>>>> >>>>> correct me if i'm wrong but that is not the same as: >>>>> >>>>> /usr/lib/python2.5/site-packages/freevo >>>>> >>>>> so what do you mean exactly? and thx again for the help and patience :) >>>>> katie >>>> If you still don't have any success, please empty the log files, and >>>> restart the web server and go to the index page. Then send the webserver >>>> and main logs and a copy of you local_conf.py >>>> >>>> Duncan >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Freevo-users mailing list >> Freevo-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/freevo-users >> > > > > Get news delivered with the All new Yahoo! Mail. Enjoy RSS feeds right > on your Mail page. Start today at http://mrd.mail.yahoo.com/try_beta?.intl=ca > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Freevo-users mailing list > Freevo-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freevo-users > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users