On 6/10/10 11:14 AM, Pierre GM wrote:
> On Jun 10, 2010, at 12:51 PM, Jeff Whitaker wrote:
>    
>> On 6/10/10 10:40 AM, Pierre GM wrote:
>>      
>>> All,
>>> Sorry, it's been a while since I've been using Basemap. I was just trying 
>>> to update my local svn directory to r8403 and reinstall basemap, but an 
>>> import fail w/ the following message:
>>> """
>>> Traceback (most recent call last):
>>>    File "<string>", line 1, in<module>
>>>    File "~/basemap-dev/lib/mpl_toolkits/basemap/__init__.py", line 43, 
>>> in<module>
>>>      import _geoslib, netcdftime
>>>    File "_geoslib.pyx", line 13, in _geoslib (src/_geoslib.c:4014)
>>> ValueError: numpy.ndarray does not appear to be the correct type object
>>> """
>>> I'm using numpy 2.0.0r8460 (development version). basemap can be 
>>> successfully imported w/ the latest stable version, though. What am I doing 
>>> wrong ?
>>> Thx in advance.
>>> P.
>>>
>>>        
>> Pierre:  That should have been fixed with a recompile of the _geoslib C 
>> extension  Are you sure you deleted the build directory before reinstalling 
>> basemap?
>>      
>
> I did. Do I have to recompile geos ? It should be independent of numpy, right 
> ? So I shouldn't have to touch it ?
> As far as I can tell, the setup picks up the proper versions of numpy and 
> Python...
>    

Pierre:  No, you don't need to recompile the geos library. I just 
installed numpy 2.0 svn with python 2.6, and after a recompile of both 
matplotlib from svn and basemap from svn everything worked fine.  I 
suspect you are still picking up an old _geoslib.so somehow.

-Jeff



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


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to