Yatima Meiji wrote: > I'm currently running a fresh install of Suse 10.1. I ran the numpy > setup script using "python setup.py install" and it fails with this error: > > Running from numpy source directory. > Traceback (most recent call last): > File "setup.py", line 89, in ? > setup_package() > File "setup.py", line 59, in setup_package > from numpy.distutils.core import setup > File "/home/xxx/numpy-1.0b2/numpy/distutils/__init__.py", line 5, in ? > import ccompiler > File "/home/xxx/numpy-1.0b2/numpy/distutils/ccompiler.py", line 6, in ? > from distutils.ccompiler import * > ImportError: No module named distutils.ccompiler > > I checked ccompiler.py to see what was wrong. I'm not much of a > programmer, but it seems strange to have ccompiler.py reference itself.
It's not; it's trying to import from the standard library's distutils.ccompiler module. Suse, like several other Linux distributions, separates distutils from the rest of the standard library in a separate package which you will need to install. It will be called something like python-dev or python-devel. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion