Davide Alberani wrote:
On Feb 22, Chris Thompson <chris.thomp...@stormfolio.net> wrote:

  
a) the output of "get_first_movie" appears to be missing a newline at
the end of the genres and before "Director:"
b) the plot summary is incorrect
    

Hi!
Thank you very much for your bug reports - I've fixed the
Movie.summary method (it wasn't updated after some recent
changes to IMDbPY).

  
There are some warnings, maybe this is related?
    

No, you don't have the lxml package installed, and so the html
is parsed using BeautifulSoup (pure python).
It's just a warning and not a real problem (except that everything
will be a lot slower).

I'm still trying to understand what can cause the problem you
reported in your other email.


Thank you again - I've added your name to the credits.
  
Hi,

thanks, I have tried the latest dev version and the issues are fixed :-)

Regarding the lxml package, I have "python-lxml version 1.3.6-1" installed and "libxml2 version 2.6.31.dfsg-2ubuntu1.3". This is detected by the imdbpy installer but I still get the warnings. Here is a snippet from my console:

Installed /usr/lib/python2.5/site-packages/IMDbPY-4.0dev-py2.5.egg
Processing dependencies for IMDbPY==4.0dev
Searching for SQLAlchemy==0.5.2
Best match: SQLAlchemy 0.5.2
Processing SQLAlchemy-0.5.2-py2.5.egg
SQLAlchemy 0.5.2 is already the active version in easy-install.pth

Using /usr/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg
Searching for lxml==1.3.6
Best match: lxml 1.3.6
Adding lxml 1.3.6 to easy-install.pth file


Using /usr/lib/python2.5/site-packages
Searching for SQLObject==0.10.4
Best match: SQLObject 0.10.4
Processing SQLObject-0.10.4-py2.5.egg
SQLObject 0.10.4 is already the active version in easy-install.pth
Installing sqlobject-admin script to /usr/bin

Using /usr/lib/python2.5/site-packages/SQLObject-0.10.4-py2.5.egg
Searching for FormEncode==1.2.1
Best match: FormEncode 1.2.1
Processing FormEncode-1.2.1-py2.5.egg
FormEncode 1.2.1 is already the active version in easy-install.pth

Using /usr/lib/python2.5/site-packages/FormEncode-1.2.1-py2.5.egg
Finished processing dependencies for IMDbPY==4.0dev
r...@zen-linux:/data/downloads/development/general/python/imdmpy/trunk/imdbpy# get_first_movie.py alien
/usr/lib/python2.5/site-packages/IMDbPY-4.0dev-py2.5.egg/imdb/parser/http/utils.py:363: UserWarning: unable to use "lxml": No module named html
  warnings.warn('unable to use "%s": %s' % (mod, str(e)))
/usr/lib/python2.5/site-packages/IMDbPY-4.0dev-py2.5.egg/imdb/parser/http/utils.py:354: UserWarning: falling back to "beautifulsoup".
  warnings.warn('falling back to "%s".' % mod)











------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to