Opened 11 years ago

Closed 11 years ago

#7044 closed defect (worksforme)

jamu.py can't find python bindings but they are installed

Reported by: ryan.goat@… Owned by: Anduin Withers
Priority: minor Milestone: unknown
Component: Bindings - Python Version: head
Severity: medium Keywords: python bindings jamu.py
Cc: ryan.goat@… Ticket locked: no

Description

Running SVN version 21818 on Ubuntu 9.04 Trying to execute the command:

/usr/share/mythtv/mythvideo/scripts/jamu.py -C /home/ryan/.jamu/jamu-maintenance.conf -MIV

Get this output:

/var/lib/python-support/python2.6/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
  from sets import ImmutableSet

! Warning - MythTV python bindings could not be imported


! Error: The MythTV python interface is not installed or Cannot connect to MythTV Backend. MythTV meta data cannot be updated

It says MythTV python bindings are not installed. But I did compile with perl & python bindings enabled:

./configure --prefix=/usr --enable-proc-opt --enable-libfaad --enable-vdpau --enable-opengl-video --enable-opengl-vsync --with-bindings=perl,python

I checked the .deb I generated and checked the files on the disk and it did install the following files:

/usr/local/lib/python2.6/dist-packages/MythTV-0.21.egg-info
/usr/local/lib/python2.6/dist-packages/MythTV/MythTV.py
/usr/local/lib/python2.6/dist-packages/MythTV/MythTV.pyc

I don't know python. But it looks like the compile and instillation of the python bindings was successful. Yet jamu.py can't find them.

Also I'm not sure why the Perl and Python bindings were installed under /usr/local when I specified /usr as the ./configure prefix? Everything else was correctly installed under /usr except python and Perl stuff.

Change History (3)

comment:1 Changed 11 years ago by robertm

Status: newinfoneeded_new

If all you got was those three files, then it appears your install did not go correctly. You are missing the MythVideo?.py and MythLog?.py python files. Can you confirm that these are the only files you have in your MythTV dirs? the ones you have installed appear to be the .21 ones. Try entering the bindings dir in your source and running the setup.py:

mythtv/bindings/python# python setup.py install

comment:2 Changed 11 years ago by ryan.goat@…

I ran:

mythtv/bindings/python# sudo setup.py install

It copied over and compiled 5 files. Now jamu.py works correctly. Thanks!

Does this highlight an error in the make install routine? I assume that is where this command should have been executed.

FYI: I use the checkinstall command to automatically generate a .deb package file. Maybe chackinstall is the source of the problem?

comment:3 Changed 11 years ago by robertm

Resolution: worksforme
Status: infoneeded_newclosed

Make install appears to work fine here, can't comment on the distro-specific tools, but I'm guessing maybe they're the source of the issue?

Note: See TracTickets for help on using tickets.