On Oct 12, 2:05 am, "Mike Hansen" <[EMAIL PROTECTED]> wrote:
> Weird.  cython.py passes all tests for me under an upgraded 2.8.5 ->
> 2.8.6 from source install.
>
> --Mike

Hi Mike,

I just reran

[EMAIL PROTECTED]:/tmp/Work-mabshoff/sage-2.8.6$ ./sage -t  devel/sage-
main/sage/misc/cython.py
sage -t  devel/sage-main/sage/misc/cython.py
         [4.6 s]

----------------------------------------------------------------------
All tests passed!
Total time for all tests: 4.6 seconds

And it works. For a reason see below.

Cheers,

Michael

>
> On 10/11/07, mabshoff <[EMAIL PROTECTED]> wrote:
>
>
>
> > The following happens on a compiled from source 2.8.6 on sage.math:
>
> > sage -t  devel/sage-main/sage/misc/cython.py
> > **********************************************************************
> > File "cython.py", line 316:
> >     sage: g = cython_lambda('double x, double y', 'x*x + y*y + x + y +
> > 17*x + 3.2')
> > Exception raised:
> >     Traceback (most recent call last):
> >       File "/tmp/Work-mabshoff/sage-2.8.6/local/lib/python2.5/
> > doctest.py", line 1212, in __run
> >         compileflags, 1) in test.globs
> >       File "<doctest __main__.example_4[1]>", line 1, in <module>
> >         g = cython_lambda('double x, double y', 'x*x + y*y + x + y +
> > 17*x + 3.2')###line 316:
> >     sage: g = cython_lambda('double x, double y', 'x*x + y*y + x + y +
> > 17*x + 3.2')
> >       File "/tmp/Work-mabshoff/sage-2.8.6/local/lib/python2.5/site-
> > packages/sage/misc/cython.py", line 357, in cython_lambda
> >         create_local_c_file=False)
> >       File "/tmp/Work-mabshoff/sage-2.8.6/local/lib/python2.5/site-
> > packages/sage/server/support.py", line 303, in cython_import_all
> >         create_local_c_file=create_local_c_file)
> >       File "/tmp/Work-mabshoff/sage-2.8.6/local/lib/python2.5/site-
> > packages/sage/server/support.py", line 286, in cython_import
> >         return __builtin__.__import__(name)
> >     ImportError: /tmp/Work-mabshoff/sage-2.8.5.1/local/lib/
> > libcblas.so: undefined symbol: ATL_ctbmv
> > **********************************************************************
> > File "cython.py", line 317:
> >     sage: g(2,3)
> > Exception raised:
> >     Traceback (most recent call last):
> >       File "/tmp/Work-mabshoff/sage-2.8.6/local/lib/python2.5/
> > doctest.py", line 1212, in __run
> >         compileflags, 1) in test.globs
> >       File "<doctest __main__.example_4[2]>", line 1, in <module>
> >         g(Integer(2),Integer(3))###line 317:
> >     sage: g(2,3)
> >     NameError: name 'g' is not defined
> > **********************************************************************
> > File "cython.py", line 319:
> >     sage: g(0,0)
> > Exception raised:
> >     Traceback (most recent call last):
> >       File "/tmp/Work-mabshoff/sage-2.8.6/local/lib/python2.5/
> > doctest.py", line 1212, in __run
> >         compileflags, 1) in test.globs
> >       File "<doctest __main__.example_4[3]>", line 1, in <module>
> >         g(Integer(0),Integer(0))###line 319:
> >     sage: g(0,0)
> >     NameError: name 'g' is not defined
> > **********************************************************************
> > File "cython.py", line 324:
> >     sage: f = cython_lambda('double x', 'sage.math.sin(x) + sage.a')
> > Exception raised:
> >     Traceback (most recent call last):
> >       File "/tmp/Work-mabshoff/sage-2.8.6/local/lib/python2.5/
> > doctest.py", line 1212, in __run
> >         compileflags, 1) in test.globs
> >       File "<doctest __main__.example_4[5]>", line 1, in <module>
> >         f = cython_lambda('double x', 'sage.math.sin(x) +
> > sage.a')###line 324:
> >     sage: f = cython_lambda('double x', 'sage.math.sin(x) + sage.a')
> >       File "/tmp/Work-mabshoff/sage-2.8.6/local/lib/python2.5/site-
> > packages/sage/misc/cython.py", line 357, in cython_lambda
> >         create_local_c_file=False)
> >       File "/tmp/Work-mabshoff/sage-2.8.6/local/lib/python2.5/site-
> > packages/sage/server/support.py", line 303, in cython_import_all
> >         create_local_c_file=create_local_c_file)
> >       File "/tmp/Work-mabshoff/sage-2.8.6/local/lib/python2.5/site-
> > packages/sage/server/support.py", line 286, in cython_import
> >         return __builtin__.__import__(name)
> >     ImportError: /tmp/Work-mabshoff/sage-2.8.5.1/local/lib/
> > libcblas.so: undefined symbol: ATL_ctbmv

Notice the 2.8.5.1 here -  I source sage-env from 2.8.5.1 and that
build has ATLAS installed. Why ./sage -testall doesn't see
LD_LIBRARY_PATH properly in this case I do not know. I have

[EMAIL PROTECTED]:/tmp/Work-mabshoff/sage-2.8.6$ env | grep LD_L
LD_LIBRARY_PATH=/tmp/Work-mabshoff/sage-2.8.5.1/local/lib/openmpi:/tmp/
Work-mabshoff/sage-2.8.5.1/local/lib/

before I start sage from the 2.8.6 directory.

Sorry for the noise.


> **********************************************************************
> > File "cython.py", line 325:
> >     sage: f(10)
> > Exception raised:
> >     Traceback (most recent call last):
> >       File "/tmp/Work-mabshoff/sage-2.8.6/local/lib/python2.5/
> > doctest.py", line 1212, in __run
> >         compileflags, 1) in test.globs
> >       File "<doctest __main__.example_4[6]>", line 1, in <module>
> >         f(Integer(10))###line 325:
> >     sage: f(10)
> >     TypeError: <lambda>() takes exactly 2 arguments (1 given)
> > **********************************************************************
> > File "cython.py", line 328:
> >     sage: f(10)
> > Exception raised:
> >     Traceback (most recent call last):
> >       File "/tmp/Work-mabshoff/sage-2.8.6/local/lib/python2.5/
> > doctest.py", line 1212, in __run
> >         compileflags, 1) in test.globs
> >       File "<doctest __main__.example_4[8]>", line 1, in <module>
> >         f(Integer(10))###line 328:
> >     sage: f(10)
> >     TypeError: <lambda>() takes exactly 2 arguments (1 given)
> > **********************************************************************
> > 1 items had failures:
> >    6 of   9 in __main__.example_4
>
> > I haven't seen a ticket for this one. Should we open one?
>
> > Cheers,
>
> > Michael



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to