[Numpy-discussion] numpy distutils and fcompiler error again

Nadav Horesh nadavh@visionsense....
Sat Nov 14 03:56:45 CST 2009


I encountered again the error "AttributeError: fcompiler" this time when tried to install scikits.image-0.2.2. The full log from "python setup.py instal" is:


Warning: Assuming default configuration (scikits/{setup_scikits,setup}.py was not found)
Appending scikits configuration to
Ignoring attempt to set 'name' (from '' to 'scikits')
cython -o /dev/shm/scikits.image-0.2.2/scikits/image/opencv/opencv_backend.c.new
 /dev/shm/scikits.image-0.2.2/scikits/image/opencv/opencv_backend.pyx
warning: /usr/lib64/python2.6/site-packages/Cython-0.11.3-py2.6-linux-x86_64.egg/Cython/Includes/numpy.pxd:170:33: String literals will no longer be Py3 bytes in Cython 0.12.
cython -o /dev/shm/scikits.image-0.2.2/scikits/image/opencv/opencv_cv.c.new /dev/shm/scikits.image-0.2.2/scikits/image/opencv/opencv_cv.pyx
warning: /usr/lib64/python2.6/site-packages/Cython-0.11.3-py2.6-linux-x86_64.egg/Cython/Includes/numpy.pxd:170:33: String literals will no longer be Py3 bytes in Cython 0.12.
Appending scikits.image.opencv configuration to scikits.image
Ignoring attempt to set 'name' (from 'scikits.image' to 'scikits.image.opencv')
cython -o /dev/shm/scikits.image-0.2.2/scikits/image/graph/spath.c.new /dev/shm/scikits.image-0.2.2/scikits/image/graph/spath.pyx
warning: /usr/lib64/python2.6/site-packages/Cython-0.11.3-py2.6-linux-x86_64.egg
/Cython/Includes/numpy.pxd:170:33: String literals will no longer be Py3 bytes i
n Cython 0.12.
Appending scikits.image.graph configuration to scikits.image
Ignoring attempt to set 'name' (from 'scikits.image' to 'scikits.image.graph')
cython -o /dev/shm/scikits.image-0.2.2/scikits/image/io/_plugins/_colormixer.c.n
ew /dev/shm/scikits.image-0.2.2/scikits/image/io/_plugins/_colormixer.pyx
warning: /usr/lib64/python2.6/site-packages/Cython-0.11.3-py2.6-linux-x86_64.egg
/Cython/Includes/numpy.pxd:170:33: String literals will no longer be Py3 bytes i
n Cython 0.12.
cython -o /dev/shm/scikits.image-0.2.2/scikits/image/io/_plugins/_histograms.c.n
ew /dev/shm/scikits.image-0.2.2/scikits/image/io/_plugins/_histograms.pyx
warning: /usr/lib64/python2.6/site-packages/Cython-0.11.3-py2.6-linux-x86_64.egg
/Cython/Includes/numpy.pxd:170:33: String literals will no longer be Py3 bytes in Cython 0.12.
Appending scikits.image.io configuration to scikits.image
Ignoring attempt to set 'name' (from 'scikits.image' to 'scikits.image.io')
Appending scikits.image configuration to
Ignoring attempt to set 'name' (from '' to 'scikits.image')
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
Traceback (most recent call last):
  File "setup.py", line 80, in <module>
    zip_safe=False, # the package can run out of an .egg file
  File "/usr/lib64/python2.6/site-packages/numpy/distutils/core.py", line 186, i
n setup
    return old_setup(**new_attr)
  File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.6/site-packages/numpy/distutils/command/build.py", line 37, in run
    old_build.run(self)
  File "/usr/lib64/python2.6/distutils/command/build.py", line 134, in run
    self.run_command(cmd_name)
  File "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python2.6/distutils/dist.py", line 994, in run_command
    cmd_obj.ensure_finalized()
  File "/usr/lib64/python2.6/distutils/cmd.py", line 117, in ensure_finalized
    self.finalize_options()
  File "/usr/lib64/python2.6/site-packages/numpy/distutils/command/config_compiler.py", line 66, in finalize_options
    v = getattr(c,a)
  File "/usr/lib64/python2.6/distutils/cmd.py", line 112, in __getattr__
    raise AttributeError, attr
AttributeError: fcompiler

I am using numpy 1.4.0.dev7728, python 2.6.4, gcc-4.3.4 on gentoo linux.

* Is it a result of a bad configuration file(s)?
* Would a fall back to an older version of numpy or python should solve the problem?
* Any other idea?

  Nadav


More information about the NumPy-Discussion mailing list