On Thursday, July 28, 2016 at 9:20:21 AM UTC+2, Sergi Almacellas Abellana 
wrote:
>
> El 27/07/16 a les 21:50, Marko Randjelovic ha escrit: 
> > When starting trytond ver 4.1.0, I get this error: 
> > 
> > (trytond) mr@abc24:~/training/trytond4$ bin/trytond -c ../trytond4p.conf 
> > -d test 
> > Traceback (most recent call last): 
> >   File "bin/trytond", line 24, in <module> 
> >     from trytond.application import app 
> >   File "/home/mr/training/trytond4/trytond/application.py", line 8, in 
> > <module> 
> >     Pool.start() 
> >   File "/home/mr/training/trytond4/trytond/pool.py", line 97, in start 
> >     register_classes() 
> >   File "/home/mr/training/trytond4/trytond/modules/__init__.py", line 
> > 362, in register_classes 
> >     mod_file, pathname, description) 
> >   File "/home/mr/training/trytond4/trytond/modules/account/__init__.py", 
> > line 6, in <module> 
> >     from .account import * 
> >   File "/home/mr/training/trytond4/trytond/modules/account/account.py", 
> > line 8, in <module> 
> >     from sql import Column, Null, Window, Literal 
> > ImportError: cannot import name Window 
>
> account module at least version 0.7 of python-sql [1] and you seem to 
> have and older version. Please upgrade you python-sql to a more recent 
> version. 
>

(trytond) mr@abc24:~/training$ pip install python-sql --upgrade
Collecting python-sql
Installing collected packages: python-sql
  Found existing installation: python-sql 0.4
    Not uninstalling python-sql at /usr/lib/python2.7/dist-packages, 
outside environment /home/mr/training/.venv/trytond
Successfully installed python-sql-0.4

For some reason pip installs again the same version. In repo available is 
0.8. 

(trytond) mr@abc24:~/training$ pip search sql | grep "^python-sql"
python-sql-abstraction (0.0.1)                           - SQL Abstraction 
layer written in Python 3.2 for use in lower level applications, such as 
tkinter.
python-sql (0.8)                                         - Library to write 
SQL queries



> [1] http://hg.tryton.org/modules/account/file/5d2be5235e04/setup.py#l50 
> <http://www.google.com/url?q=http%3A%2F%2Fhg.tryton.org%2Fmodules%2Faccount%2Ffile%2F5d2be5235e04%2Fsetup.py%23l50&sa=D&sntz=1&usg=AFQjCNGP6z8lHoJAm3DPcs_AvcMccvQHgA>
>  
>
> -- 
> Sergi Almacellas Abellana 
> www.koolpi.com 
> Twitter: @pokoli_srk 
>

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/0f62344e-2c9a-4561-879b-3ff6b2266e36%40googlegroups.com.

Reply via email to