tks for the quick reply! i can pass the error but... i get some other:
python Import_csv_proteus.py
Traceback (most recent call last):
File "Import_csv_proteus.py", line 7, in <module>
config = config.set_trytond(database='postgresql', language='es_AR',
password='franfran', config_file='/etc/TRYTON/trytond.conf')
File "/usr/lib/python2.7/dist-packages/proteus/config.py", line 268, in
set_trytond
password=password, config_file=config_file)
File "/usr/lib/python2.7/dist-packages/proteus/config.py", line 201, in
__init__
from trytond.config import config
ImportError: cannot import name config
Im not sure what is happening.
El miércoles, 14 de enero de 2015, 8:16:20 (UTC-3), El Fran escribió:
>
> Hi, I'm trying to import products with Proteus library, I found a document
> [1] with a script but am having problems. After creating the file with the
> script I run the console (doing python Import_csv_proteus.py )and get the
> following error:
>
> Traceback (most recent call last):
> File "Import_csv_proteus.py", line 6, in <module>
> config = config.set_trytond('test_341', database_type='postgresql',
> config_file='/etc/TRYTON/trytond.conf')
> TypeError: set_trytond() got an unexpected keyword argument 'database_type'
>
> I'm using the version 3.4 and my trytond.conf file is:
>
> [jsonrpc]
> listen=*:8000
>
>
> [database]
> uri=postgresql://xxxxxx:xxxxxxx@localhost:5432
> path=/home/----/----
>
>
> [session]
> timeout=3600
> super_pwd=----------
>
>
>
> I hope to resolve this issue, thank you very much in advance
>
> [1]
> http://javivf.alasombra.net/blog/2013/06/importar-datos-a-tryton-usando-proteus-desde-csv
>