[Neurodebian-users] Non-critical python2.5 related syntax errors while installing nipy

Chris Filo Gorgolewski chris.gorgolewski at gmail.com
Fri Sep 2 13:30:08 UTC 2011


Hi,
while installing nipy on a debian server we have encountered syntax
errors (see the log in the attachment). This was only causing
confusion since the package works well in python 2.6.

Best,
Chris


---------- Forwarded message ----------
From: Dominic Job <Dominic.Job at ed.ac.uk>
Date: 1 September 2011 12:54
Subject: sympy errors etc
To: Chris Filo Gorgolewski <chris.gorgolewski at gmail.com>


I am running neuro debian on the server.

D

Dr Dominic Job
Division of Clinical Neurosciences
Edinburgh University
Western General Hospital
Crewe Road
Edinburgh
EH4 2XU

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
-------------- next part --------------


root at bvm04:/home/djob# apt-get  install python-nipy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.32-5-686 linux-headers-2.6-686 libsprng2 lynx libpvm3 openmpi-checkpoint liberror-perl odbcinst unixodbc blcr-dkms ggobi libquantlib-1.0.0 odbcinst1debian2 blcr-util
  expect mpi-default-bin dkms rsync libcr0 pvm courier-authlib-userdb courier-authlib openmpi-bin bwidget linux-kbuild-2.6.32 openmpi-common linux-headers-2.6.32-5-common
  courier-authdaemon
Use 'apt-get autoremove' to remove them.
Suggested packages:
  python-mvpa
The following NEW packages will be installed:
  python-nipy
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 0 B/703 kB of archives.
After this operation, 3,486 kB of additional disk space will be used.
Selecting previously deselected package python-nipy.
(Reading database ... 170175 files and directories currently installed.)
Unpacking python-nipy (from .../python-nipy_0.1.2+201100720-2~nd60+1_all.deb) ...
Setting up python-nipy (0.1.2+201100720-2~nd60+1) ...
Processing triggers for python-support ...
Compiling /usr/lib/pymodules/python2.5/nipy/algorithms/registration/tests/test_cubic_spline.py ...
  File "/usr/lib/pymodules/python2.5/nipy/algorithms/registration/tests/test_cubic_spline.py", line 6
    from .._cubic_spline import *
SyntaxError: 'import *' not allowed with 'from .'

Compiling /usr/lib/pymodules/python2.5/nipy/labs/bindings/benchmarks/bench_numpy.py ...
  File "/usr/lib/pymodules/python2.5/nipy/labs/bindings/benchmarks/bench_numpy.py", line 7
    from ....testing import *
SyntaxError: 'import *' not allowed with 'from .'

Compiling /usr/lib/pymodules/python2.5/nipy/labs/bindings/tests/test_numpy.py ...
  File "/usr/lib/pymodules/python2.5/nipy/labs/bindings/tests/test_numpy.py", line 6
    from ....testing import *
SyntaxError: 'import *' not allowed with 'from .'

Compiling /usr/lib/pymodules/python2.5/nipy/labs/spatial_models/tests/test_mroi.py ...
  File "/usr/lib/pymodules/python2.5/nipy/labs/spatial_models/tests/test_mroi.py", line 11
    from ..mroi import *
SyntaxError: 'import *' not allowed with 'from .'

Compiling /usr/lib/pymodules/python2.5/nipy/labs/spatial_models/tests/test_parcel_io.py ...
  File "/usr/lib/pymodules/python2.5/nipy/labs/spatial_models/tests/test_parcel_io.py", line 5
    from ..parcel_io import *
SyntaxError: 'import *' not allowed with 'from .'

Compiling /usr/lib/pymodules/python2.5/nipy/labs/utils/mask.py ...
  File "/usr/lib/pymodules/python2.5/nipy/labs/utils/mask.py", line 12
    from ..mask import *
SyntaxError: 'import *' not allowed with 'from .'

N: Ignoring file 'neurodebian.sources.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension




root at bvm04:/home/djob# apt-get  install python-sympy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.32-5-686 linux-headers-2.6-686 libsprng2 lynx libpvm3 openmpi-checkpoint liberror-perl odbcinst unixodbc blcr-dkms ggobi libquantlib-1.0.0 odbcinst1debian2 blcr-util
  expect mpi-default-bin dkms rsync libcr0 pvm courier-authlib-userdb courier-authlib openmpi-bin bwidget linux-kbuild-2.6.32 openmpi-common linux-headers-2.6.32-5-common
  courier-authdaemon
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  python-sympy
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 1,693 kB of archives.
After this operation, 9,490 kB of additional disk space will be used.
Get:1 http://http.us.debian.org/debian/ squeeze/main python-sympy all 0.6.7-1.1 [1,693 kB]
Fetched 1,693 kB in 2s (566 kB/s)         
Selecting previously deselected package python-sympy.
(Reading database ... 170592 files and directories currently installed.)
Unpacking python-sympy (from .../python-sympy_0.6.7-1.1_all.deb) ...
Processing triggers for menu ...
Processing triggers for man-db ...
Setting up python-sympy (0.6.7-1.1) ...
Processing triggers for menu ...
Processing triggers for python-support ...
Compiling /usr/lib/pymodules/python2.5/nipy/algorithms/registration/tests/test_cubic_spline.py ...
  File "/usr/lib/pymodules/python2.5/nipy/algorithms/registration/tests/test_cubic_spline.py", line 6
    from .._cubic_spline import *
SyntaxError: 'import *' not allowed with 'from .'

Compiling /usr/lib/pymodules/python2.5/nipy/labs/bindings/benchmarks/bench_numpy.py ...
  File "/usr/lib/pymodules/python2.5/nipy/labs/bindings/benchmarks/bench_numpy.py", line 7
    from ....testing import *
SyntaxError: 'import *' not allowed with 'from .'

Compiling /usr/lib/pymodules/python2.5/nipy/labs/bindings/tests/test_numpy.py ...
  File "/usr/lib/pymodules/python2.5/nipy/labs/bindings/tests/test_numpy.py", line 6
    from ....testing import *
SyntaxError: 'import *' not allowed with 'from .'

Compiling /usr/lib/pymodules/python2.5/nipy/labs/spatial_models/tests/test_mroi.py ...
  File "/usr/lib/pymodules/python2.5/nipy/labs/spatial_models/tests/test_mroi.py", line 11
    from ..mroi import *
SyntaxError: 'import *' not allowed with 'from .'

Compiling /usr/lib/pymodules/python2.5/nipy/labs/spatial_models/tests/test_parcel_io.py ...
  File "/usr/lib/pymodules/python2.5/nipy/labs/spatial_models/tests/test_parcel_io.py", line 5
    from ..parcel_io import *
SyntaxError: 'import *' not allowed with 'from .'

Compiling /usr/lib/pymodules/python2.5/nipy/labs/utils/mask.py ...
  File "/usr/lib/pymodules/python2.5/nipy/labs/utils/mask.py", line 12
    from ..mask import *
SyntaxError: 'import *' not allowed with 'from .'



More information about the Neurodebian-users mailing list