On Wed, Apr 20, 2011 at 14:08, darklow <dark...@gmail.com> wrote:
> Still no luck :/ maybe the problem is in some environmental variables or
> settings, which on installed version are present, but running from source
> are missing or incorrect?

Seems unlikely to me.

> What about this, i printed out some variables:
> print sys.stdout.encoding -> UTF-8
> print sys.stdin.encoding   -> UTF-8
> print sys.getdefaultencoding(); -> ascii
> Is it ok that  sys.getdefaultencoding(); == ascii ?

These are fine.

I've reproduced - at the best of my capabilities - your environment:
- no IMDbPY installed in the system.
- IMDbPY from source (the latest version in the Mercurial repository),
  setting the PYTHONPATH environment variable to point to the
  source directory.
- the cutils C module was not compiled.
- the last actors.list.gz file.
- postgres 8.4; my database was created with these settings:
  CREATE DATABASE imdb
    WITH OWNER = postgres
       ENCODING = 'UTF8'
       TABLESPACE = pg_default
       LC_COLLATE = 'it_IT.utf8'
       LC_CTYPE = 'it_IT.utf8'
       CONNECTION LIMIT = -1;

I've run it with your and other portions of the actors.list.gz file, and
everything went fine.

Now... if I were you, I'd:
- create a virtualenv environment with:
    virtualenv --no-site-packages
- install in it IMDbPY, using easy_install or pip (the executable in
  your virtualenv, I mean) so that you'll have all the correct dependecies
  available.
- run the imdbpy2sql.py within your virtualenv.

If it still fails:
- check your postgres settings.
- try using SQLite (just for a test) - see notes in README.sqldb


HTH,
-- 
Davide Alberani <davide.alber...@gmail.com>  [PGP KeyID: 0x465BFD47]
http://www.mimante.net/

------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to