[Neurodebian-users] Problem with python-joblib package (0.6.0~b2-1~nd60+1) on debian squeeze
Florent JAILLET
florent.jaillet at incm.cnrs-mrs.fr
Thu Jan 12 10:15:32 UTC 2012
Hi,
I'm getting the errors copied bellow when installing the python-joblib
package from neurodebian on debian squeeze (package version
python-joblib_0.6.0~b2-1~nd60+1_all.deb).
From the errors, I guess that the corresponding joblib python module is
not compatible with python 2.5, and yet links to the module code exists
in /usr/lib/pymodules/python2.5/joblib.
Trying to import manually the module in python 2.6 and 2.5 after
installation seems to confirm this:
jaillet.f at tethys:~$ python2.6
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import joblib
>>> joblib.__version__
'0.6.0b2'
>>> exit()
jaillet.f at tethys:~$ python2.5
Python 2.5.5 (r255:77872, Nov 28 2010, 16:43:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import joblib
/usr/lib/pymodules/python2.5/joblib/logger.py:117: Warning: 'with' will
become a reserved keyword in Python 2.6
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.5/joblib/__init__.py", line 107, in
<module>
from .memory import Memory
File "/usr/lib/pymodules/python2.5/joblib/memory.py", line 39, in
<module>
from .logger import Logger, format_time
File "/usr/lib/pymodules/python2.5/joblib/logger.py", line 117
with open(logfile, 'w') as logfile:
^
SyntaxError: invalid syntax
Is this due to a problem in my configuration or is there a problem with
the package?
Thanks for any help.
Florent
---------------------------------------------------------------------------------
Error message during python-joblib installation:
---------------------------------------------------------------------------------
root at tethys:~# apt-get install python-joblib
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
libpthread-stubs0 python-libsvm x11proto-kb-dev mesa-common-dev
xtrans-dev x11proto-input-dev libxau-dev libx11-dev libxcb1-dev
x11proto-core-dev
libxdmcp-dev libpthread-stubs0-dev
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
python-joblib
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/49.8 kB of archives.
After this operation, 254 kB of additional disk space will be used.
Selecting previously deselected package python-joblib.
(Reading database ... 168560 files and directories currently installed.)
Unpacking python-joblib (from
.../python-joblib_0.6.0~b2-1~nd60+1_all.deb) ...
Setting up python-joblib (0.6.0~b2-1~nd60+1) ...
Processing triggers for python-support ...
/usr/lib/pymodules/python2.5/joblib/logger.py:117: Warning: 'with' will
become a reserved keyword in Python 2.6
Compiling /usr/lib/pymodules/python2.5/joblib/logger.py ...
File "/usr/lib/pymodules/python2.5/joblib/logger.py", line 117
with open(logfile, 'w') as logfile:
^
SyntaxError: invalid syntax
/usr/lib/pymodules/python2.5/joblib/test/test_parallel.py:153: Warning:
'as' will become a reserved keyword in Python 2.6
Compiling /usr/lib/pymodules/python2.5/joblib/test/test_parallel.py ...
File "/usr/lib/pymodules/python2.5/joblib/test/test_parallel.py",
line 153
except Exception as e:
^
SyntaxError: invalid syntax
More information about the Neurodebian-users
mailing list