Re: [Imdbpy-help] BUG: 4.0-dev - Newline Missing after Genres and incorrect plot summary

2009-03-25 Thread Davide Alberani
On Mar 25, H. Turgut Uyar u...@itu.edu.tr wrote:

 I was browsing the archives and noticed that this was not answered.

Completely missed that part. :-)

 The 1.3.6 version of python-lxml does not seem to have an html
 module.

It's pretty old, it was released in October 2007.

 Maybe we should set the dependency info in the setup.py file so
 that a release with version greater than 2.1 will be selected.

For sure it won't hurt. :-)

PS: in a matter of days, I hope to add top 250/bottom 100 links
to imdbpykit.
Whata about i18n?  I see a file for English and one for Turkish;
I can add Italian.  Is there an easy way to translate the XML
generated by the XSL file?


Thanks!
-- 
Davide Alberani davide.alber...@gmail.com [PGP KeyID: 0x465BFD47]
http://erlug.linux.it/~da/

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help


Re: [Imdbpy-help] BUG: 4.0-dev - Newline Missing after Genres and incorrect plot summary

2009-03-25 Thread H. Turgut Uyar
On 03/25/2009 05:36 PM, Davide Alberani wrote:
 On Mar 25, H. Turgut Uyar u...@itu.edu.tr wrote:
 Maybe we should set the dependency info in the setup.py file so
 that a release with version greater than 2.1 will be selected.
 
 For sure it won't hurt. :-)
 

Greater than 2.1 might be overkill but I'm a bit lazy to find out which
exact version of lxml satisfies all the features we use :-)

 PS: in a matter of days, I hope to add top 250/bottom 100 links
 to imdbpykit.

Great.

 Whata about i18n?  I see a file for English and one for Turkish;
 I can add Italian.

English and Turkish are also nearly empty. The problem is that we have
to generate a list of XML tags and that can be quite laborious. gettext
utils can not help us either because the tags are generated in the code,
so we can't mark them anywhere like _(..) for a utility to collect.

 Is there an easy way to translate the XML
 generated by the XSL file?
 

It should be easy, an XML book I have says to put an entry for every
language as in:

titleIMDbPY gateway/title
title xml:lang=trIMDbPY ag gecidi/title

And the browser should select the correct one.

-- 
Turgut


--
___
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help


Re: [Imdbpy-help] BUG: 4.0-dev - Newline Missing after Genres and incorrect plot summary

2009-02-26 Thread Chris Thompson




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


Re: [Imdbpy-help] BUG: 4.0-dev - Newline Missing after Genres and incorrect plot summary

2009-02-22 Thread Davide Alberani
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.
-- 
Davide Alberani davide.alber...@gmail.com [PGP KeyID: 0x465BFD47]
http://erlug.linux.it/~da/

--
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