[Numpy-discussion] cannot import name ccompiler

Jason Braswell jasonbraswell314@gmail....
Tue Apr 10 12:55:10 CDT 2007


Hi, folks.  I'm a newbie trying to get started with SciPy on Windows.  I
installed it without problem, but when I try to import the SciPy module or
run the 'numpy' test, I get the following output:
***********************************************
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\Python24\Lib\site-packages\numpy\__init__.py", line 89, in test
    return NumpyTest().test(level, verbosity)
  File "C:\Python24\Lib\site-packages\numpy\testing\numpytest.py", line 288,
in
__init__
    from numpy.distutils.misc_util import get_frame
  File "C:\Python24\Lib\site-packages\numpy\distutils\__init__.py", line 5,
in ?

    import ccompiler
  File "C:\Python24\Lib\site-packages\numpy\distutils\ccompiler.py", line 6,
in
?
    from distutils.ccompiler import *
  File "C:\Python24\Lib\site-packages\numpy\distutils\__init__.py", line 5,
in ?

    import ccompiler
  File "C:\Python24\Lib\site-packages\numpy\distutils\ccompiler.py", line 7,
in
?
    from distutils import ccompiler #as ccompiler
ImportError: cannot import name ccompiler
*****************************************************************
I tried to fix it by adding damn near everything to my path, which now looks
like this:
*********************************************************************
>>> sys.path
['', 'C:\\Python24\\lib\\site-packages\\setuptools-0.6a11dev-py2.4.egg',
'C:\\Py
thon24', 'C:\\Python24\\Lib\\site-packages',
'C:\\Python24\\Lib\\site-packages\\
numarray', 'C:\\Documents and Settings\\xtrader\\Numeric',
'C:\\Python24\\Lib\\s
ite-packages\\PIL', 'C:\\Python24\\Lib\\site-packages\\scipy',
'C:\\Python24\\Li
b\\site-packages\\numpy', 'C:\\Python24\\Lib\\site-packages\\numarray\\fft',
'C:
\\Python24\\Lib\\site-packages\\Numeric\\FFT',
'C:\\Python24\\Lib\\site-packages
\\numpy\\dft', 'C:\\Python24\\Lib\\site-packages\\scipy\\fftpack',
'C:\\Python24
\\Lib\\site-package\\numpy\\distutils',
'C:\\WINDOWS\\system32\\python24.zip', '
C:\\Documents and Settings\\xtrader', 'C:\\Python24\\DLLs',
'C:\\Python24\\lib',
 'C:\\Python24\\lib\\plat-win', 'C:\\Python24\\lib\\lib-tk',
'C:\\Python24\\lib\
\site-packages\\Numeric', 'C:\\Python24\\lib\\site-packages\\win32',
'C:\\Python
24\\lib\\site-packages\\win32\\lib',
'C:\\Python24\\lib\\site-packages\\Pythonwi
n', 'C:\\Python24\\lib\\site-packages\\vtk_python',
'C:\\Python24\\lib\\site-pac
kages\\wx-2.6-msw-unicode-enthought', 'C:\\Documents and
Settings\\xtrader\\Nume
ric', 'C:\\Python24\\Lib\\site-package\\numpy\\distutils']
********************************************************************************

Any ideas?  Thanks in advance.
-- 
Jason Braswell
(352) 256-7581
www.ronpaul.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20070410/726c8488/attachment.html 


More information about the Numpy-discussion mailing list