[osgeo4w-dev] Re: [osgeo4w] #267: ctypes version conflict with numpy

OSGeo4W trac_osgeo4w at osgeo.org
Sat Mar 10 00:54:47 EST 2012

#267: ctypes version conflict with numpy
Reporter:  davidfawcett  |       Owner:  osgeo4w-dev@…              
    Type:  defect        |      Status:  new                        
Priority:  major         |   Component:  Package                    
 Version:                |    Keywords:  python ctypes numpy        

Comment(by maphew):

 I can't replicate the error exactly, but I came close by opening a command
 shell via Osgeo4w.bat and then:
 O:\> set PYTHONPATH=C:\Python25;C:\Python25\Lib;C:\Python25\DLLs

 O:\> python test-ticket247.py
 :: contains "import ctypes"

 Traceback (most recent call last):
   File "test-ticket247.py", line 1, in <module>
     import ctypes
   File "C:\Python25\Lib\ctypes\__init__.py", line 10, in <module>
     from _ctypes import Union, Structure, Array
 ImportError: Module use of python25.dll conflicts with this version of

 O:\> python --version
 Python 2.7.2

 This computer (Win7 x64) has python 2.5 (+ numpy) and 2.7 installed from
 python.org using the standard .msi's, and 2.7 via Osgeo4W; all pythons are
 32bit. I use the Osgeo4w python most of the time.

 It's clear something is allowing your python 2.5 environment to bleed over
 but I don't know what or where you might look next. I don't think it's
 coming from the osgeo4w side.

Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/267#comment:3>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

More information about the osgeo4w-dev mailing list