[NumPy-Tickets] [NumPy] #1475: Cannot access date-time internals without ctypes installed

NumPy Trac numpy-tickets@scipy....
Wed Jun 2 16:14:34 CDT 2010


#1475: Cannot access date-time internals without ctypes installed
----------------------+-----------------------------------------------------
 Reporter:  sienkiew  |       Owner:  somebody
     Type:  defect    |      Status:  new     
 Priority:  normal    |   Milestone:  2.0.0   
Component:  Other     |     Version:          
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by sienkiew):

 As far as I can tell, python 2.5 does not always have ctypes:

 Mac OSX 10.5:
 {{{
 w% python
 Python 2.5.4 (r254:67916, Nov  5 2009, 16:32:32)
 [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import ctypes
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/usr/stsci/pyssgdev/Python-2.5.4/lib/python2.5/ctypes/__init__.py", line
 27, in <module>
     import gestalt
 ImportError: No module named gestalt
 >>>
 }}}

 Solaris 8:
 {{{
 % python
 Python 2.5.4 (r254:67916, Oct 23 2009, 16:32:19) [C] on sunos5
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import ctypes
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/usr/stsci/pyssgdev/Python-2.5.4/lib/python2.5/ctypes/__init__.py", line
 10, in <module>
     from _ctypes import Union, Structure, Array
 ImportError: No module named _ctypes
 >>>
 }}}

 It seems to work in python 2.5 on linux and python 2.6 on linux and mac.

 These are all python interpreters that I compiled from source, but I did
 not make any special effort to include/exclude ctypes.  The auto config
 must have done it, or it must be built-in to python.

 It is worth considering whether numpy should be dependent on "standard"
 libraries that may not be present.

 On my machines that do not have ctypes, this is the only test that is
 reporting a problem.  That suggests that any other test that requires
 ctypes is automatically skipped.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1475#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list