On Sep 24, "H. Turgut Uyar" <[EMAIL PROTECTED]> wrote:

> > That's another thing to check, I don't even known if it's doable...
> 
> BeautifulSoup and lxml are not dependencies. BeautifulSoup is already
> bundled and lxml is recommended but not required. IMDbPY should run
> without either of them being installed.

Yup - I was wondering if there was a way to specify them as "suggested"
in the setup.py, but it doesn't look possible.

By the way: in the CVS there's a (who knows if correct) fix for the
"direct hit" bug.

The UnicodeDecodeError that arise when movie/etcIDs are unicode is
still not fixed: I fear the best solution is:
- convert them to str in analyze_imdbid,
- convert them to str in build_person and build_movie,
- convert them to str every time a Movie/Person/Character/Company
  objsct is instanced in the 'http' data access system (like it was before)

To tell the truth this can also be viewed as a conceptual error in
the search_movie.py script; the last line:
  print '%s\t: %s : %s' % (movie.movieID, i.get_imdbID(movie), movie['long imdb 
title'].encode(out_encoding, 'replace'))

should really be:
  outp = u'%s\t: %s : %s' % (movie.movieID, i.get_imdbID(movie), movie['long 
imdb title'])
  print outp.encode(out_encoding, 'replace')


But I'm wondering how many pieces of code out there are broken the
same way...

-- 
Davide Alberani <[EMAIL PROTECTED]> [PGP KeyID: 0x465BFD47]
http://erlug.linux.it/~da/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Imdbpy-devel mailing list
Imdbpy-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel

Reply via email to