[sage-devel] Sage-5.0-beta5 build failed on linux

2012-02-26 Thread Jonathan Hanke
Hi,

I am trying to build the latest development version of SAGE on a large
multiprocessor dell linux machine, and it failed with the following error
message.  The error message is rather cryptic, so please let me know if
there is any specific architecture/log information you need.  Thanks,

-Jon
 =)


==

patch-2.5.9.p2
Machine:
Linux cento.math.princeton.edu.private 2.6.32-220.4.2.el6.x86_64 #1 SMP Tue
Feb 14 02:24:11 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
Deleting directories from past builds of previous/current versions of
patch-2.5.9.p2
Extracting package
/scratch/SAGE/sage-5.0.beta5/spkg/standard/patch-2.5.9.p2.spkg ...
-rw-r--r--. 1 jonhanke grad 174221 Aug 16  2011
/scratch/SAGE/sage-5.0.beta5/spkg/standard/patch-2.5.9.p2.spkg
Finished extraction

Host system
uname -a:
Linux cento.math.princeton.edu.private 2.6.32-220.4.2.el6.x86_64 #1 SMP Tue
Feb 14 02:24:11 EST 2012 x86_64 x86_64 x86_64 GNU/Linux


CC Version
gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla--enable-bootstrap
--enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)

Error configuring GNU patch

real0m0.189s
user0m0.041s
sys 0m0.098s

Error installing package patch-2.5.9.p2


-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Help with simple C++/Cython Example

2012-02-25 Thread Jonathan Hanke
Hi,

I was trying to get the C++ cython example described in the docs (
http://docs.cython.org/src/userguide/wrapping_CPlusPlus.html) to build in
Sage 4.8, but I'm getting some errors I don't understand.  I created a
separate development branch called sage-c_extensions, added extension
lines

Extension('sage.quadratic_forms.rectangle',
  sources = ['sage/quadratic_forms/rectangle/rectangle.pyx',
 'sage/quadratic_forms/rectangle/Rectangle.cpp'],
  language = c++),

in the file sage-c_extensions/sage/module_list.py, copied the Rectangle.h
and Rectangle.cpp files from the tutorial into a new
folder sage-c_extensions/sage/quadratic_forms/rectangle/, and created a
rectangle.pyx file in that folder with contents

cdef extern from Rectangle.h namespace shapes:
cdef cppclass Rectangle:
Rectangle(int, int, int, int)
int x0, y0, x1, y1
int getLength()
int getHeight()
int getArea()
void move(int, int)


cdef class PyRectangle:
cdef Rectangle *thisptr  # hold a C++ instance which we're wrapping
def __cinit__(self, int x0, int y0, int x1, int y1):
self.thisptr = new Rectangle(x0, y0, x1, y1)
def __dealloc__(self):
del self.thisptr
def getLength(self):
return self.thisptr.getLength()
def getHeight(self):
return self.thisptr.getHeight()
def getArea(self):
return self.thisptr.getArea()
def move(self, dx, dy):
self.thisptr.move(dx, dy)


When I run ./sage -br c_extensions I get the error message

Updating Cython code
Building modified file sage/quadratic_forms/rectangle/rectangle.pyx.
Executing 1 command (using 1 thread)
python `which cython` --cplus --old-style-globals
--disable-function-redefinition --embed-positions --directive
cdivision=True,autotestdict=False,fast_getattr=True
-I/Users/jonhanke/Dropbox/SAGE/sage-4.8/devel/sage-c_extensions -o
sage/quadratic_forms/rectangle/rectangle.cpp
sage/quadratic_forms/rectangle/rectangle.pyx
sage/quadratic_forms/rectangle/rectangle.pyx --
/Users/jonhanke/Dropbox/SAGE/sage-4.8/local/lib/python2.6/site-packages//sage/quadratic_forms/rectangle/rectangle.pyx
Time to execute 1 command: 16.2038929462 seconds
Finished compiling Cython code (time = 31.5890960693 seconds)
running install
running build
running build_py
running build_ext
building 'sage.quadratic_forms.rectangle' extension
Executing 1 command (using 1 thread)
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I/Users/jonhanke/Dropbox/SAGE/sage-4.8/local/include
-I/Users/jonhanke/Dropbox/SAGE/sage-4.8/local/include/csage
-I/Users/jonhanke/Dropbox/SAGE/sage-4.8/devel/sage/sage/ext
-I/Users/jonhanke/Dropbox/SAGE/sage-4.8/local/include/python2.6 -c
sage/quadratic_forms/rectangle/rectangle.cpp -o
build/temp.macosx-10.6-i386-2.6/sage/quadratic_forms/rectangle/rectangle.o
-w
cc1plus: warning: command line option -Wstrict-prototypes is valid for
C/ObjC but not for C++
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I/Users/jonhanke/Dropbox/SAGE/sage-4.8/local/include
-I/Users/jonhanke/Dropbox/SAGE/sage-4.8/local/include/csage
-I/Users/jonhanke/Dropbox/SAGE/sage-4.8/devel/sage/sage/ext
-I/Users/jonhanke/Dropbox/SAGE/sage-4.8/local/include/python2.6 -c
sage/quadratic_forms/rectangle/Rectangle.cpp -o
build/temp.macosx-10.6-i386-2.6/sage/quadratic_forms/rectangle/Rectangle.o
-w
cc1plus: warning: command line option -Wstrict-prototypes is valid for
C/ObjC but not for C++
g++ -L/Users/jonhanke/Dropbox/SAGE/sage-4.8/local/lib -bundle -undefined
dynamic_lookup
build/temp.macosx-10.6-i386-2.6/sage/quadratic_forms/rectangle/rectangle.o
build/temp.macosx-10.6-i386-2.6/sage/quadratic_forms/rectangle/Rectangle.o
-L/Users/jonhanke/Dropbox/SAGE/sage-4.8/local/lib -lcsage -lstdc++ -lntl -o
build/lib.macosx-10.6-i386-2.6/sage/quadratic_forms/rectangle.so
ld: duplicate symbol _initrectangle in
build/temp.macosx-10.6-i386-2.6/sage/quadratic_forms/rectangle/Rectangle.o
and
build/temp.macosx-10.6-i386-2.6/sage/quadratic_forms/rectangle/rectangle.o
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1
sage: There was an error installing modified sage library code.


Any comments are appreciated.  Also, it seems that Cython converts the
Rectangle.cpp file to a cythoned file rectangle.cpp, deleting the
original file in the process.  Is this normal/ok?

Thanks,

-Jon
 =)

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Build of GMP-ECM fails for sage 4.8 (on a buildbot node)

2012-02-25 Thread Jonathan Hanke
Hi,

I was trying to build sage-4.8 on a Sun Fire 4450 server (
parsley.math.uga.edu) running Redhat linux and I'm having some issues.  It
appears to fail when building GMP-ECM, but I'm a little confused because
this machine is included in the automated buildbot testing framework.  I
have included the error message from sage-4.8/spkg/logs/ecm-6.3.p3.log
below.  Any comments are appreciated!  Thanks,

-Jon
 =)



===

jonhanke@[/sage/jonhanke/SAGE_parsley_Build_Testing/sage-4.8]: make
...
...
...
configure: OpenMP disabled
configure: Memory debugging disabled
make[2]: Entering directory
`/sage/jonhanke/SAGE_parsley_Build_Testing/sage-4.8/spkg/build/ecm-6.3.p3/src'
CDPATH=${ZSH_VERSION+.}:  cd .  /bin/sh
/sage/jonhanke/SAGE_parsley_Build_Testing/sage-4.8/spkg/build/ecm-6.3.p3/src/missing
--run aclocal-1.11 -I m4
/sage/jonhanke/SAGE_parsley_Build_Testing/sage-4.8/spkg/build/ecm-6.3.p3/src/missing:
line 52: aclocal-1.11: command not found
WARNING: `aclocal-1.11' is missing on your system.  You should only need it
if
 you modified `acinclude.m4' or `configure.in'.  You might want
 to install the `Automake' and `Perl' packages.  Grab them from
 any GNU archive site.
 cd .  /bin/sh
/sage/jonhanke/SAGE_parsley_Build_Testing/sage-4.8/spkg/build/ecm-6.3.p3/src/missing
--run automake-1.11 --gnu
/sage/jonhanke/SAGE_parsley_Build_Testing/sage-4.8/spkg/build/ecm-6.3.p3/src/missing:
line 52: automake-1.11: command not found
WARNING: `automake-1.11' is missing on your system.  You should only need
it if
 you modified `Makefile.am', `acinclude.m4' or `configure.in'.
 You might want to install the `Automake' and `Perl' packages.
 Grab them from any GNU archive site.
CDPATH=${ZSH_VERSION+.}:  cd .  /bin/sh
/sage/jonhanke/SAGE_parsley_Build_Testing/sage-4.8/spkg/build/ecm-6.3.p3/src/missing
--run autoconf
aclocal.m4:20: warning: this file was generated for autoconf 2.63.
You have another version of autoconf.  It may work, but is not guaranteed
to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically
`autoreconf'.
configure:1535: error: possibly undefined macro: _m4_text_wrap_word
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
make[2]: *** [configure] Error 1
make[2]: Leaving directory
`/sage/jonhanke/SAGE_parsley_Build_Testing/sage-4.8/spkg/build/ecm-6.3.p3/src'
Error building GMP-ECM.

real0m41.358s
user0m5.777s
sys 0m9.857s

Error installing package ecm-6.3.p3

...
...
...

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Make check fails for sage 4.6.2 build

2011-04-01 Thread Jonathan Hanke
Hi,

I was building sage 4.6.2 on a Sun Fire 4450 server (called parsley) running
Redhat linux, and the there was a preparser failure when running make check.
 Is this something I should be concerned about?  I thought that the new sage
builds are automatically tested on this architecture, so how can make check
fail?

Thanks,

-Jon
 =)



jonhanke@[~/my_sage_dir/SAGE_parsley_Build_Testing/sage-4.6.2]: make check

...
--
The following tests failed:


sage -t  -force_lib devel/sage/sage/misc/preparser.py
Total time for all tests: 6133.0 seconds
Please see /home/jonhanke/.sage//tmp/test.log for the complete log from this
test.
jonhanke@[~/my_sage_dir/SAGE_parsley_Build_Testing/sage-4.6.2]: sage -t
 -force_lib devel/sage/sage/misc/preparser.py
sage -t -force_lib devel/sage/sage/misc/preparser.py
Non-default server settings detected:
Incoming Server = http://hg.sagemath.org  (default)
Outgoing Server = ssh://
jonha...@sage.math.washington.edu/sage-4.1.1/devel

**
File
/sage/jonhanke/SAGE_parsley_Build_Testing/sage-4.6.2/devel/sage/sage/misc/preparser.py,
line 1386:
sage: sage.misc.preparser.is_loadable_filename('foo.m')
Expected:
True
Got:
False
**
File
/sage/jonhanke/SAGE_parsley_Build_Testing/sage-4.6.2/devel/sage/sage/misc/preparser.py,
line 1403:
sage: load_attach_path()
Exception raised:
Traceback (most recent call last):
  File /usr/local/sage-4.6/local/bin/ncadoctest.py, line 1231, in
run_one_test
self.run_one_example(test, example, filename, compileflags)
  File /usr/local/sage-4.6/local/bin/sagedoctest.py, line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
  File /usr/local/sage-4.6/local/bin/ncadoctest.py, line 1172, in
run_one_example
compileflags, 1) in test.globs
  File doctest __main__.example_19[2], line 1, in module
load_attach_path()###line 1403:
sage: load_attach_path()
NameError: name 'load_attach_path' is not defined
**
...

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] QuadraticForm Impact/Usage information?

2011-03-02 Thread Jonathan Hanke
Help out a fellow colleague with his promotion file.   Have you ever
used quadratic forms in Sage?  If so, please send me an email at
jonha...@gmail.com letting me know, or just respond to this email.

Thanks!

-Jon
 =)

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Failed to build Atlas in Sage 4.5.2 on Xenon processor.

2010-08-23 Thread Jonathan Hanke
Hi,

I'm trying to build sage 4.5.2 on a Sun Fire X4450 server (Intel Xenon
processors) running Redhat linux (Enterprise edition), and get an error when
building Atlas in the make script.  Any comments are appreciated.  Thanks,

-Jon
 =)


--

ATLAS install complete.  Examine
ATLAS/bin/arch/INSTALL_LOG/SUMMARY.LOG for details.
make[3]: Leaving directory
`/home/jonhanke/sage-4.5.2/spkg/build/atlas-3.8.3.p12/ATLAS-build'
make clean
make[3]: Entering directory
`/home/jonhanke/sage-4.5.2/spkg/build/atlas-3.8.3.p12/ATLAS-build'
rm -f *.o x* config?.out *core*
make[3]: Leaving directory
`/home/jonhanke/sage-4.5.2/spkg/build/atlas-3.8.3.p12/ATLAS-build'
make[2]: Leaving directory
`/home/jonhanke/sage-4.5.2/spkg/build/atlas-3.8.3.p12/ATLAS-build'
Finished building ATLAS core
make[2]: Entering directory
`/home/jonhanke/sage-4.5.2/spkg/build/atlas-3.8.3.p12/ATLAS-build/lib'
rm -f libatlas.so liblapack.so
make libatlas.so liblapack.so libf77blas.so libcblas.so liblapack.so
make[3]: Entering directory
`/home/jonhanke/sage-4.5.2/spkg/build/atlas-3.8.3.p12/ATLAS-build/lib'
ld -melf_x86_64 -shared -soname libatlas.so -o libatlas.so \
--whole-archive libatlas.a --no-whole-archive -lc -lm
ld -melf_x86_64 -shared -soname liblapack.so -o liblapack.so --whole-archive
\
   liblapack.a --no-whole-archive
make[3]: *** No rule to make target `libf77blas.a', needed by
`libf77blas.so'.  Stop.
make[3]: Leaving directory
`/home/jonhanke/sage-4.5.2/spkg/build/atlas-3.8.3.p12/ATLAS-build/lib'
make[2]: *** [shared] Error 2
make[2]: Leaving directory
`/home/jonhanke/sage-4.5.2/spkg/build/atlas-3.8.3.p12/ATLAS-build/lib'
Building shared ATLAS libraries failed
Failed to build ATLAS.

real10m24.087s
user8m38.823s
sys 1m42.460s
sage: An error occurred while installing atlas-3.8.3.p12
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /home/jonhanke/sage-4.5.2/install.log.  Describe your computer, operating
system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/jonhanke/sage-4.5.2/spkg/build/atlas-3.8.3.p12 and type 'make check'
or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/home/jonhanke/sage-4.5.2/spkg/build/atlas-3.8.3.p12' 
'/home/jonhanke/sage-4.5.2/sage' -sh)
When you are done debugging, you can type exit to leave the
subshell.
make[1]: *** [installed/atlas-3.8.3.p12] Error 1
make[1]: Leaving directory `/home/jonhanke/sage-4.5.2/spkg'

real17m58.899s
user13m25.004s
sys 4m22.452s
Error building Sage.
./sage -docbuild all html  21 | tee -a dochtml.log
python: can't open file
'/home/jonhanke/sage-4.5.2/devel/sage/doc/common/builder.py': [Errno 2] No
such file or directory

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Question about multivariate power series.

2009-08-29 Thread Jonathan Hanke
Hi,

I was wondering if there is (or is planned) support for natural multivariate
power series ring constructions (with say fixed precision for each variable)
similar to that of polynomal rings?  It would be nice to be able to say
something like

S = PowerSeriesRing(QQ, 'x,y', [15, 20])
or
S.x,y = PowerSeriesRing(QQ, [15, 20])

instead of

S1.x = PowerSeriesRing(QQ, 15)
S.y = PowerSeriesRing(S1, 20)

Thanks,

-Jon
 =)

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Question about Exception Handling in Automated Doctesting

2009-04-29 Thread Jonathan Hanke
I was wondering if there is a way of passing a doctest which correctly
raises an exception?  I tried the #random comment, but it doesn't pass with
this.  I also didn't find anything in the manual at

http://www.sagemath.org/doc/developer/conventions.html?highlight=doctest#documentation-strings

about how to handle this case.  Thanks,

-Jon
 =)

--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Trouble building 3.4.1 on Mac Pro

2009-04-25 Thread Jonathan Hanke
Hi,

I'm having trouble with building gmp-mpir in sage 3.4.1 on my Mac Pro.  I
have previously successfully built 3.1.2 without any difficulty.  Any
comments are appreciated.  Thanks,

-Jon
 =)

---

The Hardware overview is

  Model Name:Mac Pro
  Model Identifier:MacPro3,1
  Processor Name:Quad-Core Intel Xeon
  Processor Speed:2.8 GHz
  Number Of Processors:2
  Total Number Of Cores:8
  L2 Cache (per processor):12 MB
  Memory:16 GB
  Bus Speed:1.6 GHz
  Boot ROM Version:MP31.006C.B05
  SMC Version:1.25f4

and the end of the logfile looks like

...
gmp-mpir-1.1/src/dumbmp.c
gmp-mpir-1.1/src/assert.c
gmp-mpir-1.1/src/cpuid.c
gmp-mpir-1.1/src/AUTHORS
Finished extraction

Host system
uname -a:
Darwin d447-614121.math.uga.edu 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov
24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 i386


GCC Version
gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-checking
-enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include
-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9
--with-arch=apple --with-tune=generic --host=i686-apple-darwin9
--target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)

Deleting assembly files which depend on PIC assembly working or 32 bit OSX
on Intel hardware
checking build system type... Invalid configuration
`penryn-apple-darwin9.6.0': machine `penryn-apple' not recognized
configure: error: /bin/sh ./config.sub penryn-apple-darwin9.6.0 failed
Failed to configure.

real0m0.637s
user0m0.226s
sys 0m0.445s
sage: An error occurred while installing gmp-mpir-1.1

--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Question about determinants failing over GF(2)

2009-03-04 Thread Jonathan Hanke
Hi,

I'm getting a strange error message in the library that I'm having trouble
reproducing at the prompt for determinants over GF(2).  The full commands to
create the message are below, using the sage in ~jonhanke/sage3.3.rc0_bad
directory on the sage.math machine.  Thanks,

-Jon
 =)



--
| Sage Version 3.3.rc0, Release Date: 2009-02-11 |
| Type notebook() for the GUI, and license() for information.|
--
sage:
sage:
sage: MM = matrix(ZZ, 6, 6, [0, 0, 1, 2, 2, 2, 0, 0, 0, 1, 0, 1, 1, 0, 2, 2,
3, 0, 2, 1, 2, 3, 1, 2, 2, 0, 3, 1, 1, 0, 2, 1, 0, 2, 0, 1])
sage: QQ = QuadraticForm(ZZ, 2*MM)
sage: QQ.maximal_form()
Watson lattice B =  [0 0 2 4 4 4]
[0 0 0 2 0 2]
[2 0 4 4 6 0]
[4 2 4 6 2 4]
[4 0 6 2 2 0]
[4 2 0 4 0 2]
pp1 =  [2, 3]
pp2 =  [2, 3]
p =  2
small_gram =  [15  7 12  6  3  6]
[ 7  5  6  6  0  3]
[12  6  9  6  3  6]
[ 6  6  6  6  0  3]
[ 3  0  3  0  0  0]
[ 6  3  6  3  0  0]
small_gram_det =  -81
small_gram_ed =  [1, 1, 1, 1, 1, 1]
---
TypeError Traceback (most recent call last)

/home/jonhanke/.sage/temp/
sage.math.washington.edu/20191/_home_jonhanke__sage_init_sage_0.py in
module()

/home/jonhanke/sage-3.3.rc0/local/lib/python2.5/site-packages/sage/quadratic_forms/quadratic_form__neighbors.pyc
in maximal_form(self)
308 print small_gram_det = , small_gram.det()
309 print small_gram_ed = , small_gram.elementary_divisors()
-- 310 Tp = find_basis_of_maximal_isotropic_subspace(matrix(GF(p),
small_gram))
311 TZ = matrix(ZZ,Tp).transpose() * dp_cols_small.transpose()
312 T_huge = T_huge.augment(cofacp*TZ)

/home/jonhanke/sage-3.3.rc0/local/lib/python2.5/site-packages/sage/quadratic_forms/extras.pyc
in find_basis_of_maximal_isotropic_subspace(G)
105
106 ## Find one isotropic vector
-- 107 v = find_isotropic_vector_at_prime(G)
108
109 ## Check if we're done.

/home/jonhanke/sage-3.3.rc0/local/lib/python2.5/site-packages/sage/quadratic_forms/extras.pyc
in find_isotropic_vector_at_prime(G)
 38 p = G.parent().base_ring().characteristic()
 39 ## Check that G % p is non-degenerate... or allow it an use the
kernel.
--- 40 G_det = G.det()
 41 if G_det == 0:
 42 raise NotImplementedError, Must input a non-degenerate
matrix over GF(p).

/home/jonhanke/sage-3.3.rc0/local/lib/python2.5/site-packages/sage/matrix/matrix2.so
in sage.matrix.matrix2.Matrix.det (sage/matrix/matrix2.c:6331)()

/home/jonhanke/sage-3.3.rc0/local/lib/python2.5/site-packages/sage/matrix/matrix_modn_dense.so
in sage.matrix.matrix_modn_dense.Matrix_modn_dense.determinant
(sage/matrix/matrix_modn_dense.c:10704)()

/home/jonhanke/sage-3.3.rc0/local/lib/python2.5/site-packages/sage/matrix/matrix2.so
in sage.matrix.matrix2.Matrix.determinant (sage/matrix/matrix2.c:5951)()

/home/jonhanke/sage-3.3.rc0/local/lib/python2.5/site-packages/sage/matrix/matrix_modn_dense.so
in sage.matrix.matrix_modn_dense.Matrix_modn_dense.charpoly
(sage/matrix/matrix_modn_dense.c:7109)()

/home/jonhanke/sage-3.3.rc0/local/lib/python2.5/site-packages/sage/matrix/matrix2.so
in sage.matrix.matrix2.Matrix.charpoly (sage/matrix/matrix2.c:7195)()

/home/jonhanke/sage-3.3.rc0/local/lib/python2.5/site-packages/sage/matrix/matrix_modn_dense.so
in sage.matrix.matrix_modn_dense.Matrix_modn_dense._charpoly_hessenberg
(sage/matrix/matrix_modn_dense.c:10131)()

TypeError: Cannot convert sage.matrix.matrix_mod2_dense.Matrix_mod2_dense to
sage.matrix.matrix_modn_dense.Matrix_modn_dense
sage:

---


sage: G = matrix(GF(2),[1,1,0,0,1,0, 1,1,0,0,0,1, 0,0,1,0,1,0, 0,0,0,0,0,1,
1,0,1,0,0,0, 0, 1,0,1,0,0 ])
sage: G
[1 1 0 0 1 0 1 1 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 1 1 0 1 0 0 0 0 1 0 1 0 0]
sage: G = matrix(GF(2),6,6,[1,1,0,0,1,0, 1,1,0,0,0,1, 0,0,1,0,1,0,
0,0,0,0,0,1, 1,0,1,0,0,0, 0, 1,0,1,0,0 ])
sage: G

[1 1 0 0 1 0]
[1 1 0 0 0 1]
[0 0 1 0 1 0]
[0 0 0 0 0 1]
[1 0 1 0 0 0]
[0 1 0 1 0 0]
sage: G.det()
1
sage: type(G)
type 'sage.matrix.matrix_mod2_dense.Matrix_mod2_dense'
sage: G = matrix(ZZ,6,6,[1,1,0,0,1,0, 1,1,0,0,0,1, 0,0,1,0,1,0, 0,0,0,0,0,1,
1,0,1,0,0,0, 0, 1,0,1,0,0 ])
sage: G2 = matrix(GF(2),G)
sage: G2.det()
1
sage:

--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org

[sage-devel] Sage/Mercurial Merge Question

2008-09-30 Thread Jonathan Hanke
Hi,

I have a question about how to merge patches when they misbehave.  I have
some development code in a sage 2.8.14 branch which I want to merge to the
newest version of sage on another machine (both Macs).  To do this I
installed mercurial, compiled the new sage, and cloned a new branch from it
with the same name as the branch I want to receive the patches.   Then on
the old machine I set the SAGE_OUTGOING_SERVER variable in my .bashrc file
to ssh to the new repository (with the xxx's replaced by an actual IP
address)

export SAGE_OUTGOING_SERVER=ssh://[EMAIL 
PROTECTED]//Users/jonhanke/Documents/SAGE/sage-3.1.2/devel
## No trailing '/' here!

and did

hg_sage.push()

while running that branch.  The trouble is that this gives some error even
though the branches have the same name:

abort: push creates new remote branches!
(did you forget to merge? use push -f to force)

So then I try

hg_sage.push(options='-f')

which successfully pushes the changes.  However when I try to build in the
new repository then there are more serious problems

[EMAIL PROTECTED]/Documents/SAGE/sage-3.1.2]: sage -br class_number_1

--
sage: Building and installing modified SAGE library files.


Installing c_lib
scons: `install' is up to date.
running install
running build
running build_py
running build_ext
running build_scripts
running install_lib
running install_scripts
changing mode of
/Users/jonhanke/Documents/SAGE/sage-3.1.2/local/bin/dsage_setup.py to 755
changing mode of
/Users/jonhanke/Documents/SAGE/sage-3.1.2/local/bin/dsage_worker.py to 755
changing mode of
/Users/jonhanke/Documents/SAGE/sage-3.1.2/local/bin/spkg-debian-maybe to 755
running install_data
running install_egg_info
Removing
/Users/jonhanke/Documents/SAGE/sage-3.1.2/local/lib/python2.5/site-packages/sage-0.0.0-py2.5.egg-info
Writing
/Users/jonhanke/Documents/SAGE/sage-3.1.2/local/lib/python2.5/site-packages/sage-0.0.0-py2.5.egg-info
--
| SAGE Version 3.1.2, Release Date: 2008-09-19   |
| Type notebook() for the GUI, and license() for information.|
--
Loading SAGE library. Current Mercurial branch is: class_number_1
Non-default server settings detected:
Incoming Server = http://www.sagemath.org/hg  (default)
Outgoing Server = ssh://
[EMAIL PROTECTED]//wtmp/sage-2.8.14/devel

sage: hg_sage.status()
Getting status of modified or unknown files:
cd /Users/jonhanke/Documents/SAGE/sage-3.1.2/devel/sage  hg status

---

Branch: class_number_1
sage: hg_sage.merge()
cd /Users/jonhanke/Documents/SAGE/sage-3.1.2/devel/sage  hg merge
merging sage/combinat/combinat.py
merging sage/ext/cdefs.pxi
warning: conflicts during merge.
merging sage/ext/cdefs.pxi failed!
merging sage/quadratic_forms/binary_qf.py
warning: conflicts during merge.
merging sage/quadratic_forms/binary_qf.py failed!
merging sage/quadratic_forms/genera/genus.py
warning: conflicts during merge.
merging sage/quadratic_forms/genera/genus.py failed!
merging sage/rings/arith.py
warning: conflicts during merge.
merging sage/rings/arith.py failed!
merging sage/rings/integer_mod.pxd
merging sage/rings/integer_mod.pyx
merging setup.py
23 files updated, 4 files merged, 0 files removed, 4 files unresolved
There are unresolved merges, you can redo the full merge using:
  hg update -C 10552
  hg merge 10607
sage:
Exiting SAGE (CPU time 0m0.03s, Wall time 0m42.46s).

Then I try doing the update and merge it suggests, but it doesn't seem to
fix the problem.

[EMAIL PROTECTED]/Documents/SAGE/sage-3.1.2/devel/sage-class_number_1]:   hg
update -C 10552
9 files updated, 0 files merged, 22 files removed, 0 files unresolved
[EMAIL PROTECTED]/Documents/SAGE/sage-3.1.2/devel/sage-class_number_1]:   hg 
merge
10607
merging sage/combinat/combinat.py
merging sage/ext/cdefs.pxi
warning: conflicts during merge.
merging sage/ext/cdefs.pxi failed!
merging sage/quadratic_forms/binary_qf.py
warning: conflicts during merge.
merging sage/quadratic_forms/binary_qf.py failed!
merging sage/quadratic_forms/genera/genus.py
warning: conflicts during merge.
merging sage/quadratic_forms/genera/genus.py failed!
merging sage/rings/arith.py
warning: conflicts during merge.
merging sage/rings/arith.py failed!
merging sage/rings/integer_mod.pxd
merging sage/rings/integer_mod.pyx
merging setup.py
23 files updated, 4 files merged, 0 files removed, 4 files unresolved
There are unresolved merges, you can redo the full merge using:
  hg update -C 10552
  hg merge 10607

Any idea what's happening?  Thanks,

-Jon
 =)

--~--~-~--~~~---~--~~
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://www.sagemath.org

[sage-devel] hg_sage.push() and other minor changes.

2007-12-01 Thread Jonathan Hanke
Hi All,

I noticed that the push() method was missing in sage-2.8.14, so here is a
patch.  I also added current_branch() and list_branches() for the
convenience of those who may want to manage multiple branches
simultaneously.

I was also interested in being able to have a separate default outgoing
repository for convenient backups, but there is an organizational issue here
-- SAGE has hardcoded its default branch (on the server) as sage-main, so if
one wanted to manage multiple branches from the same repository (as might
happen if there were several branches being simultaneously pulled/pushed to
on the same server) they will break the default scheme.  So I forced the
hardcoded default server to use only the main branch (and updated the
hardcoded server to be sagemath.org instead of sage.math.washington.edu).

For example, suppose one wants to have a server with two branches: sage-main
and sage-other on the non-default server math.awesome.edu.  Then the way
things are coded now, both sage-main would update from sage-main, and
sage-other would update from sage-other.  If we were connecting to the
default sagemath.org, then both branches would update from sage-main.
(WARNING TO MAINTAINER: This means that if the default server is changed,
one must also explicitly change the DEFAULT_SERVER variable in
BRANCH_PATH/sage/misc/hg.py)

Finally, I didn't really understand where the default_server was set, so I
added support to set them from shell variables SAGE_INCOMING_SERVER and
SAGE_OUTGOING_SERVER (with no trailing '/', in mercurial path format to the
'./devel' directory).  However I was careful to preserve the default
behavior when no settings are present.  Any comments are appreciated!
Thanks,

-Jon
 =)

P.S.  I was a little unsure of where to add the appropriate documentation,
so that would be a great comment! =)

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



push_bundle__Dec_2_2007.hg
Description: Binary data


[sage-devel] Re: hg_sage.push() and other minor changes.

2007-12-01 Thread Jonathan Hanke
Sorry, but there was a bug.  Here's the updated bundle.  Thanks,

-Jon
 =)

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



push_bundle__Dec_2_2007_ver2.hg
Description: Binary data