Opened 16 years ago

Closed 16 years ago

#4762 closed defect (fixed)

ofdb.py not working on Ubuntu gutsy

Reported by: laga <laga+mythtv@…> Owned by: Anduin Withers
Priority: minor Milestone: 0.21
Component: mythvideo Version: unknown
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Hi,

ofdb.py is not working for me. When I execute /usr/share/mythtv/mythvideo/scripts/ofdb.py -M "alien", I get the following backtrace:

# Traceback (most recent call last): # File "/usr/share/mythtv/mythvideo/scripts/ofdb.py", line 68, in search_title # res = urllib.urlopen(req) # File "urllib.py", line 82, in urlopen # return opener.open(url) # File "urllib.py", line 165, in open # fullurl = unwrap(toBytes(fullurl)) # File "urllib.py", line 1009, in unwrap # url = url.strip() # File "urllib2.py", line 218, in getattr # raise AttributeError?, attr # AttributeError?: strip

This is with Python 2.5.1 on Ubuntu Gutsy amd64.

Change History (4)

comment:1 Changed 16 years ago by laga <laga+mythtv@…>

Oops, sorry. The backtrace is unreadable. Next try:

# Traceback (most recent call last):
#   File "/usr/share/mythtv/mythvideo/scripts/ofdb.py", line 68, in search_title
#     res = urllib.urlopen(req)
#   File "urllib.py", line 82, in urlopen
#     return opener.open(url)
#   File "urllib.py", line 165, in open
#     fullurl = unwrap(toBytes(fullurl))
#   File "urllib.py", line 1009, in unwrap
#     url = url.strip()
#   File "urllib2.py", line 218, in __getattr__
#     raise AttributeError, attr
# AttributeError: strip

comment:2 Changed 16 years ago by Anduin Withers

Milestone: unknown0.21

comment:3 Changed 16 years ago by Anduin Withers

(In [16339]) References #4762

The OFDb site changed, script updated.

Also changed -r to -R for ratings country (so -r could dump the raw HTML response for debugging like imdb.pl).

comment:4 Changed 16 years ago by Anduin Withers

Resolution: fixed
Status: newclosed

(In [16341]) Closes #4762

Merge in [16339] from trunk.

Original commit message:

The OFDb site changed, script updated.

Also changed -r to -R for ratings country (so -r could dump the raw HTML response for debugging like imdb.pl).

Note: See TracTickets for help on using tickets.