John Molohan wrote:
Stafford Goodsell wrote:
Duncan Webb wrote:
Stafford Goodsell wrote:
Evan Hisey wrote:
Greetings,

Can someone enlighten me on this? (most versions should be obvious from
the text) This is the 1st time I've seriously played with anything using
python, so its probably something dumb.

I have managed to get 1.7.6.1 (from debian packages at
http://debian.geole.info/) working through alot of hacks and horrible
things, so I'm trying to get 1.8.2 to run cleanly from the unpacked
tarball, or at the very least, installed its own directory.

I eventually got to:

[EMAIL PROTECTED] freevo-1.8.2]$ \
PYTHONPATH=/usr/share/python-support/beautifulsoup/:/usr/share/python-support/python-elementtree/:/usr/lib/python-support/python-lirc/python2.4
 ./freevo
trying "/var/lib/freevo"...
[EMAIL PROTECTED] freevo-1.8.2]$

Here's the last bits of an strace -f if it helps:

28424 munmap(0xb73ef000, 8192)          = 0
28424 stat64("/opt/freevo/freevo-1.8.2/src/event", 0xbfe1fbdc) = -1
ENOENT (No such file or directory)
28424 open("/opt/freevo/freevo-1.8.2/src/event.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
28424 open("/opt/freevo/freevo-1.8.2/src/eventmodule.so",
O_RDONLY|O_LARGEFILE)
= -1 ENOENT (No such file or directory)
28424 open("/opt/freevo/freevo-1.8.2/src/event.py",
O_RDONLY|O_LARGEFILE) = 8
28424 fstat64(8, {st_mode=S_IFREG|0644, st_size=19930, ...}) = 0
28424 open("/opt/freevo/freevo-1.8.2/src/event.pyc",
O_RDONLY|O_LARGEFILE) = 9
28424 fstat64(9, {st_mode=S_IFREG|0664, st_size=12602, ...}) = 0
28424 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0)
= 0xb73ef000
28424 read(9,
"[EMAIL PROTECTED]"..., 8192) = 8192
28424 fstat64(9, {st_mode=S_IFREG|0664, st_size=12602, ...}) = 0
28424 read(9, "_GRID3t\20\0\0\0IMAGE_ZOOM_GRID4t\20\0\0\0"..., 8192) = 4410
28424 read(9, "", 8192)                 = 0
28424 close(9)                          = 0
...
lots of KILL and INT etc. signals being sent after here, so it looks
like its already decided to shutdown.
How did you install freevo? Have you got all the deps installed for
it? It looks like a broken install or several missing critical parts.

I am running it straight from a unpacked tarball.

Hmm, well the wiki has suddenly changed - it used to say you could do this in the install instructions (and was the reason I chose freevo over mythtv)...

Anyway, I did take a shot at installing it once (via `python2.4 ./setup.py --prefix /opt/freevo`). I think it did pretty much the same thing though - the python/zope crash thing, not the buggy silent exit thing.
strace output is rarely helpful; much better is the log with debug enabled. This is done by adding to local_conf.py:
DEBUG = 1
LOGGING = logging.DEBUG

More than likely there is a configuration problem and the easiest way to determine this is:
# freevo prompt
Python 2.4.4 (#1, Feb 11 2007, 17:31:10)
[GCC 3.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import config
 >>> config.FREEVO_LOGDIR
'/var/log/freevo'
 >>>

If there is an error it will show during the import. There will be a log file created called /var/log/freevo/prompt-0.log (actually the name will vary depending on your set-up.

Will you report back what you see?

Ah hah! Good thinking...

[EMAIL PROTECTED] freevo]$ PYTHONPATH=/usr/share/python-support/beautifulsoup/:/usr/share/python-support/python-elementtree/:/usr/lib/python-support/python-lirc/python2.4 freevo-1.8.2/freevo prompt
Python 2.4.4 (#2, Apr 15 2008, 23:43:20)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import config
trying "/var/lib/freevo"...
 >>> config.FREEVO_LOGDIR
 >>>
[EMAIL PROTECTED] freevo]$

Ok, so you were right, Duncan, and it hasnt loaded the local_conf.py I was editing (/etc/freevo/local_conf.py).

I noticed the version number was wrong in /var/log/freevo/prompt-<myuid>.log, so I guess it was loading parts of the old systemwide installation. I removed that, and tried again. This means I'm now stuck with using the newer kaa libraries that crash it, although the prompt command still works ok. It did the exact same thing, and here's what was in it the log the 2nd time:

================================================================================
Freevo 1.8.2 r10954 started at Fri Sep 12 13:29:20 2008
--------------------------------------------------------------------------------
2008-09-12 13:29:20,552 INFO config.py (522): LOGDIR: /var/log /var/log/freevo 2008-09-12 13:29:20,552 INFO config.py (523): STATICDIR: /var/lib /home/surge/.freevo/static 2008-09-12 13:29:20,553 INFO config.py (524): CACHEDIR: /var/cache /var/cache/freevo 2008-09-12 13:29:20,556 INFO config.py (543): Loading freevo configuration file "/home/surge/.freevo/freevo.conf"
2008-09-12 13:29:20,964 INFO     new process watcher instance

Not amazingly helpful. Any more clues?
That looks like a known bug in a version of kaa-base. I think this may have been fixed recently, can you update to the latest svn and try it again? If that doesn't work you'll have to downgrade to the last released version of kaa.

Make sure you do the following to clear out the old installation files (adjust as your paths may require)
rm -rf /kaa/base/build
rm -rf /usr/lib/python2.5/site-packages/kaa*
python setup.py clean
python setup.py isntall


It is possible that this is kaa related but it could be an install problem or a config problem. The log looks funny, I would expect it to look like this (timestamps removed so that it is a bit easier to read:

# freevo prompt
Python 2.4.4 (#1, Feb 11 2007, 17:31:10)
[GCC 3.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import config
>>>
# cat /var/log/freevo/prompt-0.log
================================================================================
Freevo 1.8.3-svn r10979 started at Fri Sep 12 13:28:59 2008
--------------------------------------------------------------------------------
INFO     config.py (523): LOGDIR: /var/log /var/log/freevo
INFO     config.py (524): STATICDIR: /var/lib /var/lib/freevo
INFO     config.py (525): CACHEDIR: /var/cache /var/cache/freevo
INFO config.py (544): Loading freevo configuration file "/etc/freevo/freevo.conf"
INFO     new process watcher instance
INFO config.py (633): Loading local configuration file "/etc/freevo/local_conf.py"
INFO     config.py (1031): overlaydir: /var/cache/freevo/vfs
DEBUG    config.py (1068): 'cdparanoia': '/usr/bin/cdparanoia'
DEBUG    config.py (1068): 'height': 600

Are you sure that you do not have a local_conf.py in /home/surge/.freevo/? This is often a problem.

If there is a tool to re-indent python code, that comes with Python-2.5 and works fine with Python-2.4, If there are syntax errors in the local_conf.py this will show them up. You simply type:

# svn export \
svn://svn.freevo.org/freevo/branches/rel-1/freevo/contrib/developer/reindent.py
# python reindent.py /etc/freevo/local_conf.py

Another common problem is as John says old installs causing problems, python is reading an old library module and this causes strange effects. To check where freevo is getting its python modules you can use:

# freevo prompt
Python 2.4.4 (#1, Feb 11 2007, 17:31:10)
[GCC 3.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python2.4/site-packages/freevo', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/PIL', '/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode']
>>>

The directories to clean up are in the above case:
/usr/lib/python2.4/site-packages/freevo
/usr/share/freevo
/usr/share/doc/freevo

There is a locking problem in 1.8.2 and earlier releases that causes freevo to lock-up when printing WARNING messages. Attached is a patch that fixes this. If this is the problem then I'll release 1.8.3.

Duncan
--- freevo-1.8.2/src/config.py.orig	2008-07-19 23:01:27.000000000 +0200
+++ freevo-1.8.2/src/config.py	2008-09-12 13:42:10.000000000 +0200
@@ -35,6 +35,7 @@
 """
 
 import sys, os, time, re, string, pwd, thread
+from threading import RLock
 import setup_freevo
 import traceback
 import __builtin__
@@ -399,7 +400,7 @@
 #
 # Redirect stdout and stderr to stdout and /tmp/freevo.log
 #
-lock = thread.allocate_lock()
+lock = RLock()
 #if not HELPER:
 sys.stdout = Logger(sys.argv[0] + ':stdout')
 sys.stderr = Logger(sys.argv[0] + ':stderr')
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to