Bug 539818 - Cannot retrieve data from imdb.com
Summary: Cannot retrieve data from imdb.com
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-imdb
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-21 07:36 UTC by Mathieu Brabant
Modified: 2010-02-24 06:14 UTC (History)
2 users (show)

Fixed In Version: python-imdb-4.4-1.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-24 06:14:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mathieu Brabant 2009-11-21 07:36:08 UTC
Description of problem:
python-imdb can no longer retrieve data from imdb.com following a site change.


Version-Release number of selected component (if applicable):
4.0-5


How reproducible:
Always


Steps to Reproduce:
1. python /usr/share/doc/python-imdb-4.0/examples/get_movie.py 0074720
2.
3.

  
Actual results:
Traceback (most recent call last):
  File "/usr/share/doc/python-imdb-4.0/examples/get_movie.py", line 35, in <module>
    movie = i.get_movie(imdbID)
  File "/usr/lib/python2.6/site-packages/imdb/__init__.py", line 348, in get_movie
    self.update(movie, info)
  File "/usr/lib/python2.6/site-packages/imdb/__init__.py", line 702, in update
    ret = method(mopID)
  File "/usr/lib/python2.6/site-packages/imdb/parser/http/__init__.py", line 434, in get_movie_main
    return self.mProxy.movie_parser.parse(cont, mdparse=self._mdparse)
  File "/usr/lib/python2.6/site-packages/imdb/parser/http/utils.py", line 437, in parse
    data = self.postprocess_data(data)
  File "/usr/lib/python2.6/site-packages/imdb/parser/http/movieParser.py", line 408, in postprocess_data
    data['akas'] = data.get('other akas', []) + data.get('akas', [])
TypeError: coercing to Unicode: need string or buffer, list found


Expected results:
Movie information


Additional info:
This issue is still present in version 4.3 of IMDbPY.  It has been resolved in the latest SVN version (4.3svn20091120b).

Comment 1 Gwyn Ciesla 2010-02-03 15:17:27 UTC
I just took this over.  I'm looking at 4.4, which should fix this, but it's got locale files, and I want to handle them properly. I'll try to get this out ASAP.

Comment 2 Fedora Update System 2010-02-03 16:14:21 UTC
python-imdb-4.4-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/python-imdb-4.4-1.fc12

Comment 3 Fedora Update System 2010-02-03 16:14:25 UTC
python-imdb-4.4-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/python-imdb-4.4-1.fc11

Comment 4 Fedora Update System 2010-02-05 01:22:52 UTC
python-imdb-4.4-1.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update python-imdb'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1449

Comment 5 Fedora Update System 2010-02-05 01:49:37 UTC
python-imdb-4.4-1.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update python-imdb'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2010-1507

Comment 6 Fedora Update System 2010-02-24 06:14:40 UTC
python-imdb-4.4-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2010-02-24 06:14:51 UTC
python-imdb-4.4-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.