On 01/07/10 17:40 +0300, Elver Loho wrote:
> Hi!
> 
> I'm trying to write an external data importing script by using Tryton
> as a module as per the instructions here:
> http://code.google.com/p/tryton/wiki/HowToUseTrytondAsAModule
> 
> The problem is that Tryton, when loaded as a module, doesn't seem to
> be able to find the configuration file. The configuration file defines
> that Tryton should try logging into PostgreSQL as user "tryton", but
> this is the error I get:
> 
> Traceback (most recent call last):
>   File "/home/elver/workspace/TKriso/src/import_data.py", line 19, in <module>
>     DB = Database(DBNAME).connect()
>   File 
> "/home/elver/dev/tryton/trytond/trytond/backend/postgresql/database.py",
> line 57, in connect
>     self._connpool = ThreadedConnectionPool(minconn, maxconn, dsn)
>   File "/usr/lib/python2.6/dist-packages/psycopg2/pool.py", line 160,
> in __init__
>     self, minconn, maxconn, *args, **kwargs)
>   File "/usr/lib/python2.6/dist-packages/psycopg2/pool.py", line 76, in 
> __init__
>     self._connect()
>   File "/usr/lib/python2.6/dist-packages/psycopg2/pool.py", line 80, in 
> _connect
>     conn = psycopg2.connect(*self._args, **self._kwargs)
> psycopg2.OperationalError: FATAL:  Ident authentication failed for user 
> "elver"
> 
> Is there some Tryton function I need to call for it to load the config
> or do I just need to put the config somewhere where it knows to find
> it?

I have updated the wiki page to add load of config.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpqbTecQ3iu1.pgp
Description: PGP signature

Reply via email to