[SciPy-user] ImportError: cannot import name Int8 GJKRS

Wolfgang wollez at gmx.net
Wed Aug 2 13:25:47 CDT 2006


Hi,

I've tried to run the test file from two threads above but I only get an
error:

   File "test_det.py", line 7, in ?
     from pylab import plot, show, subplot, legend, xlim, ylim, xlabel,
ylabel, scatter, figure, semilogy, title, pcolor, contour, cm, fill,
contourf, cm, colorbar, savefig
   File "C:\Python24\Lib\site-packages\pylab.py", line 1, in ?
     from matplotlib.pylab import *
   File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 196, in ?
     import cm
   File "C:\Python24\Lib\site-packages\matplotlib\cm.py", line 5, in ?
     import colors
   File "C:\Python24\Lib\site-packages\matplotlib\colors.py", line 33, in ?
     from numerix import array, arange, take, put, Float, Int, where, \
   File "C:\Python24\Lib\site-packages\matplotlib\numerix\__init__.py",
line 68, in ?
     from _sp_imports import nx, infinity
   File
"C:\Python24\Lib\site-packages\matplotlib\numerix\_sp_imports.py", line
1, in ?
     from numpy import Int8, UInt8, \
ImportError: cannot import name Int8


Installed are the binaries from sourceforge:
Python 2.4.3
matplotlib 0.87.3
numarray 1.5.1
numeric 24.2
numpy 1.0b1
scipy 0.5.0

debug annoying output:

C:\Python24\lib\site-packages\matplotlib\__init__.py:947: UserWarning:
Bad val "free" on line #200
	"image.aspect : free              # free | preserve"
	in file "C:\Documents and Settings\s0167070\.matplotlib\matplotlibrc"
	not a valid aspect specification
   warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file
"%s"\n\t%s' % (
loaded rc file C:\Documents and Settings\s0167070\.matplotlib\matplotlibrc
matplotlib version 0.87.3
verbose.level debug-annoying
interactive is False
platform is win32
loaded modules: ['numpy.distutils.misc_util', 'scipy.linalg.lapack',
'_bisect', 'scipy.io.numpyio', 'numpy.core.info', 'scipy.cluster.info',
'numpy.distutils.re', 'scipy.linalg.new', 'random',
'numpy.core.defchararray', 'numpy.distutils.numpy', '__future__',
'scipy.linalg.info', 'matplotlib.tempfile', 'numpy.lib.getlimits',
'bisect', 'scipy.special.basic', 'scipy.io.cPickle',
'scipy.linsolve.umfpack', 'numpy.core.numerictypes',
'scipy.misc.inspect', 'numpy.random.mtrand', 'scipy.linsolve',
'matplotlib.shutil', 'scipy.io.info', 'distutils', 'scipy.io.scipy',
'numpy.random.info', 'tempfile', 'mmap', 'md5', 'numpy.linalg',
'numpy.core.os', 'numpy.testing.types', 'numpy.testing', 'collections',
'scipy.special.__future__', 'numpy.core.umath',
'numpy.distutils.ccompiler', 'distutils.types', 'codecs',
'numpy.distutils.exec_command', 'scipy.weave.info',
'numpy.core.scalarmath', 'zipimport', 'string', 'numpy.testing.os',
'numpy.lib.arraysetops', 'numpy.testing.unittest', 'numpy.lib.math',
'repr', 'matplotlib.__future__', 'numpy.distutils.tempfile', 'scipy',
'numpy.testing.re', 'itertools', 'numpy.version', 'numpy.lib.re',
'distutils.re', 'numpy.distutils.info', 'scipy.io.mio',
'numpy.testing.operator', 'numpy.lib.type_check', 'scipy.linalg.scipy',
'scipy.misc.common', 'distutils.dir_util', 'numpy.distutils.distutils',
'scipy.integrate.info', 'signal', 'numpy.lib.types', 'numpy.numpy',
'shelve', 'pydoc', 'numpy.distutils.copy',
'numpy.oldnumeric.olddefaults', 'scipy.signal.info',
'scipy.linsolve._zsuperlu', 'numpy.core.multiarray', 'matplotlib.pytz',
'scipy.linalg', 'distutils.log', 'distutils.copy', 'dis',
'distutils.version', 'cStringIO', 'scipy.linsolve._ssuperlu',
'scipy.linalg.matfuncs', 'scipy.linsolve._superlu', 'numpy.distutils',
'locale', 'numpy.add_newdocs', 'scipy.special._cephes',
'distutils.sysconfig', 'scipy.linalg.flapack',
'scipy.linsolve.umfpack.re', 'numpy.oldnumeric.sys',
'matplotlib.dateutil', 'scipy.version', 'numpy.lib.sys', 'encodings',
'scipy.stats.info', 'numpy.oldnumeric', 'shutil',
'numpy.oldnumeric.cPickle', 'numpy.distutils.__version__', 'dateutil',
'scipy.io.cStringIO', 'scipy.linalg._iterative', 'scipy.misc.pydoc',
'numpy.imp', 'scipy.misc.info', 'scipy.misc.numpy', 'token',
'numpy.lib.numpy', 'numpy.dft.helper', 're', 'numpy.lib._compiled_base',
'scipy.io.data_store', 'ntpath', 'scipy.sparse.bisect',
'numpy.core.mmap', 'new', 'math', 'scipy.io.zlib',
'scipy.linsolve.linsolve', 'scipy.sparse.sparsetools', 'numpy.core.ma',
'scipy.misc.helpmod', 'UserDict', 'scipy.sparse.copy', 'inspect',
'distutils.os', 'scipy.numpy', 'scipy.special.orthogonal', 'exceptions',
'numpy.lib.info', 'distutils.dep_util', 'numpy.lib.warnings',
'scipy.linalg.decomp', 'numpy.core.sys', 'numpy.core._sort',
'scipy.lib.lapack.info', 'numpy.os', 'matplotlib.re', 'pytz.bisect',
'distutils.ccompiler', 'numpy.distutils.string', 'pylab', '_locale',
'scipy.io.array_import', 'thread', 'sre', 'numpy.core.memmap',
'traceback', 'scipy.interpolate.info', 'scipy.linsolve.umfpack.imp',
'numpy.core._internal', 'distutils.spawn', 'opcode', 'scipy.io',
'numpy.testing.imp', 'numpy.linalg.lapack_lite', 'scipy.io.dumb_shelve',
'distutils.sys', 'os', 'scipy.io.re', 'numpy.dft.info',
'numpy.distutils.new', 'scipy.special.scipy', 'numpy.dft.types',
'numpy.core.string', 'numpy.dft', '_sre', 'unittest',
'numpy.testing.sys', 'numpy.random', 'numpy.linalg.numpy',
'__builtin__', 'scipy.linsolve.numpy', 'numpy.lib.twodim_base',
'scipy.linalg.blas', 'numpy.core.cPickle', 'scipy.sparse.operator',
'scipy.linalg._flinalg', 'operator', 'distutils.util', 'sre_constants',
'distutils.string', 'scipy.linsolve._dsuperlu', 'matplotlib.datetime',
'scipy.special.types', 'numpy.distutils.unixccompiler', 'posixpath',
'imp', 'numpy.oldnumeric.numpy', 'errno', 'numpy.distutils.imp',
'binascii', 'scipy.optimize.info', 'scipy.linalg.fblas',
'numpy.core.arrayprint', 'datetime', 'matplotlib.md5', 'types',
'scipy.linsolve.scipy', 'scipy.special.info', 'numpy.core.numpy',
'numpy', 'sets', 'numpy.dft.fftpack', 'numpy.core.defmatrix',
'scipy.sparse.numpy', 'cPickle', 'scipy.linsolve.umfpack.scipy',
'pytz.sys', 'scipy.linsolve._csuperlu', 'scipy.sparse.itertools',
'scipy.sparse', '_codecs', 'tokenize', 'scipy.lib.blas.info',
'matplotlib.sys', 'encodings.cp1252', 'scipy.special.numpy', 'pytz',
'scipy.io.sys', 'numpy.testing.utils', 'scipy.io.mmio',
'scipy.linsolve.umfpack.umfpack', 'numpy.distutils.glob',
'numpy.lib.ufunclike', 'copy', 'numpy.core.re', 'struct',
'numpy.core.fromnumeric', 'scipy.linalg.warnings',
'numpy.core.copy_reg', 'numpy.lib.scimath', 'scipy.special.specfun',
'numpy.lib', 'numpy.random.numpy', 'scipy.io.types',
'scipy.linsolve.umfpack.info', 'numpy.dft.fftpack_lite',
'scipy.sparse.info', 'encodings.aliases', 'numpy.lib.function_base',
'fnmatch', 'sre_parse', 'scipy.os', 'scipy.linalg.basic',
'scipy.linalg.linalg_version', 'numpy.distutils.__config__',
'distutils.distutils', 'scipy.linalg.flinalg', 'copy_reg',
'sre_compile', '_random', 'numpy.testing.glob', 'scipy.io.numpy',
'site', 'numpy.lib.polynomial', 'numpy._import_tools', 'numpy.glob',
'scipy.ndimage.info', 'numpy.lib.time', 'scipy.linalg.cblas',
'__main__', 'numpy.dft.numpy', 'numpy.core.records',
'numpy.core._dotblas', 'numpy.sys', 'scipy.special',
'numpy.oldnumeric.types', 'matplotlib.os', 'numpy.testing.traceback',
'strop', 'numpy.testing.numpytest', 'numpy.core.numeric',
'numpy.linalg.info', 'distutils.unixccompiler', 'encodings.codecs',
'pytz.datetime', 'scipy.maxentropy.info', 'numpy.core',
'numpy.testing.info', 'scipy.linalg.iterative', 'numpy.distutils.sys',
'encodings.exceptions', 'numpy.distutils.log', 'nt', 'pytz.sets',
'scipy.io.os', 'stat', 'scipy.linalg.clapack', 'numpy.lib.utils',
'numpy.lib.index_tricks', 'numpy.distutils.os', 'warnings',
'encodings.types', 'glob', 'numpy.lib.shape_base', 'numpy.dual',
'numpy.core.types', 'sys', 'scipy.sparse.sparse', 'numpy.core.warnings',
'zlib', 'numpy.core.__builtin__', 'distutils.file_util',
'scipy.fftpack.info', 'numpy.lib.os', 'numpy.__config__',
'scipy.misc.types', 'os.path', 'matplotlib',
'scipy.linsolve.umfpack.numpy', 'scipy.linalg.calc_lwork',
'numpy.oldnumeric.compat', 'scipy.misc', 'scipy.misc.sys',
'matplotlib.distutils', 'numpy.core.cStringIO', 'pytz.tzinfo',
'distutils.errors', 'scipy.lib.info', 'scipy.linalg.numpy', 'linecache',
'scipy.io.struct', 'scipy.linsolve.info', 'time', 'scipy.io.shelve',
'scipy.io.pickler', 'numpy.lib.machar', 'scipy.misc.limits',
'numpy.linalg.linalg', 'matplotlib.warnings', 'scipy.__config__',
'numpy.testing.numpy']
Traceback (most recent call last):
   File "test_det.py", line 7, in ?
     from pylab import plot, show, subplot, legend, xlim, ylim, xlabel,
ylabel, scatter, figure, semilogy, title, pcolor, contour, cm, fill,
contourf, cm, colorbar, savefig
   File "C:\Python24\Lib\site-packages\pylab.py", line 1, in ?
     from matplotlib.pylab import *
   File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 196, in ?
     import cm
   File "C:\Python24\Lib\site-packages\matplotlib\cm.py", line 5, in ?
     import colors
   File "C:\Python24\Lib\site-packages\matplotlib\colors.py", line 33, in ?
     from numerix import array, arange, take, put, Float, Int, where, \
   File "C:\Python24\Lib\site-packages\matplotlib\numerix\__init__.py",
line 68, in ?
     from _sp_imports import nx, infinity
   File
"C:\Python24\Lib\site-packages\matplotlib\numerix\_sp_imports.py", line
1, in ?
     from numpy import Int8, UInt8, \
ImportError: cannot import name Int8
>Exit code: 1    Time: 1.174



More information about the SciPy-user mailing list