Description of problem: Importing basemap fails Version-Release number of selected component (if applicable): 6.5 How reproducible: Very Steps to Reproduce: 1. start python 2. type "from mpl_toolkits import basemap" 3. watch error messages Actual results: Failed with error message: raceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.6/site-packages/mpl_toolkits/basemap/__init__.py", line 38, in <module> import pyproj, sys, os, math, dbflib File "/usr/lib64/python2.6/site-packages/mpl_toolkits/basemap/pyproj.py", line 48, in <module> from _proj import Proj as _Proj File "c_numpy.pxd", line 76, in _proj (src/_proj.c:3234) ValueError: numpy.dtype does not appear to be the correct type object >>> Expected results: basemap would be imported Additional info: This seems to be a recurrence of Bug 842870
What versioin of numpy, and from where?
I'll note that it works for me with numpy 1.4.1 from RHEL6.
root@gsh-vm ~]# yum list | grep numpy This system is not registered with RHN Classic or RHN Satellite. You can use rhn_register to register. RHN Satellite or RHN Classic support will be disabled. numpy.x86_64 1.4.1-9.el6 @rhel-x86_64-workstation-6 numpy-f2py.x86_64 1.4.1-9.el6 @rhel-x86_64-server-6
Can you report: python import numpy as np print np.__version__ rpm -V numpy
(In reply to Orion Poplawski from comment #2) > I'll note that it works for me with numpy 1.4.1 from RHEL6. I deleted numpy via yum remove basemap, and then reinstalled, and it works.
This bug can be closed in my opinion.
Thanks. Be aware that if you do package installs with pip as root it will overwrite the rpm installed versions.
(In reply to Orion Poplawski from comment #7) > Thanks. Be aware that if you do package installs with pip as root it will > overwrite the rpm installed versions. I try very hard not to use PIP unless there isn't a RPM available.
That's good. Just trying to throw out possible methods of corruption.
(In reply to Orion Poplawski from comment #9) > That's good. Just trying to throw out possible methods of corruption. Thank you.