From: Mauro C. <mau...@gm...> - 2010-04-20 00:11:36
|
Dear Jeff and ALL, I have recently installed Python 2.6.5 (the "official" version downloaded from python.org) on a Windows XP machine (running Win XP Professional Edition with Service Pack 2), after removing the previous version of the interpreter (Python 2.5) and all associated libraries (including the installed versions of MPL and Basemap for Python 2.5). After that, I installed Matplotlib 0.98.5.3 for Python 2.6 and Basemap 0.99.4 (as this is the only version with a distribution package for Windows compatible with Python 2.6). Then, when I tried to import Basemap, I got the following error: C:/Python26/pythonw.exe -u -i Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys, os, wx >>> from mpl_toolkits.basemap import Basemap Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python26\lib\site-packages\mpl_toolkits\basemap\__init__.py", line 43, in <module> import _geoslib, netcdftime ImportError: DLL load failed with error code -1073741795 BTW, you may be musing why have I installed MPL 0.98.5 instead of the latest version (0.99.1). It happens that before installing the older version, I had indeed installed the latest version -- but in that case, when attempting to import Basemap, I got one of that nasty error reporting dialogue boxes of Win XP and Python not even issued an informative message! Well, from the traceback message above, it seems that the interpreter is not finding some required libraries, but shouldn't they be packaged with Basemap for Windows (as stated in the documentation)? Last, but not least, I should remark that I have never had any of these problems under either Python 2.5 or Python 2.4. Thanks in advance for any hints you can provide. Best regards, -- Dr. Mauro J. Cavalcanti P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mau...@gm... Web: http://sites.google.com/site/maurobio Linux Registered User #473524 * Ubuntu User #22717 |
From: Christoph G. <cg...@uc...> - 2010-04-20 02:24:32
|
I can not reproduce this with 32-bit Python 2.6.5, numpy 1.3.0, matplotlib 0.99.1 and basemap 0.99.4 on Windows 7/C2Q. However, the basemap 0.99.4 binary does not work with numpy 1.4.x. Depending on how you installed Python you might also need to install the "Microsoft Visual C++ 2008 redistributable package" separately. IIRC, geoslib was compiled with SSE2 enabled and will fail to load on older CPUs (this might cause the -1073741795 error). If you don't mind using developer versions, updated installers of matplotlib and basemap, compiled against numpy 1.4.1rc, are available at <http://www.lfd.uci.edu/~gohlke/pythonlibs/>. -- Christoph Gohlke Laboratory for Fluorescence Dynamics University of California, Irvine On 4/19/2010 5:11 PM, Mauro Cavalcanti wrote: > Dear Jeff and ALL, > > I have recently installed Python 2.6.5 (the "official" version > downloaded from python.org) on a Windows XP machine (running Win XP > Professional Edition with Service Pack 2), after removing the previous > version of the interpreter (Python 2.5) and all associated libraries > (including the installed versions of MPL and Basemap for Python 2.5). > > After that, I installed Matplotlib 0.98.5.3 for Python 2.6 and Basemap > 0.99.4 (as this is the only version with a distribution package for > Windows compatible with Python 2.6). > > Then, when I tried to import Basemap, I got the following error: > > C:/Python26/pythonw.exe -u -i > > Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit > (Intel)] on win32 > > Type "help", "copyright", "credits" or "license" for more information. > >>>> import sys, os, wx > >>>> from mpl_toolkits.basemap import Basemap > > Traceback (most recent call last): > > File "<stdin>", line 1, in<module> > > File "C:\Python26\lib\site-packages\mpl_toolkits\basemap\__init__.py", > line 43, in<module> > > import _geoslib, netcdftime > > ImportError: DLL load failed with error code -1073741795 > > > BTW, you may be musing why have I installed MPL 0.98.5 instead of the > latest version (0.99.1). It happens that before installing the older > version, I had indeed installed the latest version -- but in that > case, when attempting to import Basemap, I got one of that nasty error > reporting dialogue boxes of Win XP and Python not even issued an > informative message! > > Well, from the traceback message above, it seems that the interpreter > is not finding some required libraries, but shouldn't they be packaged > with Basemap for Windows (as stated in the documentation)? > > Last, but not least, I should remark that I have never had any of > these problems under either Python 2.5 or Python 2.4. > > Thanks in advance for any hints you can provide. > > Best regards, > |