[mythtv] [mythtv-commits] mythtv commit: r23358 by wagnerrp

freedenizen freedenizen at gmail.com
Fri Jan 29 15:23:20 UTC 2010


On Thu, Jan 28, 2010 at 8:52 PM,  <mythtv at cvs.mythtv.org> wrote:
>      Author: wagnerrp
>        Date: 2010-01-29 04:52:38 +0000 (Fri, 29 Jan 2010)
> New Revision: 23358
>   Changeset: http://svn.mythtv.org/trac/changeset/23358
>
> Modified:
>
>   trunk/mythtv/bindings/python/MythTV/__init__.py
>
> Log:
>
> Fix install issue on Python 2.5

So this enables me to install the python bindings i.e. no errors
during the install process:
/usr/local/src/trunk/mythtv/bindings/python $ sudo make install
python setup.py build
running build
running build_py
copying MythTV/__init__.py -> build/lib/MythTV
-Wl,-O1 -o python -L/usr/lib/qt4 -lQtGui -L/usr/lib/qt4
-L/usr/X11R6/lib -pthread -lpng -lSM -lICE -pthread -pthread -lXrender
-lXrandr -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm
-pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
python setup.py install --skip-build --root="/"
running install
running install_lib
copying build/lib/MythTV/__init__.py -> /usr/lib/python2.5/site-packages/MythTV
byte-compiling /usr/lib/python2.5/site-packages/MythTV/__init__.py to
__init__.pyc
running install_egg_info
Removing /usr/lib/python2.5/site-packages/MythTV-0.23.0-py2.5.egg-info
Writing /usr/lib/python2.5/site-packages/MythTV-0.23.0-py2.5.egg-info

But I still can't run jamu against it:
<string>:3: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
  File "/usr/local/share/mythtv/mythvideo/scripts/jamu.py", line 505,
in <module>
    print u"\n! Warning - MythTV python bindings could not be
imported, error(%s)\n" % u''.join([u'%s ' % x for x in e.args])
TypeError: not all arguments converted during string formatting

Once I comment out lines 18-22 in __init__.py I get a different error
with jamu which I think is unrelated to this change:
! Warning - MythTV python bindings could not be imported, error(cannot
import name MythDBConn )

Traceback (most recent call last):
  File "/usr/local/share/mythtv/mythvideo/scripts/jamu.py", line 564,
in <module>
    class VideoTypes( DBData ):
NameError: name 'DBData' is not defined


More information about the mythtv-dev mailing list