[NumPy-Tickets] [NumPy] #2108: Datetime failures with MinGW

NumPy Trac numpy-tickets@scipy....
Sun Jul 15 11:28:51 CDT 2012


#2108: Datetime failures with MinGW
----------------------------+-----------------------------------------------
 Reporter:  rgommers        |       Owner:  somebody
     Type:  defect          |      Status:  new     
 Priority:  normal          |   Milestone:  1.7.0   
Component:  numpy.core      |     Version:  1.6.1   
 Keywords:  datetime mingw  |  
----------------------------+-----------------------------------------------

Comment(by rgommers):

 Latest output from our XP buildbot:
 {{{
 ======================================================================
 ERROR: test_datetime_arange (test_datetime.TestDateTime)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "C:\buildbot\numpy\b11\numpy-install\Lib\site-
 packages\numpy\core\tests\test_datetime.py", line 1351, in
 test_datetime_arange
     assert_raises(ValueError, np.arange, np.datetime64('today'),
 OSError: Failed to use '_localtime64_s' to convert to a local time

 ======================================================================
 ERROR: test_datetime_y2038 (test_datetime.TestDateTime)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "C:\buildbot\numpy\b11\numpy-install\Lib\site-
 packages\numpy\core\tests\test_datetime.py", line 1706, in
 test_datetime_y2038
     a = np.datetime64('2038-01-20T13:21:14')
 OSError: Failed to use '_gmtime64_s' to convert to a UTC time

 ======================================================================
 ERROR: test_pydatetime_creation (test_datetime.TestDateTime)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "C:\buildbot\numpy\b11\numpy-install\Lib\site-
 packages\numpy\core\tests\test_datetime.py", line 467, in
 test_pydatetime_creation
     a = np.array(['today', datetime.date.today()], dtype='M8[D]')
 OSError: Failed to use '_localtime64_s' to convert to a local time

 ======================================================================
 ERROR: test_string_parser_variants (test_datetime.TestDateTime)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "C:\buildbot\numpy\b11\numpy-install\Lib\site-
 packages\numpy\core\tests\test_datetime.py", line 1054, in
 test_string_parser_variants
     assert_equal(np.array(['1980-02-29T01:02:03'], np.dtype('M8[s]')),
 OSError: Failed to use '_gmtime64_s' to convert to a UTC time

 ======================================================================
 ERROR: test_timedelta_scalar_construction_units
 (test_datetime.TestDateTime)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "C:\buildbot\numpy\b11\numpy-install\Lib\site-
 packages\numpy\core\tests\test_datetime.py", line 287, in
 test_timedelta_scalar_construction_units
     assert_equal(np.datetime64('2010-03-12T17').dtype,
 OSError: Failed to use '_gmtime64_s' to convert to a UTC time

 ======================================================================
 ERROR: Failure: OSError (Failed to use '_gmtime64_s' to convert to a UTC
 time)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "C:\Python26\lib\site-packages\nose\loader.py", line 382, in
 loadTestsFromName
     addr.filename, addr.module)
   File "C:\Python26\lib\site-packages\nose\importer.py", line 39, in
 importFromPath
     return self.importFromDir(dir_path, fqname)
   File "C:\Python26\lib\site-packages\nose\importer.py", line 86, in
 importFromDir
     mod = load_module(part_fqname, fh, filename, desc)
   File "C:\buildbot\numpy\b11\numpy-install\Lib\site-
 packages\numpy\core\tests\test_multiarray.py", line 916, in <module>
     class TestArgmax(TestCase):
   File "C:\buildbot\numpy\b11\numpy-install\Lib\site-
 packages\numpy\core\tests\test_multiarray.py", line 938, in TestArgmax
     np.datetime64('1994-06-21T14:43:15'),
 OSError: Failed to use '_gmtime64_s' to convert to a UTC time
 }}}

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


More information about the NumPy-Tickets mailing list