[sage-support] Systemwide 2.8.4.1 install on Ubuntu Feisty

2007-09-14 Thread Jan Groenewald

Hi

I installed 2.8.4.1-i686-ubuntu instead of 2.8-i686 on
 ubuntu feisty today. I install systemwide, as root:

cd /usr/local/src/
wget
http://www.sagemath.org/SAGEbin/linux/32bit/sage-2.8.4.1-i686-ubuntu-Linux.tar.gz
tar xvzf sage-2.8.4.1-i686-ubuntu-Linux.tar.gz
cp sage-2.8.4.1-i686-Linux/sage /usr/local/bin/
sed -ie 's#=.#=/usr/local/src/sage-2.8.4.1-i686-Linux/#'
/usr/local/bin/sage
rm /usr/local/bin/sagee
chmod a+r -R /usr/local/src/sage-2.8.4.1-i686-Linux/

Before this used to be fine.
Now I have to run once as root to create SAGE_ROOT/tmp,
and thereafter a normal user still cannot run notebook()

0 [EMAIL PROTECTED]:~$sage
--
| SAGE Version 2.8.4.1, Release Date: 2007-09-09 |
| Type notebook() for the GUI, and license() for information.|
--

sage: notebook() 
---
type 'exceptions.IOError'   Traceback (most recent call last)

/usr/local/src/sage-2.8.4.1-i686-Linux/ipython console in module()

/usr/local/src/sage-2.8.4.1-i686-Linux/local/lib/python2.5/site-packages/sage/server/notebook/notebook_object.py
 in __call__(self, *args, **kwds)
120 
121 def __call__(self, *args, **kwds):
-- 122 return self.notebook(*args, **kwds)
123 
124 notebook = run_notebook.notebook_twisted

/usr/local/src/sage-2.8.4.1-i686-Linux/local/lib/python2.5/site-packages/sage/server/notebook/run_notebook.py
 in notebook_twisted(self, directory, port, address, port_tries, secure, reset, 
accounts, server_pool, ulimit, timeout, open_viewer)
105 print Updating to new format complete.
106 
-- 107 nb.save()
108 del nb
109 

/usr/local/src/sage-2.8.4.1-i686-Linux/local/lib/python2.5/site-packages/sage/server/notebook/notebook.py
 in save(self, filename)
   1346 if not os.path.exists(D):
   1347 os.makedirs(D)
- 1348 SageObject.save(self, F, compress=False)
   1349 #print Saved notebook to '%s'.%F
   1350 #print Press control-C to stop the notebook server.

/usr/local/src/sage-2.8.4.1-i686-Linux/sage_object.pyx in 
sage_object.SageObject.save()

type 'exceptions.IOError': [Errno 13] Permission denied: 
'/usr/local/src/sage-2.8.4.1-i686-Linux/sage_notebook/nb.sobj'
sage: 

regards,
Jan
-- 
   .~.
   /V\ Jan Groenewald
  /( )\www.aims.ac.za
  ^^-^^

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Systemwide 2.8.4.1 install on Ubuntu Feisty

2007-09-14 Thread William Stein

On 9/14/07, Jan Groenewald [EMAIL PROTECTED] wrote:
 I installed 2.8.4.1-i686-ubuntu instead of 2.8-i686 on
  ubuntu feisty today. I install systemwide, as root:

 cd /usr/local/src/
 wget
 http://www.sagemath.org/SAGEbin/linux/32bit/sage-2.8.4.1-i686-ubuntu-Linux.tar.gz
 tar xvzf sage-2.8.4.1-i686-ubuntu-Linux.tar.gz
 cp sage-2.8.4.1-i686-Linux/sage /usr/local/bin/
 sed -ie 's#=.#=/usr/local/src/sage-2.8.4.1-i686-Linux/#'
 /usr/local/bin/sage
 rm /usr/local/bin/sagee
 chmod a+r -R /usr/local/src/sage-2.8.4.1-i686-Linux/

 Before this used to be fine.
 Now I have to run once as root to create SAGE_ROOT/tmp,
  

No matter what, with any version of Sage, you would have to
run it once as root (or whatever user owns those files) the
first time because the Sage install tree has moved and many
files that hardcode directory paths have to be updated.  That
tmp directory is created then.  That said, in this particular case
creating the tmp directory in SAGE_ROOT is now  totally unnecessary
so I've removed the code that does this (for the next release).


 and thereafter a normal user still cannot run notebook()


This is actually an unrelated issue.  A user must have write permissions
to the *current* directory to run the notebook, since it stores its state
files in the current directory.  Try instead:

 [EMAIL PROTECTED]:~$ cd
 [EMAIL PROTECTED]:~$ sage


 0 [EMAIL PROTECTED]:~$sage
 --
 | SAGE Version 2.8.4.1, Release Date: 2007-09-09 |
 | Type notebook() for the GUI, and license() for information.|
 --

 sage: notebook()
 ---
 type 'exceptions.IOError'   Traceback (most recent call last)

 /usr/local/src/sage-2.8.4.1-i686-Linux/ipython console in module()

 /usr/local/src/sage-2.8.4.1-i686-Linux/local/lib/python2.5/site-packages/sage/server/notebook/notebook_object.py
  in __call__(self, *args, **kwds)
 120 
 121 def __call__(self, *args, **kwds):
 -- 122 return self.notebook(*args, **kwds)
 123
 124 notebook = run_notebook.notebook_twisted

 /usr/local/src/sage-2.8.4.1-i686-Linux/local/lib/python2.5/site-packages/sage/server/notebook/run_notebook.py
  in notebook_twisted(self, directory, port, address, port_tries, secure, 
 reset, accounts, server_pool, ulimit, timeout, open_viewer)
 105 print Updating to new format complete.
 106
 -- 107 nb.save()
 108 del nb
 109

 /usr/local/src/sage-2.8.4.1-i686-Linux/local/lib/python2.5/site-packages/sage/server/notebook/notebook.py
  in save(self, filename)
1346 if not os.path.exists(D):
1347 os.makedirs(D)
 - 1348 SageObject.save(self, F, compress=False)
1349 #print Saved notebook to '%s'.%F
1350 #print Press control-C to stop the notebook server.

 /usr/local/src/sage-2.8.4.1-i686-Linux/sage_object.pyx in 
 sage_object.SageObject.save()

 type 'exceptions.IOError': [Errno 13] Permission denied: 
 '/usr/local/src/sage-2.8.4.1-i686-Linux/sage_notebook/nb.sobj'
 sage:

 regards,
 Jan
 --
.~.
/V\ Jan Groenewald
   /( )\www.aims.ac.za
   ^^-^^

 



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: sage-2.8.4.2 build report

2007-09-14 Thread William Stein

On 9/14/07, Kate Minola [EMAIL PROTECTED] wrote:

 William,

 sage-2.8.4.2 built from source with gcc-4.2.1
 passed all tests on

   x86_64-Linux
   ia64-Linux  - YEAH!!!

 but sadly failed one test on

   x86-Linux (pentium4-fc6)

Does it always fail that test in the same way?   I can't replicate
the problem on my 32-bit Linux RHEL5 machine:

[EMAIL PROTECTED] sage-2.8.4.1]$ ./sage -t 
devel/sage/sage/plot/plot3d/transform.pyx
sage -t  devel/sage-main/sage/plot/plot3d/transform.pyx
 [6.9 s]

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

Are you using RHEL5 or something else?

This test is from a new doctest Robert Bradshaw just added that illustrates
how to use the symbolic code in SAGE to compute transformation
matrices, but there error indicates that there was probably a problem
with the communication/synchronization between SAGE and Maxima
via pexpect.


 sage -t  devel/sage-main/sage/plot/plot3d/transform.pyx
 **
 File transform.pyx, line 184:
 sage: m  # or show(m)
 Expected:
 [   (1 - cos(theta))*x^2 +
 cos(theta) -(sin(theta)*abs(z)^3 + (cos(theta) - 1)*x*z^2*sqrt(-z^2 -
 x^2 + 1))/z^2  (sin(theta)*sqrt(-z^2 - x^2 + 1)*abs(z)^3 + (1 -
 cos(theta))*x*z^4)/z^3]
 [ sin(theta)*abs(z) + (1 - cos(theta))*x*sqrt(-z^2 - x^2 + 1)
(cos(theta) - 1)*z^2 + (cos(theta) - 1)*x^2 + 1
 -(sin(theta)*x*abs(z) + (cos(theta) - 1)*z^2*sqrt(-z^2 - x^2 +
 1))/z]
 [-(sin(theta)*sqrt(-z^2 - x^2 + 1)*abs(z) + (cos(theta) - 1)*x*z^2)/z
   -((cos(theta) - 1)*z^2*sqrt(-z^2 - x^2 + 1) - sin(theta)*x*abs(z))/z
   (1 - cos(theta))*z^2 + cos(theta)]
 Got:
 [
   sage18

   sage20
   sage22]
 [
   sage24
   sage26
   sage28]
 [
   sage30 (sage14*sqrt(1 -
 x^2)*sqrt(-z^2 - x^2 + 1)*abs(z) + (sage2*x^2 - sage2)*z*abs(z) +
 sage8*x*sqrt(1 - x^2)*z^2)/((x^2 - 1)*z)
   sage34]
 **

 Kate
 --
 Kate Minola
 University of Maryland, College Park

 



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: sage-2.8.4.2 build report

2007-09-14 Thread William Stein

On 9/14/07, William Stein [EMAIL PROTECTED] wrote:
 On 9/14/07, Kate Minola [EMAIL PROTECTED] wrote:
 
  William,
 
  sage-2.8.4.2 built from source with gcc-4.2.1
  passed all tests on
 
x86_64-Linux
ia64-Linux  - YEAH!!!
 
  but sadly failed one test on
 
x86-Linux (pentium4-fc6)

 Are you using RHEL5 or something else?


Never mind, I suspect pentium4-fc6 means that it's fedora core 6.

 -- William



 This test is from a new doctest Robert Bradshaw just added that illustrates
 how to use the symbolic code in SAGE to compute transformation
 matrices, but there error indicates that there was probably a problem
 with the communication/synchronization between SAGE and Maxima
 via pexpect.

 
  sage -t  devel/sage-main/sage/plot/plot3d/transform.pyx
  **
  File transform.pyx, line 184:
  sage: m  # or show(m)
  Expected:
  [   (1 - cos(theta))*x^2 +
  cos(theta) -(sin(theta)*abs(z)^3 + (cos(theta) - 1)*x*z^2*sqrt(-z^2 -
  x^2 + 1))/z^2  (sin(theta)*sqrt(-z^2 - x^2 + 1)*abs(z)^3 + (1 -
  cos(theta))*x*z^4)/z^3]
  [ sin(theta)*abs(z) + (1 - cos(theta))*x*sqrt(-z^2 - x^2 + 
  1)
 (cos(theta) - 1)*z^2 + (cos(theta) - 1)*x^2 + 1
  -(sin(theta)*x*abs(z) + (cos(theta) - 1)*z^2*sqrt(-z^2 - x^2 +
  1))/z]
  [-(sin(theta)*sqrt(-z^2 - x^2 + 1)*abs(z) + (cos(theta) - 
  1)*x*z^2)/z
-((cos(theta) - 1)*z^2*sqrt(-z^2 - x^2 + 1) - sin(theta)*x*abs(z))/z
(1 - cos(theta))*z^2 + cos(theta)]
  Got:
  [
sage18
 
sage20
sage22]
  [
sage24
sage26
sage28]
  [
sage30 (sage14*sqrt(1 -
  x^2)*sqrt(-z^2 - x^2 + 1)*abs(z) + (sage2*x^2 - sage2)*z*abs(z) +
  sage8*x*sqrt(1 - x^2)*z^2)/((x^2 - 1)*z)
sage34]
  **
 
  Kate
  --
  Kate Minola
  University of Maryland, College Park
 
   
 


 --
 William Stein
 Associate Professor of Mathematics
 University of Washington
 http://wstein.org



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: sage-2.8.4.2 build report

2007-09-14 Thread Kate

William,

 Never mind, I suspect pentium4-fc6 means that it's fedora core 6.

Yes, Fedora Core 6

% cat /proc/version
Linux version 2.6.20-1.2962.fc6 ([EMAIL PROTECTED]
bc2-14.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat
4.1.1-51)) #1 SMP Tue Jun 19 19:27:14 EDT 2007

 Does it always fail that test in the same way?

If I just run
 .sage -t devel/sage-main/sage/plot/plot3d/transform.pyx
_now_ I get an exception.  (Why did I not see this from the output of
'make check'?)

**
File transform.pyx, line 178:
sage: for ij in ix: m[ij] = m[ij].simplify_rational()
Exception raised:
Traceback (most recent call last):
  File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
doctest.py, line 1212, in __run
compileflags, 1) in test.globs
  File doctest __main__.example_0[21], line 1, in module
for ij in ix: m[ij] = m[ij].simplify_rational()###line 178:
sage: for ij in ix: m[ij] = m[ij].simplify_rational()
  File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
site-packages/sage/calculus/calculus.py, line 2091, in
simplify_rational
return self.parent()(self._maxima_().fullratsimp())
  File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
site-packages/sage/calculus/calculus.py, line 331, in __call__
return self._coerce_impl(x)
  File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
site-packages/sage/calculus/calculus.py, line 339, in _coerce_impl
return symbolic_expression_from_maxima_element(x)
  File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
site-packages/sage/calculus/calculus.py, line 4963, in
symbolic_expression_from_maxima_element
return symbolic_expression_from_maxima_string(x.name())
  File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
site-packages/sage/calculus/calculus.py, line 4955, in
symbolic_expression_from_maxima_string
x = SR(w)
  File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
site-packages/sage/calculus/calculus.py, line 331, in __call__
return self._coerce_impl(x)
  File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
site-packages/sage/calculus/calculus.py, line 363, in _coerce_impl
raise TypeError, cannot coerce type '%s' into a
SymbolicExpression.%type(x)
TypeError: cannot coerce type 'class
'sage.interfaces.sage0.Sage'' into a SymbolicExpression.
**
File transform.pyx, line 184:
sage: m  # or show(m)
Expected:
[   (1 - cos(theta))*x^2 +
cos(theta) -(sin(theta)*abs(z)^3 + (cos(theta) - 1)*x*z^2*sqrt(-z^2 -
x^2 + 1))/z^2  (sin(theta)*sqrt(-z^2 - x^2 + 1)*abs(z)^3 + (1 -
cos(theta))*x*z^4)/z^3]
[ sin(theta)*abs(z) + (1 - cos(theta))*x*sqrt(-z^2 -
x^2 + 1)(cos(theta) - 1)*z^2 + (cos(theta) -
1)*x^2 + 1 -(sin(theta)*x*abs(z) + (cos(theta) - 1)*z^2*sqrt(-z^2
- x^2 + 1))/z]
[-(sin(theta)*sqrt(-z^2 - x^2 + 1)*abs(z) + (cos(theta) -
1)*x*z^2)/z   -((cos(theta) - 1)*z^2*sqrt(-z^2 - x^2 + 1) -
sin(theta)*x*abs(z))/z   (1 -
cos(theta))*z^2 + cos(theta)]
Got:
[ sage2  sage4  sage6]
[ sage8 sage10 sage12]
[sage14 sage16 sage18]
**
1 items had failures:
   2 of  26 in __main__.example_0
***Test Failed*** 2 failures.

Kate



--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: sage-2.8.4.2 build report

2007-09-14 Thread William Stein

On 9/14/07, Kate [EMAIL PROTECTED] wrote:
  Never mind, I suspect pentium4-fc6 means that it's fedora core 6.

 Yes, Fedora Core 6

 % cat /proc/version
 Linux version 2.6.20-1.2962.fc6 ([EMAIL PROTECTED]
 bc2-14.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat
 4.1.1-51)) #1 SMP Tue Jun 19 19:27:14 EDT 2007

  Does it always fail that test in the same way?

Thanks for the additional testing.  I think the problem stems
partly from the lack of a specialized type for symbolic matrices
(which is actually frequently an efficiency issue for people):
I've made this trac ticket 649:
   http://trac.sagemath.org/sage_trac/ticket/649
and made it a high priority.

Please continue to report any and all problems you see with SAGE.

William


 If I just run
  .sage -t devel/sage-main/sage/plot/plot3d/transform.pyx
 _now_ I get an exception.  (Why did I not see this from the output of
 'make check'?)

 **
 File transform.pyx, line 178:
 sage: for ij in ix: m[ij] = m[ij].simplify_rational()
 Exception raised:
 Traceback (most recent call last):
   File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
 doctest.py, line 1212, in __run
 compileflags, 1) in test.globs
   File doctest __main__.example_0[21], line 1, in module
 for ij in ix: m[ij] = m[ij].simplify_rational()###line 178:
 sage: for ij in ix: m[ij] = m[ij].simplify_rational()
   File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
 site-packages/sage/calculus/calculus.py, line 2091, in
 simplify_rational
 return self.parent()(self._maxima_().fullratsimp())
   File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
 site-packages/sage/calculus/calculus.py, line 331, in __call__
 return self._coerce_impl(x)
   File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
 site-packages/sage/calculus/calculus.py, line 339, in _coerce_impl
 return symbolic_expression_from_maxima_element(x)
   File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
 site-packages/sage/calculus/calculus.py, line 4963, in
 symbolic_expression_from_maxima_element
 return symbolic_expression_from_maxima_string(x.name())
   File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
 site-packages/sage/calculus/calculus.py, line 4955, in
 symbolic_expression_from_maxima_string
 x = SR(w)
   File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
 site-packages/sage/calculus/calculus.py, line 331, in __call__
 return self._coerce_impl(x)
   File /home/kate/sage/sage-2.8.4.2-x86-Linux/local/lib/python2.5/
 site-packages/sage/calculus/calculus.py, line 363, in _coerce_impl
 raise TypeError, cannot coerce type '%s' into a
 SymbolicExpression.%type(x)
 TypeError: cannot coerce type 'class
 'sage.interfaces.sage0.Sage'' into a SymbolicExpression.
 **
 File transform.pyx, line 184:
 sage: m  # or show(m)
 Expected:
 [   (1 - cos(theta))*x^2 +
 cos(theta) -(sin(theta)*abs(z)^3 + (cos(theta) - 1)*x*z^2*sqrt(-z^2 -
 x^2 + 1))/z^2  (sin(theta)*sqrt(-z^2 - x^2 + 1)*abs(z)^3 + (1 -
 cos(theta))*x*z^4)/z^3]
 [ sin(theta)*abs(z) + (1 - cos(theta))*x*sqrt(-z^2 -
 x^2 + 1)(cos(theta) - 1)*z^2 + (cos(theta) -
 1)*x^2 + 1 -(sin(theta)*x*abs(z) + (cos(theta) - 1)*z^2*sqrt(-z^2
 - x^2 + 1))/z]
 [-(sin(theta)*sqrt(-z^2 - x^2 + 1)*abs(z) + (cos(theta) -
 1)*x*z^2)/z   -((cos(theta) - 1)*z^2*sqrt(-z^2 - x^2 + 1) -
 sin(theta)*x*abs(z))/z   (1 -
 cos(theta))*z^2 + cos(theta)]
 Got:
 [ sage2  sage4  sage6]
 [ sage8 sage10 sage12]
 [sage14 sage16 sage18]
 **
 1 items had failures:
2 of  26 in __main__.example_0
 ***Test Failed*** 2 failures.

 Kate



 



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] using coeff() with the output of groebner()

2007-09-14 Thread David Stahl

Can anyone tell me how to extract the coefficients from the results of
groebner()?  I tried using coeff() but it gives me the error object
has no attribute coeff.  Thank you.

David


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: using coeff() with the output of groebner()

2007-09-14 Thread Martin Albrecht

On Friday 14 September 2007, David Stahl wrote:
 Can anyone tell me how to extract the coefficients from the results of
 groebner()? 

Dou you mean Ideal.groebner_basis i.e. the SAGE method or 
SingularElement.groebner i.e. the Singular command? As you try to call coeff 
you probably refer tot he Singular function. Singular doesn't have a command 
coeff but it has a command coef (notice the single 'f'), described here:

http://www.singular.uni-kl.de/Manual/3-0-3/sing_175.htm#SEC215

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-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: using coeff() with the output of groebner()

2007-09-14 Thread David Stahl

I am using the sage command groebner_basis().

David

On Sep 14, 1:05 pm, Martin Albrecht [EMAIL PROTECTED]
wrote:
 On Friday 14 September 2007, David Stahl wrote:

  Can anyone tell me how to extract the coefficients from the results of
  groebner()?

 Dou you mean Ideal.groebner_basis i.e. the SAGE method or
 SingularElement.groebner i.e. the Singular command? As you try to call coeff
 you probably refer tot he Singular function. Singular doesn't have a command
 coeff but it has a command coef (notice the single 'f'), described here:

 http://www.singular.uni-kl.de/Manual/3-0-3/sing_175.htm#SEC215

 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-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Systemwide 2.8.4.1 install on Ubuntu Feisty

2007-09-14 Thread Jonathan Bober


 This is actually an unrelated issue.  A user must have write permissions
 to the *current* directory to run the notebook, since it stores its state
 files in the current directory.  Try instead:

I've noticed this before, but I've never really thought too much about
it. Because of this, I've got sage_notebook directories sprinked
throughout different random places on my machine, and it's a little
annoying. (And I also think that it is a little rude of sage to do
this without my knowlegde.)

Is there a good reason that sage doesn't simply use the .sage directory
that it creates under my home directory for this? If not, then I would
like to call this a bug. And even if there is a good reason, then I
still might like to call it a bug.


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Systemwide 2.8.4.1 install on Ubuntu Feisty

2007-09-14 Thread William Stein

On 9/14/07, Jonathan Bober [EMAIL PROTECTED] wrote:
  This is actually an unrelated issue.  A user must have write permissions
  to the *current* directory to run the notebook, since it stores its state
  files in the current directory.  Try instead:

 I've noticed this before, but I've never really thought too much about
 it. Because of this, I've got sage_notebook directories sprinked
 throughout different random places on my machine, and it's a little
 annoying. (And I also think that it is a little rude of sage to do
 this without my knowlegde.)

 Is there a good reason that sage doesn't simply use the .sage directory
 that it creates under my home directory for this? If not, then I would
 like to call this a bug. And even if there is a good reason, then I
 still might like to call it a bug.

This is certainly not a bug because it was a conscious
design decision that a lot of people agree with
and really like.   The idea is that you start the SAGE notebook
in a directory where you have some project, and the worksheets
you get are exactly the ones related to that project.
For me this is by far the most natural and best way to work.
E.g., if I'm writing a book on the riemann hypothesis, my
src directory looks like this:

rh.tex ... lots of stuff ..   sage_notebook

And if I think do

   sage -notebook

I get a notebook with all worksheets related to my work on
the Riemann Hypothesis book.

That said, I'm certainly interested in revisiting this design decision,
so if people have strong feelings pro or con, please speak up.

By the way, you could always write a script like this:
-
#!/bin/sh
cd $HOME/.sage
sage -notebook# or sage -inotebook
--

and the SAGE notebook run via that script
would then always use the version in .sage/.

Another point to make is that the other servers included
in Sage, e.g., wiki(), work the same way.  I.e., they
run from a local directory.


-

Another point is that I often want to run separate
SAGE notebooks on the same computer, but
with completely different sets of worksheets.
I just do
   sage -notebook
from one project directory and
   sage -notebook
from another, and I'm good to go.

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: using coeff() with the output of groebner()

2007-09-14 Thread William Stein

On 9/14/07, David Stahl [EMAIL PROTECTED] wrote:

 I am using the sage command groebner_basis().

 David

OK, this just seems like a case of showing you an example will
answer the question.   Let me know if it doesn't:

sage: P.a,b,c = PolynomialRing(QQ,3, order='lex')
sage: I = sage.rings.ideal.Katsura(P,3) # regenerate to prevent caching
sage: g = I.groebner_basis()
sage: g[0].coefficients()
[84, -40, 1, 1]
sage: g[1].coefficients()
[7, 210, -79, 3]
sage: g[2].coefficients()
[1, 2, 2, -1]
sage: g
[84*c^4 - 40*c^3 + c^2 + c, 7*b + 210*c^3 - 79*c^2 + 3*c, a + 2*b + 2*c - 1]



 On Sep 14, 1:05 pm, Martin Albrecht [EMAIL PROTECTED]
 wrote:
  On Friday 14 September 2007, David Stahl wrote:
 
   Can anyone tell me how to extract the coefficients from the results of
   groebner()?
 
  Dou you mean Ideal.groebner_basis i.e. the SAGE method or
  SingularElement.groebner i.e. the Singular command? As you try to call coeff
  you probably refer tot he Singular function. Singular doesn't have a command
  coeff but it has a command coef (notice the single 'f'), described here:
 
  http://www.singular.uni-kl.de/Manual/3-0-3/sing_175.htm#SEC215
 
  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]


 



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Problems with building SAGE

2007-09-14 Thread mabshoff



On Sep 15, 12:19 am, Simon King [EMAIL PROTECTED] wrote:
 Dear Professor Stein,

Well, he is known as William around here :)

SNIP

 The binaries work fine, that was not the problem. Simply i wanted to learn
 to build SAGE by myself, and when i found that make finished but did not
 yield a working binary, i wanted to know why.

 I'm sorry that i didn't try to gzip the install.log in my first mail. It
 is now less than 1 MB, hence should be accepted by your mail system -- see
 attachment.


Got the attachment, looking at it. Could you check if you have termcap
and its development package installed? readline usually defaults to
termcap and only uses ncurses as an optional library to link against,
but who knows what the OpenSuSE people did. I have a 10.1 OpenSuSE
x86-64 box, but I have to check out there what happens.

 Yours
 Simon

  install.log.gz
 965KDownload

Cheers,

Michael


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Problems with building SAGE

2007-09-14 Thread mabshoff



On Sep 15, 12:20 am, mabshoff [EMAIL PROTECTED]
dortmund.de wrote:
 On Sep 15, 12:19 am, Simon King [EMAIL PROTECTED] wrote:

  Dear Professor Stein,

 Well, he is known as William around here :)

 SNIP



  The binaries work fine, that was not the problem. Simply i wanted to learn
  to build SAGE by myself, and when i found that make finished but did not
  yield a working binary, i wanted to know why.

  I'm sorry that i didn't try to gzip the install.log in my first mail. It
  is now less than 1 MB, hence should be accepted by your mail system -- see
  attachment.

 Got the attachment, looking at it. Could you check if you have termcap
 and its development package installed? readline usually defaults to
 termcap and only uses ncurses as an optional library to link against,
 but who knows what the OpenSuSE people did. I have a 10.1 OpenSuSE
 x86-64 box, but I have to check out there what happens.

  Yours
  Simon

   install.log.gz
  965KDownload

 Cheers,

 Michael

Hello Simon,

I looked at the log. Readline builds fine, but there is trouble when
building python:

gcc -pthread -shared build/temp.linux-x86_64-2.5/usr/local/
sage-2.8.4.1/spkg/build/python-2.5.1.p6/src/Modules/readline.o -L /usr/
lib/termcap -L/usr/local/sage-2.8.4.1/local/lib -L/usr/local/lib -
lreadline -lncurses -o build/lib.linux-x86_64-2.5/readline.so /usr/
lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/
ld: /usr/lib/libncurses.a(lib_termcap.o): relocation R_X86_64_32S
against `numcodes' can not be used when making a shared object;
recompile with -fPIC
/usr/lib/libncurses.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

So, the interesting question is now: What to do? Python's configure
has no switch to enable or disable [n]curses, so please reinstall that
rpm and try again. Otherwise we need to set up a VMWare image with
OpenSuSE 10.2 and see if the problem only happens to you.

To compare here is my line from the log:

gcc -pthread -shared build/temp.linux-x86_64-2.5/tmp/Work-mabshoff/
sage-2.8.4.2/spkg/build/python-2.5.1.p7/src/Modules/readl
ine.o -L/usr/lib/termcap -L/tmp/Work-mabshoff/sage-2.8.4.2/local/lib -
L/usr/local/lib -lreadline -lncurses -o build/lib.linu
x-x86_64-2.5/readline.so
building 'crypt' extension

Cheers,

Michael


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] upgrading from 2.8.4.1 to 2.8.4.2 error

2007-09-14 Thread Timothy Clemans

I'm getting this upgrade error:

Using SAGE Server http://www.sagemath.org//packages
http://www.sagemath.org//packages/install -- install
[.]
http://www.sagemath.org//packages/standard/list -- list
[.]
http://www.sagemath.org//packages/standard/deps -- deps
[..]
http://www.sagemath.org//packages/standard/newest_version -- newest_version
[.]
http://www.sagemath.org//packages/standard/README -- README
[.]
http://www.sagemath.org//packages/standard/doc-2.8.3.spkg -- doc-2.8.3.spkg
[.]
/home/tclemans/sage-2.8.4.1/local/bin/sage-update: Error downloading
http://www.sagemath.org//packages/standard/doc-2.8.3.spkg
Error getting new packages!
Using SAGE Server http://www.sagemath.org//packages
http://www.sagemath.org//packages/install -- install
[.]
http://www.sagemath.org//packages/standard/list -- list
[.]
http://www.sagemath.org//packages/standard/deps -- deps
[..]
http://www.sagemath.org//packages/standard/newest_version -- newest_version
[.]
http://www.sagemath.org//packages/standard/README -- README
[.]
http://www.sagemath.org//packages/standard/doc-2.8.3.spkg -- doc-2.8.3.spkg
[.]
/home/tclemans/sage-2.8.4.1/local/bin/sage-update: Error downloading
http://www.sagemath.org//packages/standard/doc-2.8.3.spkg
Error getting new packages!

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: upgrading from 2.8.4.1 to 2.8.4.2 error

2007-09-14 Thread William Stein

On 9/14/07, Timothy Clemans [EMAIL PROTECTED] wrote:

 I'm getting this upgrade error:

Thanks for reporting this!  The problem should now be fixed.

William


 Using SAGE Server http://www.sagemath.org//packages
 http://www.sagemath.org//packages/install -- install
 [.]
 http://www.sagemath.org//packages/standard/list -- list
 [.]
 http://www.sagemath.org//packages/standard/deps -- deps
 [..]
 http://www.sagemath.org//packages/standard/newest_version -- newest_version
 [.]
 http://www.sagemath.org//packages/standard/README -- README
 [.]
 http://www.sagemath.org//packages/standard/doc-2.8.3.spkg -- doc-2.8.3.spkg
 [.]
 /home/tclemans/sage-2.8.4.1/local/bin/sage-update: Error downloading
 http://www.sagemath.org//packages/standard/doc-2.8.3.spkg
 Error getting new packages!
 Using SAGE Server http://www.sagemath.org//packages
 http://www.sagemath.org//packages/install -- install
 [.]
 http://www.sagemath.org//packages/standard/list -- list
 [.]
 http://www.sagemath.org//packages/standard/deps -- deps
 [..]
 http://www.sagemath.org//packages/standard/newest_version -- newest_version
 [.]
 http://www.sagemath.org//packages/standard/README -- README
 [.]
 http://www.sagemath.org//packages/standard/doc-2.8.3.spkg -- doc-2.8.3.spkg
 [.]
 /home/tclemans/sage-2.8.4.1/local/bin/sage-update: Error downloading
 http://www.sagemath.org//packages/standard/doc-2.8.3.spkg
 Error getting new packages!

 



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---