installation with python2.5?

20 views
Skip to first unread message

sfbigdata

unread,
Jun 20, 2012, 4:12:30 PM6/20/12
to milk-...@googlegroups.com
Hi, 
I've just started to use "milk",
it was fine with osX, unbuntu (both are with python2,6. 2.7 respectively).
however, when I tried to install at debian (with python 2.5). there is syntax error.

"
Extracting milk-0.4.2-py2.5-linux-x86_64.egg to /usr/lib/python2.5/site-packages
  File "/usr/lib/python2.5/site-packages/milk-0.4.2-py2.5-linux-x86_64.egg/milk/ext/jugparallel.py", line 68
    kwargs = {k:identity(v) for k,v in kwargs.iteritems()}
                              ^
SyntaxError: invalid syntax

/usr/lib/python2.5/site-packages/milk-0.4.2-py2.5-linux-x86_64.egg/milk/utils/parallel.py:45: Warning: 'with' will become a reserved keyword in Python 2.6
  File "/usr/lib/python2.5/site-packages/milk-0.4.2-py2.5-linux-x86_64.egg/milk/utils/parallel.py", line 45
    with _plock:
              ^
SyntaxError: invalid syntax"

seems like need to have python2.6 at least. is it correct? (even though I hoped that milk could be installed with 2.5)

thanks in advance.



Luis Pedro Coelho

unread,
Jun 21, 2012, 8:47:38 AM6/21/12
to milk-...@googlegroups.com
Yes, that line will not work in older Python.

It's not really a design decision, but rather that I develop on Python 2.6+.

You can try to fix these things (and I would welcome the patches and merge them
with master), but it's pretty hard for me as I don't use Python 2.5.

Sorry
Luis
--
Luis Pedro Coelho | Institute for Molecular Medicine | http://luispedro.org

LxMLS 2012: Lisbon Machine Learning School
http://lxmls.it.pt

Reply all
Reply to author
Forward
0 new messages