[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Health-dev] Missing trytond.config

From: Kaushik
Subject: Re: [Health-dev] Missing trytond.config
Date: Tue, 25 Jun 2013 20:48:46 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

Hi Sebastian,
            Thank you. I am installing from source, hence there was no trytond/config under the directory you have suggested.
However, I did find trytond/config under the tryton server source and I added that to the python path. That fixes it.

A quick summary note :
          In the wiki page, it says the following :

I had taken that to mean the directory of the trytond server program.   So, I had added the trytond.../bin directory.  Now, I understand. 
Any case, installing from the source is a good exercise for developers and we can expect these issues.

Thanks for your help.

On Tuesday 25 June 2013 06:08 PM, Sebastián Marró wrote:
Hi Kaushik

   Sorry, i have mistaken (trytond.config with trytond.conf file) ... i think the problem still is with the python path...    

   First, can you check that you have a trytond directory in '/home/gnuhealth/.local/lib/python2.7/site-packages', and inside a file?

   Then you can add this lines before the "config = config.set_trytond.... " line of your

import sys

  And try again.... let me know if this helps.


2013/6/25 Kaushik <address@hidden>
Hi Sebastian,
           The python script is looking for Tryton.config.  I am pasting the traceback below.

Traceback (most recent call last):
  File "", line 26, in <module>
    user='admin', password='admin')
  File "/home/gnuhealth/.local/lib/python2.7/site-packages/proteus/", line 262, in set_trytond
    language=language, password=password, config_file=config_file)
  File "/home/gnuhealth/.local/lib/python2.7/site-packages/proteus/", line 179, in __init__
    from trytond.config import CONFIG
ImportError: No module named trytond.config

Looks like we need a python module called Tryton.config where as  Tryton.conf seems like a config file.  In any case I got hold of tryton.conf and renamed it but the script still fails.

On Monday 24 June 2013 04:30 PM, Sebastián Marró wrote:
Hi Kaushik

2013/6/24 Kaushik <address@hidden>
Hi Sebastian,
         The Python path has been set. It has the tryton server directory included.
Could you please tell me where this trytond.config is expected to be. It is not in the tryton server directory.
In fact, it is not present anywhere under my home directory.

(I had installed gnuhealth using pip. Then removed .local/bin and then again installed from source.  I am just experimenting. )

Ok, trytond.conf is missing in the pip installation method (there is a Tryton open bug for this). if you have installed with pip, you can take trytond.conf from here [0], It's in the /etc directory. 


Sebastián Marró
Converging Ideas for Emerging Realities

Sebastián Marró
Converging Ideas for Emerging Realities

reply via email to

[Prev in Thread] Current Thread [Next in Thread]