ImportError with basemap-0.99.3 windows binary installer

Hi Jeff,

I'm seeing the following error with basemap-0.99.3 on Windows. It was
installed using the binary installer from sourceforge (as were Numpy
and Matplotlib).

Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on

win32

Type "help", "copyright", "credits" or "license" for more information.

import numpy

numpy.__version__

'1.2.1'

import matplotlib
matplotlib.__version__

0.98.5.2

from mpl_toolkits import basemap

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "C:\Python25\Lib\site-packages\mpl_toolkits\basemap\__init__.py", line 34

, in <module>

    import pyproj, sys, os, math, dbflib

ImportError: No module named dbflib

From a quick look at the setup.py in SVN (around line 170) it seems

that shapelib and dbflib might be installed on the machine where the
installer is built and "provide_pyshapelib == 'auto'" is True during
the build process?

Cheers,
Scott

Scott Sinclair wrote:

Hi Jeff,

I'm seeing the following error with basemap-0.99.3 on Windows. It was
installed using the binary installer from sourceforge (as were Numpy
and Matplotlib).

Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on

win32

Type "help", "copyright", "credits" or "license" for more information.

import numpy
        
numpy.__version__
        
'1.2.1'

import matplotlib
matplotlib.__version__
        

0.98.5.2
  

from mpl_toolkits import basemap
        
Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "C:\Python25\Lib\site-packages\mpl_toolkits\basemap\__init__.py", line 34

, in <module>

    import pyproj, sys, os, math, dbflib

ImportError: No module named dbflib

>From a quick look at the setup.py in SVN (around line 170) it seems
that shapelib and dbflib might be installed on the machine where the
installer is built and "provide_pyshapelib == 'auto'" is True during
the build process?

Cheers,
Scott

Scott: Yep, you are right. I'll try to post a new installer today.

-Jeff

Scott Sinclair wrote:

Hi Jeff,

I'm seeing the following error with basemap-0.99.3 on Windows. It was
installed using the binary installer from sourceforge (as were Numpy
and Matplotlib).

Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on

win32

Type "help", "copyright", "credits" or "license" for more information.

import numpy
        
numpy.__version__
        
'1.2.1'

import matplotlib
matplotlib.__version__
        

0.98.5.2
  

from mpl_toolkits import basemap
        
Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "C:\Python25\Lib\site-packages\mpl_toolkits\basemap\__init__.py", line 34

, in <module>

    import pyproj, sys, os, math, dbflib

ImportError: No module named dbflib

>From a quick look at the setup.py in SVN (around line 170) it seems
that shapelib and dbflib might be installed on the machine where the
installer is built and "provide_pyshapelib == 'auto'" is True during
the build process?

Cheers,
Scott

Scott: I've replaced the windows installers on the sf download site - could you try the new ones and let me know if I've fixed the problem? Thanks.

-Jeff

···

--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg