[mythtv] Python bindings problem with importing modules
Ian Barton
lists at manor-farm.org
Thu Mar 13 07:20:18 UTC 2008
Thanks, but that doesn't work either. See the following simple example.
#!/usr/bin/python
from MythTV import *
# CRITICAL is defined in MythLog
log = MythLog(CRITICAL, '#%(levelname)s - %(message)s', 'MythTV')
File "./test.py", line 14, in <module>
log = MythLog(CRITICAL, '#%(levelname)s - %(message)s', 'MythTV')
NameError: name 'CRITICAL' is not defined
Ian.
> Wouldn't it be
>
> from MythTV import MythLog
>
> On Wed, Mar 12, 2008 at 10:06 AM, Ian Barton <lists at manor-farm.org> wrote:
>> I am having some problems using the MythLog and MythDB classes. Thanks
>> to earlier help the MythTV class is working fine.
>>
>> If I run a very simple program:
>>
>> #!/usr/bin/python
>>
>> from MythLog import *
>>
>> I get "ImportError: No module named MythLog", same for MythDB. Both
>> these are installed in /usr/lib/python2.5/site-packages/MythTV/. I get
>> the same error trying to import these classes from the command line.
>>
>> However, I see that the MythTV class, which seems to work without any
>> errors runs exactly the same code. So what am I doing wrong?
>>
>>
>> Ian.
>> _______________________________________________
>> mythtv-dev mailing list
>> mythtv-dev at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
More information about the mythtv-dev
mailing list