Opened 14 years ago

Closed 14 years ago

#8095 closed defect (fixed)

Python bindings fail if config.xml is missing

Reported by: superm1@… Owned by: Raymond Wagner
Priority: minor Milestone: unknown
Component: Bindings - Python Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Version : 0.23~trunk23567 If this file is missing, the bindings should create it rather than flop over.

import MythTV args = { 'SecurityPin?' : '1234' } db_base = MythTV.MythDBBase(args=args)

Traceback (most recent call last):

File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/dist-packages/MythTV/MythBase.py", line 995, in init

fp = open(os.path.expanduser('~/.mythtv/config.xml'), 'w')

IOError: [Errno 2] No such file or directory: '/home/ubuntu/.mythtv/config.xml'

Attachments (1)

error.txt (399 bytes) - added by superm1@… 14 years ago.
error

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by superm1@…

Attachment: error.txt added

error

comment:1 Changed 14 years ago by superm1@…

Particularly this might be falling over if ~/.mythtv is missing, not just the config.xml

comment:2 Changed 14 years ago by Raymond Wagner

Resolution: fixed
Status: newclosed

(In [23574]) Creates folder ~/.mythtv upon UPnP autodetection if it does not already exist. Closes #8095.

Note: See TracTickets for help on using tickets.