Opened 10 years ago

Closed 10 years ago

#7625 closed defect (fixed)

./jamu.py -D or -M cause errors (with RO video files)

Reported by: iskimj@… Owned by: Anduin Withers
Priority: minor Milestone: unknown
Component: Plugin - MythVideo Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Using jamu.py 0.5.9 [22863] I get the following errors as soon as I add either the -D or -M options:

#./jamu.py -fD -C jamu-example.conf Traceback (most recent call last):

File "./jamu.py", line 6434, in <module>

main()

File "./jamu.py", line 6410, in main

configuration.validate_setVariables(['FAKE SERIES NAME','FAKE EPISODE NAME'])

File "./jamu.py", line 1845, in validate_setVariables

self._getMythtvDirectories()

File "./jamu.py", line 1600, in _getMythtvDirectories

sys.stderr.write(u"\n! Warning: MythTV (%s) directory (%s) does not exist.\n" % (key, tmp_directories[i]))

UnboundLocalError?: local variable 'tmp_directories' referenced before assignment

I am using the lastest trunk to get a locally mounted video directory (samba mount) working. I was working with [22594] and could get it to work simply by commenting out the RW/RO exit tests.

Change History (2)

comment:1 Changed 10 years ago by r.d.vaughan@…

There will be a patch for jamu in a few days that will include a resolution to this ticket. The message is only a warning that some front end image directory setting (for the local host) does not exist on the back end jamu is running on. The non-existent directory is ignored.

In the mean time, you could change line 1600 "sys.stderr.write(u"\n! Warning: MythTV (%s) directory (%s) does not exist.\n" % (key, tmp_directories[i]))" statement to "sys.stderr.write(u"\n! Warning: MythTV (%s) directory (%s) does not exist.\n" % (key, graphics_dir))".

comment:2 Changed 10 years ago by robertm

Resolution: fixed
Status: newclosed

(In [22899]) Backport of r22898 to -fixes, solves numberous issues with Jamu. Closes #7625.

Note: See TracTickets for help on using tickets.