[mythtv-users] Mythnetvsion python scripts configuration woes

Jonathan Martens jonathan at snetram.nl
Sun Mar 28 19:34:19 UTC 2010


Hi all,

Today I installed 0.23rc1 (via ATrpms on my CentOS 5 combined FE/BE 
machine) and tried to get Mythnetvision to use th python scripts, but 
they are not seen in the frontend interface only the TWiT.tv perl script 
is available.

I tried to run the scripts manually from the CLI to no avail. I keep 
getting errors like this, for every python script I try:

[root at mythtv scripts]# ./youtube.py -v

The subdirectory "nv_python_libs/youtube" containing the modules 
youtube_api.py (v0.2.0 or greater),
They should have been included with the distribution of youtube.py.
Error('OutStreamEncoder' object is not callable)
[root at mythtv scripts]#

I use python 2.4 by default:

[root at mythtv scripts]# which python
/usr/bin/python
[root at mythtv scripts]# /usr/bin/python -V
Python 2.4.3
[root at mythtv scripts]#

I checked the required libs as detailed by the output are available and 
they seem to be installed ...

[root at mythtv scripts]# ls -la nv_python_libs/youtube/
total 96
drwxr-xr-x 2 root root  4096 Mar 28 12:23 .
drwxr-xr-x 8 root root  4096 Mar 28 21:16 ..
-rw-r--r-- 1 root root     0 Jan 17 20:24 __init__.py
-rw-r--r-- 1 root root   161 Mar 28 12:23 __init__.pyc
-rw-r--r-- 1 root root 43578 Mar 27 12:27 youtube_api.py
-rw-r--r-- 1 root root 31063 Mar 28 12:23 youtube_api.pyc
-rw-r--r-- 1 root root  1814 Mar 27 12:27 youtube_exceptions.py
-rw-r--r-- 1 root root  3882 Mar 28 12:09 youtube_exceptions.pyc
[root at mythtv scripts]#

... and of the required minimal version

[root at mythtv scripts]# grep version nv_python_libs/youtube/youtube_api.py
__version__="v0.2.2"
# 0.2.1 New python bindings conversion
[root at mythtv scripts]#

I also tried to install a newer release of python to see if that might 
help me, but to no avail. First it complained on the MythTV python 
bindings not being installed (they are from ATrpms and installed in the 
2.4 tree), but after symlinking them into the 2.6 tree I again get the 
same errors:

[root at mythtv scripts]# /usr/bin/python2.6 -V
Python 2.6
[root at mythtv scripts]# /usr/bin/python2.6 ./youtube.py -v

The subdirectory "nv_python_libs/youtube" containing the modules 
youtube_api.py (v0.2.0 or greater),
They should have been included with the distribution of youtube.py.
Error('OutStreamEncoder' object is not callable)
[root at mythtv scripts]#

I am not sure what I am missing or what I am doing wrong, so perhaps any 
of you, perhaps more python knowledgeable people, might be able to bump 
me up to speed.

Kind regards,

Jonathan


More information about the mythtv-users mailing list