[sage-devel] Re: SAGE-2.5 alpha 2

2007-05-05 Thread Nick Alexander

Martin Albrecht [EMAIL PROTECTED] writes:

 On Thursday 03 May 2007 18:33, Joel B. Mohler wrote:
 Alpha 2 builds fine on x86 Gentoo, but it has a whole bunch of make test
 errors. The entire list of files is below.  The ones I reran and looked at
 individually all seem to be related to singular.  I know basically nothing
 about interacting with singular aside from through sage so I don't really
 know how to debug any further than a cursory inspection.

 As I changed the way SINGULAR is built for 2.5 it is quite likely that this 
 is 
 the problem. Unfortunately I will not find the time to look into this until  
 around Monday as I am at a conference right now.

 Oh, if you are Justin Walker and you are willing to look into the PPC OSX 
 problem, it would probably be sufficient if you could just point out how to 
 call libtool properly on that platform. Or, if you want to dig deeper:

 In the Singular subdirectory of the singular spkg in the Makefile.in there is 
 a section between Handle libSINGULAR stuff and End libSINGULAR which 
 should be sufficient for a fix. More specifically, this seems to be wrong:

 ifeq ($(SINGUNAME),ppcMac-darwin)
 SO_SUFFIX= dylib
 LIBSINGULAR_FLAGS = -singule_module
 LIBSINGULAR_LD = $(LD)
 endif

This is a just a typo -- try -single_module instead of
-singule_module.  On my system, I also needed to `export
MACOSX_DEPLOYMENT_TARGET=10.4' in bash, or you can set it in the
Makefile, I assume.

After doing this, I get (sorry for the color garbage):

~/sage $ ./sage
--
| SAGE Version 2.5.alpha2, Release Date: 2007-05-02  |
| Type notebook() for the GUI, and license() for information.|
--
---
type 'exceptions.ImportError'   Traceback (most recent call last)

/Users/nalexand/sage-2.5.alpha2/local/bin/string in module()

/Users/nalexand/sage/local/lib/python2.5/site-packages/sage/misc/preparser_ipython.py
 in module()
  6  
[1;31m###
 [0m [1;33m [0m [0m
  7  [1;33m [0m [0m
 8  [1;32mimport [0m  [1;37msage [0m [1;33m. [0m [1;37mmisc [0m [1;33m. 
[0m [1;37minterpreter [0m [1;33m [0m [0m
  9  [1;33m [0m [0m
 10  [1;32mimport [0m  [1;37mpreparser [0m [1;33m [0m [0m

/Users/nalexand/sage/local/lib/python2.5/site-packages/sage/misc/interpreter.py 
in module()
102  [1;33m [0m [0m
103  [1;32mimport [0m  [1;37mos [0m [1;33m [0m [0m
-- 104  [1;32mimport [0m  [1;37mlog [0m [1;33m [0m [0m
105  [1;33m [0m [0m
106  [1;32mfrom [0m  [1;37mIPython [0m [1;33m. [0m [1;37miplib [0m  
[1;32mimport [0m  [1;37mInteractiveShell [0m [1;33m [0m [0m

/Users/nalexand/sage/local/lib/python2.5/site-packages/sage/misc/log.py in 
module()
 51  [1;33m [0m [0m
 52  [1;32mimport [0m  [1;37minterpreter [0m [1;33m [0m [0m
--- 53  [1;32mimport [0m  [1;37mlatex [0m [1;33m [0m [0m
 54  [1;32mimport [0m  [1;37mmisc [0m [1;33m [0m [0m
 55  [1;33m [0m [0m

/Users/nalexand/sage/local/lib/python2.5/site-packages/sage/misc/latex.py in 
module()
 41  [1;32mimport [0m  [1;37mrandom [0m [1;33m [0m [0m
 42  [1;33m [0m [0m
--- 43  [1;32mimport [0m  [1;37msage [0m [1;33m. [0m [1;37mplot [0m [1;33m. 
[0m [1;37mall [0m [1;33m [0m [0m
 44  [1;33m [0m [0m
 45  [1;32mfrom [0m  [1;37mmisc [0m  [1;32mimport [0m  [1;37mtmp_dir [0m 
[1;33m [0m [0m

/Users/nalexand/sage/local/lib/python2.5/site-packages/sage/plot/all.py in 
module()
  2[1;37mtext [0m [1;33m, [0m  [1;37mcircle [0m [1;33m, 
[0m  [1;37mdisk [0m [1;33m, [0m  [1;37mhue [0m [1;33m, [0m  
[1;37mgraphics_array [0m [1;33m, [0m [1;33m [0m [0m
  3[1;37mlist_plot [0m [1;33m, [0m  [1;37mnetworkx_plot 
[0m [1;33m, [0m  [1;37mparametric_plot [0m [1;33m, [0m [1;33m [0m [0m
  4[1;37mpolar_plot [0m [1;33m, [0m  [1;37mcontour_plot 
[0m [1;33m, [0m  [1;37marrow [0m [1;33m, [0m [1;33m [0m [0m
  5[1;37mplot_vector_field [0m [1;33m, [0m  
[1;37mmatrix_plot [0m [1;33m, [0m  [1;37mbar_chart [0m [1;33m, [0m [1;33m [0m 
[0m
  6   is_Graphics)

/Users/nalexand/sage/local/lib/python2.5/site-packages/sage/plot/plot.py in 
module()
130  [1;32mimport [0m  [1;37mpdb [0m [1;33m [0m [0m
131  [1;33m [0m [0m
-- 132  [1;32mfrom [0m  [1;37msage [0m [1;33m. [0m [1;37mstructure [0m [1;33m. 
[0m [1;37msage_object [0m  [1;32mimport [0m  [1;37mSageObject [0m [1;33m [0m [0m
133  [1;33m [0m [0m
134  [1;31m## IMPORTANT: Do not import matplotlib at module scope.  It 
takes a [0m [1;33m [0m [0m

/Users/nalexand/sage-2.5.alpha2/local/bin/sage_object.pyx in sage_object()

type 'exceptions.ImportError': No module named bz2
WARNING: Failure executing code: 'import sage.misc.preparser_ipython;  

[sage-devel] Re: SAGE-2.5 alpha 2

2007-05-04 Thread Martin Albrecht

  ifeq ($(SINGUNAME),ppcMac-darwin)
  SO_SUFFIX= dylib
  LIBSINGULAR_FLAGS = -singule_module
  LIBSINGULAR_LD = $(LD)
  endif

 It's often A Bad Idea to invoke 'ld' directly on Mac OS X: the rules
 are pretty snarky.  Is this the way it comes from the factory?

It is definitely my fault - if there is any. The SINGULAR people are not to 
blame for any build issues. But actually libtool is invoked, is that the way 
to go? 

Martin

-- 
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: [EMAIL PROTECTED]


--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-devel] Re: SAGE-2.5 alpha 2

2007-05-03 Thread mabshoff


William Stein wrote:
 Hi,

 I've posted sage-2.5 alpha 2 at


Did I miss alpha 1 or did you not announce it publically?

 I haven't tried building on cygwin yet.  Feedback welcome.


I am currently building on cygwin. It is still building, but I need
the following two patches:

http://fsmath.mathematik.uni-dortmund.de/~mabshoff/patches/sage-2.5.0-alpha2-fix-gdmodule-on-cygwin.patch

This one fixes the detection code in spkg-install for cygwin and also
adds fontconfig to the lists of libraries for cygwin.

http://fsmath.mathematik.uni-dortmund.de/~mabshoff/patches/sage-2.5.0-alpha2-fix-sqlite-on-cygwin.patch

Uncomments two lines in Makefile.in - I didn't test that one on other
platforms, but it should work. This way we avoid building sqlite3.c,
which is only needed for tcl (which we disable anyway)

I will update you once I am done with the tests or run into another
problem that I cannot fix.

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/
-~--~~~~--~~--~--~---



[sage-devel] Re: SAGE-2.5 alpha 2

2007-05-03 Thread Joel B. Mohler

Alpha 2 builds fine on x86 Gentoo, but it has a whole bunch of make test 
errors.  
The entire list of files is below.  The ones I reran and looked at individually 
all seem to be related to singular.  I know basically nothing about interacting 
with singular aside from through sage so I don't really know how to debug any 
further than a cursory inspection.

--
Joel

The following tests failed:
sage -t  devel/sage-main/sage/ext/interactive_constructors_c.pyx
sage -t  devel/sage-main/sage/interfaces/singular.py
sage -t  devel/sage-main/sage/interfaces/gap.py
sage -t  devel/sage-main/sage/libs/cf/cf.pyx
sage -t  devel/sage-main/sage/rings/homset.py
sage -t  devel/sage-main/sage/rings/quotient_ring.py
sage -t  devel/sage-main/sage/rings/quotient_ring_element.py
sage -t  devel/sage-main/sage/rings/multi_polynomial_ideal.py
sage -t  devel/sage-main/sage/rings/morphism.py
sage -t  devel/sage-main/sage/rings/polynomial_singular_interface.py
sage -t  devel/sage-main/sage/rings/power_series_ring_element.pyx
sage -t  devel/sage-main/sage/rings/multi_polynomial_libsingular.pyx
sage -t  devel/sage-main/sage/rings/groebner_fan.py
sage -t  devel/sage-main/sage/rings/ring.pyx
sage -t  devel/sage-main/sage/schemes/generic/algebraic_scheme.py
sage -t  devel/sage-main/sage/schemes/generic/affine_space.py
sage -t  devel/sage-main/sage/schemes/generic/morphism.py
sage -t  devel/sage-main/sage/schemes/generic/divisor.py
sage -t  devel/sage-main/sage/schemes/generic/projective_space.py
sage -t  devel/sage-main/sage/schemes/plane_curves/projective_curve.py
sage -t  devel/sage-main/sage/schemes/plane_curves/curve.py
sage -t  devel/sage-main/sage/schemes/plane_curves/affine_curve.py
sage -t  devel/sage-main/sage/schemes/plane_curves/constructor.py
sage -t  devel/sage-main/sage/structure/element.pyx
sage -t  devel/sage-main/sage/calculus/calculus.py
sage -t  devel/sage-main/sage/functions/functions.py
sage -t  devel/sage-main/sage/functions/constants.py
Total time for all tests: 1431.5 seconds

On Wed, May 02, 2007 at 08:19:15PM -0700, William Stein wrote:
 
 Hi,
 
 I've posted sage-2.5 alpha 2 at
 
 http://sage.math.washington.edu/home/was/sage2.5/
 
 as
 
 http://sage.math.washington.edu/home/was/sage2.5/sage-2.5.alpha2.tar
 
 Please build it, and if that works do make test, and report what
 happens to sage-devel.
 Thanks!
 
 The plan is to release sage-2.5 on Friday night, if possible.  The
 main thing to do
 before then is lots of build testing and doc testing.
 
 NOTE: I think it fails to build on PowerPC OSX -- if you have such a machine,
 please try to build and report back, and if you're Justin Walker try to fix
 the problem :-).
 
 I haven't tried building on cygwin yet.  Feedback welcome.
 
 -- 
 William Stein
 Associate Professor of Mathematics
 University of Washington
 http://www.williamstein.org
 
 

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-devel] Re: SAGE-2.5 alpha 2

2007-05-03 Thread Joel B. Mohler

On Thu, May 03, 2007 at 11:33:03AM -0400, Joel B. Mohler wrote:
 
 Alpha 2 builds fine on x86 Gentoo, but it has a whole bunch of make test 
 errors.  
 The entire list of files is below.  The ones I reran and looked at 
 individually 
 all seem to be related to singular.  I know basically nothing about 
 interacting 
 with singular aside from through sage so I don't really know how to debug any 
 further than a cursory inspection.

To reply to myself, I just tried to run 'singular' from the bash prompt, and it 
just sits.  I get no singular prompt (as I might expect).  Ctrl+C gets me a 
bash 
prompt again, but I get no output from singular whatsoever.  Like I said, I'm 
clueless about singular so if someone wants to wants to clue me in about 
something else to check, I'm willing.

--
Joel

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-devel] Re: SAGE-2.5 alpha 2

2007-05-03 Thread Joel B. Mohler

On Thursday 03 May 2007 12:57, Martin Albrecht wrote:
 Got it. I kind of messed up in the Makefile.in such that LIB doesn't link
 to lib but to

  LIB -
 /tmp/sage-2.5.alpha2/spkg/build/singular-3-0-2-20070424/Singular/LIB

 . Also, the *.lib scripts didn't get installed.

  Maybe replacing install-nolns in the Makefile.in by:

 installslib-nolns: LIB
         test -d ${slibdir} || ${INSTALL} -d `pwd`/LIB ${slibdir}
         ${INSTALL} `pwd`/LIB/*.lib ${slibdir}
         ${MKINSTALLDIRS} ${slibdir}/gftables
         ${INSTALL} `pwd`/LIB/gftables/* ${slibdir}/gftables/

I'm not sure if I'm being thickheaded, but these directions didn't work for me 
and I was sufficiently confused about them that I couldn't debug them.

Here's what I did:
1)  REMOVED my install-nolns and replaced withthe installslib-nolns as above
2)  Rebuilt by running ./spkg-install in the singular build directory
3)  Received a make error about not having install-nolns
4)  I changed the spkg-install to reference the new installslib-nolns
5)  Got an error about not knowing how to make target LIB
6)  I wasn't sure if I should be making LIB manually or what

Maybe you have this all figured out and don't need me to debug (i.e. -- I'll 
happily be patient until a fixed alpha/beta comes out).  Let me know if there 
is something else I should be trying.

--
Joel

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---