This is usually caused by a mismatch in the Unicode mode of the python interpreter and the extension module.
Python can be built to use either 2-byte or 4-byte Unicode code points. If you build an extension on a Python interpreter that uses one, but use it on another, this error is the most common result. Did you build basemap using the same Python interpreter that you are using to run it? Cheers, Mike nbv4 wrote: > I was able to get it working on my home machine, but can't get it installed > on my webhost. I get this error when I try to import the module: > > -------------------------------------- > > Python 2.6 (r26:66714, Apr 30 2009, 20:04:43) > [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > (InteractiveConsole) > >>>> from mpl_toolkits.basemap import Basemap >>>> > /home/nbv4/lib/python2.6/dbflib/dbflib.py:2: RuntimeWarning: Python C API > version mismatch for module dbflibc: This Python has API version 1013, > module dbflibc has version 1012. > import dbflibc > /home/nbv4/lib/python2.6/shapelib/shapelib.py:2: RuntimeWarning: Python C > API version mismatch for module shapelibc: This Python has API version 1013, > module shapelibc has version 1012. > import shapelibc > Traceback (most recent call last): > File "<console>", line 1, in <module> > File "/home/nbv4/lib/python2.6/mpl_toolkits/basemap/__init__.py", line 43, > in <module> > import _geoslib, netcdftime > ImportError: /home/nbv4/lib/python2.6/_geoslib.so: undefined symbol: > PyUnicodeUCS4_DecodeUTF8 > > --------------------------------------- > > Any ideas as to what may be causing this? > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users