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

NumPy Trac numpy-tickets@scipy....
Wed May 5 12:51:50 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:            |  
----------------------+-----------------------------------------------------
 {{{
 ======================================================================
 ERROR: test_type_check.TestDateTimeData.test_basic
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/stsci/pyssgdev/2.5.4/nose/case.py", line 183, in runTest
     self.test(*self.arg)
   File "/usr/stsci/pyssgdev/2.5.4/numpy/lib/tests/test_type_check.py",
 line 382, in test_basic
     assert_equal(datetime_data(a.dtype), ('us', 1, 1, 1))
   File "/usr/stsci/pyssgdev/2.5.4/numpy/lib/type_check.py", line 610, in
 datetime_data
     raise RuntimeError, "Cannot access date-time internals without ctypes
 installed"
 RuntimeError: Cannot access date-time internals without ctypes installed
 }}}

 Happens on

  - Mac OSX Leopard, 32 bit python 2.5.4

  - Solaris 8, 32 bit Python 2.5.4

 Not on

  - Red Hat Enterprise 4 Linux, 32 or 64 bit python 2.5

  - Red Hat Enterprise 5 linux, 32 bit python 2.5

 When you compile python, it automatically decides whether to include
 ctypes.  In my experience, it likes Linux but not Mac or Solaris.

 It is not clear to me if this means that the test should be changed (e.g.
 to skip if ctypes is not available) or if ctypes should become a hard and
 fast requirement to run numpy.

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


More information about the NumPy-Tickets mailing list