LinHES Forums
http://forum.linhes.org/

7.1 mythburn.py ImportError: No module named CDROM
http://forum.linhes.org/viewtopic.php?f=21&t=22330
Page 1 of 1

Author:  koneill [ Thu Nov 17, 2011 8:52 pm ]
Post subject:  7.1 mythburn.py ImportError: No module named CDROM

Because W.O.W has moved to digital cable I am creating a new 7.1 system to replace my existing R4C7 system.

While trying out the MythArchive I am getting the following error:

[root@MythtvTwo plat-linux3]# more /myth/tmp/logs/mythburn.log
Traceback (most recent call last):
File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 76, in <module>
import CDROM
ImportError: No module named CDROM

The line in mythburn.py throwing the error is:
import CDROM

I'm not a Python programmer, but on my old system there are files:
/usr/lib/python2.4/plat-linux2/CDROM.py and CDROM.pyc

CDROM.py seems to contain codes used in the script (i.e. CDROM_DRIVE_STATUS = 0x5326 )

I can not file any files CDROM* on the new 7.1 system.
Does anyone know if the absance of these files is the reason for the error?
If so did I miss a step, or were they accidently omitted?

Thanks in advance!

(I made sure yo change the archive setup to point /dev/sr0 and ensured all the permissions on /dev, /dev/sr0 and /dev/scd0 were 777. So I don't think that's the problem)

Author:  koneill [ Thu Nov 17, 2011 9:00 pm ]
Post subject: 

At the risk of answering my own question I copied CDROM.py and CDROM.pyc from /usr/lib/python2.4/plat-linux2 on my R5C7 box to /usr/lib/python2.6/plat-linux3 on my R7.1 box and MythArchive seems to be running.

It's an old box so it will be a good while before I know the results, but I will post them here.

Author:  brfransen [ Thu Nov 17, 2011 11:45 pm ]
Post subject: 

This is fixed in the python2 package.
Code:
sudo pacman -Syu


Britney

Author:  koneill [ Sat Nov 19, 2011 11:21 pm ]
Post subject: 

Thanks that seems to have cleared it up!

Having other problems, but I'll start a new thread.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/