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?

Best,
Elver

[email protected]
+372 5661 6933
http://elver.wordpress.com/
skype: elver.loho

-- 
[email protected] mailing list

Reply via email to