[SciPy-dev] python2.6 and scipy

Nils Wagner nwagner at iam.uni-stuttgart.de
Tue Dec 23 07:21:57 EST 2008


On Sun, 21 Dec 2008 00:20:14 -0800
  "Jarrod Millman" <millman at berkeley.edu> wrote:
> On Sat, Dec 20, 2008 at 9:48 PM, David Cournapeau
> <david at ar.media.kyoto-u.ac.jp> wrote:
>> Nils Wagner wrote:
>>> AFAIK,python2.5 is not available in the current distro,
>>>
>>> http://packages.opensuse-community.org/index.jsp?searchTerm=python&distro=openSUSE_111
>>
>> I am a bit surprised, because many projects do not work 
>>flawlessly on
>> python 2.6. OTOH, it is a pretty good intensive for 
>>people to update
>> their packages :)
> 
>FYI, Fedora 11 will also have Python 2.6:
> https://fedoraproject.org/wiki/Releases/11/FeatureList
> 
> It doesn't come out for another 6 months:
> https://fedoraproject.org/wiki/Releases/11/Schedule
> 
> There is also an interesting thread about how Fedora 
>will handle the
> transition to Python 3.0:
> https://www.redhat.com/archives/fedora-devel-list/2008-December/msg00379.html
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev

I have applied Pearu's patch for python2.6.

Here is the output of scipy.test()
  
======================================================================
ERROR: test_implicit (test_odr.TestODR)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/odr/tests/test_odr.py", 
line 88, in test_implicit
     out = implicit_odr.run()
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/odr/odrpack.py", 
line 1055, in run
     self.output = Output(apply(odr, args, kwds))
TypeError: y must be a sequence or integer (if model is 
implicit)

======================================================================
ERROR: Tests Obrien transform
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_mstats_basic.py", 
line 469, in test_obrientransform
     assert_almost_equal(np.round(mstats.obrientransform(*args).T,4),
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/mstats_basic.py", 
line 1732, in obrientransform
     raise ValueError("Lack of convergence in 
obrientransform.")
ValueError: Lack of convergence in obrientransform.

======================================================================
ERROR: test_add_function_ordered 
(test_catalog.TestCatalog)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", 
line 279, in test_add_function_ordered
     q.add_function('f',string.upper)
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", 
line 650, in add_function
     self.add_function_persistent(code,function)
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", 
line 685, in add_function_persistent
     function_list = function_list + cat.get(code,[])
   File "/usr/lib64/python2.6/shelve.py", line 113, in get
     if key in self.dict:
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", 
line 73, in __getitem__
     pos, siz = self._index[key] # may raise KeyError
KeyError: 0

======================================================================
ERROR: Test persisting a function in the default catalog
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", 
line 267, in test_add_function_persistent1
     q.add_function_persistent('code',i)
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", 
line 685, in add_function_persistent
     function_list = function_list + cat.get(code,[])
   File "/usr/lib64/python2.6/shelve.py", line 113, in get
     if key in self.dict:
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", 
line 73, in __getitem__
     pos, siz = self._index[key] # may raise KeyError
KeyError: 0

======================================================================
ERROR: Shouldn't get a single file from the temp dir.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", 
line 195, in test_get_existing_files2
     q.add_function('code', os.getpid)
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", 
line 650, in add_function
     self.add_function_persistent(code,function)
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", 
line 685, in add_function_persistent
     function_list = function_list + cat.get(code,[])
   File "/usr/lib64/python2.6/shelve.py", line 113, in get
     if key in self.dict:
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", 
line 73, in __getitem__
     pos, siz = self._index[key] # may raise KeyError
KeyError: 0

======================================================================
FAIL: test_pbdv (test_basic.TestCephes)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/special/tests/test_basic.py", 
line 357, in test_pbdv
     assert_equal(cephes.pbdv(1,0),(0.0,0.0))
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/utils.py", 
line 176, in assert_equal
     assert_equal(actual[k], desired[k], 'item=%r\n%s' % 
(k,err_msg), verbose)
   File 
"/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/utils.py", 
line 183, in assert_equal
     raise AssertionError(msg)
AssertionError:
Items are not equal:
item=1

  ACTUAL: 1.0
  DESIRED: 0.0

----------------------------------------------------------------------
Ran 3356 tests in 57.961s

FAILED (KNOWNFAIL=2, SKIP=28, errors=5, failures=1)
<nose.result.TextTestResult run=3356 errors=5 failures=1>

Nils



More information about the SciPy-Dev mailing list