Opened 12 years ago

Last modified 3 years ago

#267 closed defect

ctypes version conflict with numpy — at Initial Version

Reported by: davidfawcett Owned by: osgeo4w-dev@…
Priority: major Component: Package
Version: Keywords: python ctypes numpy
Cc:

Description

When I try to import numpy, I get the below error. It appears that it looks for ctypeslib.py in the right spot, but then it goes to the path for my 'system python', which is Python 2.5 for ctypes\init.py.

I just ran the OSGeo4W installer to update all of the packages.

GDAL 1.8.1, released 2011/07/09

H:\>python Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information.

import numpy

Traceback (most recent call last):

File "<stdin>", line 1, in <module> File "C:\OSGeo4W\apps\Python27\lib\site-packages\numpy\init.py", line 154,

in <module>

import ctypeslib

File "C:\OSGeo4W\apps\Python27\lib\site-packages\numpy\ctypeslib.py", line 60,

in <module>

import ctypes

File "D:\Python25\lib\ctypes\init.py", line 20, in <module>

raise Exception, ("Version number mismatch", version, _ctypes_version)

Exception: ('Version number mismatch', '1.0.2', '1.1.0')

Change History (0)

Note: See TracTickets for help on using tickets.