Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 3 years ago

Closed 3 years ago

#9279 closed Bug Report (Fixed)

Mirobridge failure with Python 2.7 and oursql

Reported by: anonymous Owned by: wagnerrp
Priority: minor Milestone: 0.25
Component: Contributed Scripts & Apps Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

I'm testing Fedora 14 with trunk revision 27314. Per commit 27184 regarding Python 2.7 I have installed ousql (with the patch at https://bugs.launchpad.net/oursql/+bug/672059) and set the ENABLE_OURSQL environment variable. It appears that oursql is found and utilized, however, mirobridge errors running at configuration test with:

$ python /usr/share/doc/mythtv-docs-0.24/contrib/imports/mirobridge/mirobridge.py -t
2010-11-23 15:52:49,044 - mirobridge - INFO - Using python library 'pyparsing' version 1.5.5
2010-11-23 15:52:49,777 - mirobridge - INFO - Miro Bridge version v0.6.6 with Miro version 3.5
2010-11-23 15:52:49,779 - mirobridge - INFO - Using mirobridge_interpreter_3_5_0
2010-11-23 15:52:49,870 - mirobridge - INFO -
Traceback (most recent call last):

File "/usr/share/doc/mythtv-docs-0.24/contrib/imports/mirobridge/mirobridge.py", line 2649, in <module>

main()

File "/usr/share/doc/mythtv-docs-0.24/contrib/imports/mirobridge/mirobridge.py", line 2137, in main

if getStorageGroups() == False:

File "/usr/share/doc/mythtv-docs-0.24/contrib/imports/mirobridge/mirobridge.py", line 659, in getStorageGroups

if dirname[-1:] == u'/':

UnboundLocalError?: local variable 'dirname' referenced before assignment

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by wagnerrp

  • Component changed from MythTV - General to Contributed Scripts & Apps
  • Milestone changed from unknown to 0.25
  • Owner set to wagnerrp
  • Status changed from new to accepted
  • Version changed from Unspecified to Trunk Head

comment:2 Changed 3 years ago by wagnerrp

  • Resolution set to Fixed
  • Status changed from accepted to closed

(In [27327]) Fix mirobridge to pass storagegroup directory name through unchanged if it is already unicode. Closes #9279 for now. Refs #8768. If this is going to be a recurring issue, it may be better to for all strings outputted by the MySQLdb module to unicode as well for consistency, and deal with whatever code needs to be fixed as a result.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.