[sage-support] Re: sage notebook returns a plain html code

2008-06-03 Thread Ondrej Certik

On Tue, Jun 3, 2008 at 9:25 AM, Ondrej Certik [EMAIL PROTECTED] wrote:
 Hi,

 I installed sage 3.0.2 and run:

 sage: notebook(open_viewer=False, port=8100)

 then setup apache like this:

 VirtualHost *
ServerName sage.sympy.org
ServerAdmin [EMAIL PROTECTED]
ProxyPass / http://localhost:8100/
ProxyPassReverse / http://localhost:8100/
 /VirtualHost

 and when connecting to sage.sympy.org, I get a plain html code instead
 of the webpage. So the apache is returning something wrong, so I did

 $ w3m http://localhost:8100/

 which connects directly to the sage server, but this returns a plain
 html code as well.
 I also installed knoboo using exactly the same technique as above and
 it works, so I suspect it's not a problem in the apache configuration,
 but rather in the sage server?

Update:

When I do:

$ ssh -L 8100:localhost:8100 myserver

and then connect to localhost:8100 with firefox, it works. w3m doesn't
work even now, which means that w3m will not work with the notebook,
but that's ok. So the problem is with the apache.

What is weird is that the same apache configuration (just a different
port) works for knoboo.

Ondrej

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



[sage-support] Re: units

2008-06-03 Thread Radek

Thank you very much.
The Unum python package from http://home.scarlet.be/be052320/Unum.html
seems to be what I need at my basic level :-)

Radek

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



[sage-support] sage notebook returns a plain html code

2008-06-03 Thread Ondrej Certik

Hi,

I installed sage 3.0.2 and run:

sage: notebook(open_viewer=False, port=8100)

then setup apache like this:

VirtualHost *
ServerName sage.sympy.org
ServerAdmin [EMAIL PROTECTED]
ProxyPass / http://localhost:8100/
ProxyPassReverse / http://localhost:8100/
/VirtualHost

and when connecting to sage.sympy.org, I get a plain html code instead
of the webpage. So the apache is returning something wrong, so I did

$ w3m http://localhost:8100/

which connects directly to the sage server, but this returns a plain
html code as well.
I also installed knoboo using exactly the same technique as above and
it works, so I suspect it's not a problem in the apache configuration,
but rather in the sage server?

Thanks for any ideas,
Ondrej

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



[sage-support] Re: How to run a server remotely?

2008-06-03 Thread Mats

Unfortunately the example in the docs doesn't work (bug?), so I'm
checking with the sage-devel group.
Thank you however!

Best wishes,
Mats

(for the record:)

sage: notebook(address='', secure=True)
The notebook files are stored in: /home/mats/.sage//sage_notebook
In order to use an SECURE encrypted notebook, you must first run
notebook.setup().
Now running notebook.setup()
Using dsage certificates.
---
ImportError   Traceback (most recent call
last)

/home/mats/.sage/ipython console in module()

/home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-Linux/local/lib/
python2.5/site-packages/sage/server/notebook/notebook_object.py in
__call__(self, *args, **kwds)
141 
142 def __call__(self, *args, **kwds):
-- 143 return self.notebook(*args, **kwds)
144
145 notebook = run_notebook.notebook_twisted

/home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-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, require_login, server_pool, ulimit, timeout,
open_viewer, sagetex_path, start_path, fork, quiet)
269 if open_viewer:
270 Open viewer automatically isn't fully implemented.
You have to manually open your web browser to the above URL.
-- 271 return run(port)
272
273

/home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-Linux/local/lib/
python2.5/site-packages/sage/server/notebook/run_notebook.py in
run(port)
141 print In order to use an SECURE encrypted
notebook, you must first run notebook.setup().
142 print Now running notebook.setup()
-- 143 notebook_setup()
144 if not os.path.exists(private_pem) or not
os.path.exists(public_pem):
145 print Failed to setup notebook.  Please try
notebook.setup() again manually.

/home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-Linux/local/lib/
python2.5/site-packages/sage/server/notebook/run_notebook.py in
notebook_setup(self)
 37 dsage = os.path.join(DOT_SAGE, 'dsage')
 38 import sage.dsage.all
--- 39 sage.dsage.all.dsage.setup()
 40 shutil.copyfile(dsage + '/cacert.pem', private_pem)
 41 shutil.copyfile(dsage + '/pubcert.pem', public_pem)

/home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-Linux/local/lib/
python2.5/site-packages/sage/dsage/dsage.py in setup(self, template)
312 
313
-- 314 from sage.dsage.scripts.dsage_setup import setup
315 setup(template=template)
316

ImportError: No module named dsage_setup
sage:



Seems to be failing on notebook.setup() when trying to import
dsage_setup, which doesn't exist.

On Jun 2, 12:50 pm, William Stein [EMAIL PROTECTED] wrote:
 On Mon, Jun 2, 2008 at 9:36 AM, Mats [EMAIL PROTECTED] wrote:

  Hello,

  I'd like to run a server on a 4-core computer, so I ssh into it and
  run ./sage -notebook, and it starts up, but I cannot access it
  remotely (http://name.of.host:8000). Is this a security feature I can
  get around somehow?

  Thank you,

 Start sage and type

  sage: notebook?

 and read the directions.  In particular see the address= line.

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



[sage-support] Re: sage notebook returns a plain html code

2008-06-03 Thread William Stein

On Tue, Jun 3, 2008 at 1:01 AM, Ondrej Certik [EMAIL PROTECTED] wrote:

 On Tue, Jun 3, 2008 at 9:25 AM, Ondrej Certik [EMAIL PROTECTED] wrote:
 Hi,

 I installed sage 3.0.2 and run:

 sage: notebook(open_viewer=False, port=8100)

 then setup apache like this:

 VirtualHost *
ServerName sage.sympy.org
ServerAdmin [EMAIL PROTECTED]
ProxyPass / http://localhost:8100/
ProxyPassReverse / http://localhost:8100/
 /VirtualHost

 and when connecting to sage.sympy.org, I get a plain html code instead
 of the webpage. So the apache is returning something wrong, so I did

 $ w3m http://localhost:8100/

 which connects directly to the sage server, but this returns a plain
 html code as well.
 I also installed knoboo using exactly the same technique as above and
 it works, so I suspect it's not a problem in the apache configuration,
 but rather in the sage server?

 Update:

 When I do:

 $ ssh -L 8100:localhost:8100 myserver

 and then connect to localhost:8100 with firefox, it works. w3m doesn't
 work even now, which means that w3m will not work with the notebook,
 but that's ok. So the problem is with the apache.

 What is weird is that the same apache configuration (just a different
 port) works for knoboo.

Try adding this:
Location /
   DefaultType text/html
/Location

Here's what I use for proxy forwarding for an https notebook:

VirtualHost www.sagenb.org:443
SSLProxyEngine on
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
ServerName www.sagenb.org
ProxyPass/ https://sage.math.washington.edu:8101/
ProxyPassReverse / https://sage.math.washington.edu:8101/
Location /
   DefaultType text/html
/Location
/VirtualHost

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



[sage-support] Re: SAGE on CentOS

2008-06-03 Thread William Stein

On Tue, Jun 3, 2008 at 7:09 AM, David Joyner [EMAIL PROTECTED] wrote:

 centOS is debian-based, so assuming you have 32 bit centOS, you might try

CentOS is rpm-based -- it's basically identical to RedHat.

I have built Sage from source on CentOS before (on a CentOS
supercomputer in Texas, actually), and it worked fine.

William




http://modular.math.washington.edu/sage/SAGEbin/linux/32bit/sage-3.0.2-debian32-intelx86-i686-Linux.tar.gz


 On Tue, Jun 3, 2008 at 7:59 AM, Melissa [EMAIL PROTECTED] wrote:

 Hi-

 I'm sort of new to compiling things from source [and new to CentOS]. I
 followed the instructions detailed in the .pdf for compiling from
 source, including making sure I had the necessary repos. However, I
 know it didn't work, because it took all of five seconds and after
 each thing it said this: You must set the SAGE_ROOT environment
 variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/
 directory.

 When trying to run sage by changing into the directory and typing ./
 sage, I get the following message at the bottom: ImportError: /home/
 syslin/sage-3.0.2-rhel32bit-intelx86-i686-Linux/local/lib/libpari-
 gmp.so.2: cannot restore segment prot after reloc: Permission denied
 ERROR: name 'sage_prompt' is not defined.

 Also, I'm confused as to which tar I should've downloaded. I used the
 RHEL one. Is this right? The OS is CentOS 5.1.

 -Melissa

 


 




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



[sage-support] Re: sage notebook returns a plain html code

2008-06-03 Thread Ondrej Certik

On Tue, Jun 3, 2008 at 3:59 PM, William Stein [EMAIL PROTECTED] wrote:

 On Tue, Jun 3, 2008 at 1:01 AM, Ondrej Certik [EMAIL PROTECTED] wrote:

 On Tue, Jun 3, 2008 at 9:25 AM, Ondrej Certik [EMAIL PROTECTED] wrote:
 Hi,

 I installed sage 3.0.2 and run:

 sage: notebook(open_viewer=False, port=8100)

 then setup apache like this:

 VirtualHost *
ServerName sage.sympy.org
ServerAdmin [EMAIL PROTECTED]
ProxyPass / http://localhost:8100/
ProxyPassReverse / http://localhost:8100/
 /VirtualHost

 and when connecting to sage.sympy.org, I get a plain html code instead
 of the webpage. So the apache is returning something wrong, so I did

 $ w3m http://localhost:8100/

 which connects directly to the sage server, but this returns a plain
 html code as well.
 I also installed knoboo using exactly the same technique as above and
 it works, so I suspect it's not a problem in the apache configuration,
 but rather in the sage server?

 Update:

 When I do:

 $ ssh -L 8100:localhost:8100 myserver

 and then connect to localhost:8100 with firefox, it works. w3m doesn't
 work even now, which means that w3m will not work with the notebook,
 but that's ok. So the problem is with the apache.

 What is weird is that the same apache configuration (just a different
 port) works for knoboo.

 Try adding this:
Location /
   DefaultType text/html
/Location

 Here's what I use for proxy forwarding for an https notebook:

 VirtualHost www.sagenb.org:443
 SSLProxyEngine on
 SSLEngine on
 SSLCertificateFile /etc/apache2/ssl/apache.pem
ServerName www.sagenb.org
ProxyPass/ https://sage.math.washington.edu:8101/
ProxyPassReverse / https://sage.math.washington.edu:8101/
Location /
   DefaultType text/html
/Location
 /VirtualHost

That works, thanks a lot!

The virtualserver running http://sage.sympy.org/  only has about 360MB
of memory and that is apparently not enough, because it's swapping
with the sage notebook. But it's usable.

Is there some step by step howto how to run it in the chroot jail? If
not, when I figure it out, I'll write it to the wiki somewhere.

Ondrej

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



[sage-support] Re: How to run a server remotely?

2008-06-03 Thread William Stein

On Tue, Jun 3, 2008 at 5:14 AM, Mats [EMAIL PROTECTED] wrote:

 Unfortunately the example in the docs doesn't work (bug?), so I'm
 checking with the sage-devel group.
 Thank you however!

You've encountered the one big bug in sage-3.0.2.
See
http://trac.sagemath.org/sage_trac/ticket/3311
where we fixed it.

I think you can fix the bug by hand, by simplying copying
SAGE_ROOT/local/bin/dsage* to
SAGE_ROOT/local/lib/python/site-packages/sage/dsage/scripts

I'm terribly sorry for this major bug getting into sage-3.0.2.

(By the way, running with secure=False should also just work,
but of course is a bad idea since your notebook password could
be sniffed.)

William



 Best wishes,
 Mats

 (for the record:)

 sage: notebook(address='', secure=True)
 The notebook files are stored in: /home/mats/.sage//sage_notebook
 In order to use an SECURE encrypted notebook, you must first run
 notebook.setup().
 Now running notebook.setup()
 Using dsage certificates.
 ---
 ImportError   Traceback (most recent call
 last)

 /home/mats/.sage/ipython console in module()

 /home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-Linux/local/lib/
 python2.5/site-packages/sage/server/notebook/notebook_object.py in
 __call__(self, *args, **kwds)
141 
142 def __call__(self, *args, **kwds):
 -- 143 return self.notebook(*args, **kwds)
144
145 notebook = run_notebook.notebook_twisted

 /home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-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, require_login, server_pool, ulimit, timeout,
 open_viewer, sagetex_path, start_path, fork, quiet)
269 if open_viewer:
270 Open viewer automatically isn't fully implemented.
 You have to manually open your web browser to the above URL.
 -- 271 return run(port)
272
273

 /home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-Linux/local/lib/
 python2.5/site-packages/sage/server/notebook/run_notebook.py in
 run(port)
141 print In order to use an SECURE encrypted
 notebook, you must first run notebook.setup().
142 print Now running notebook.setup()
 -- 143 notebook_setup()
144 if not os.path.exists(private_pem) or not
 os.path.exists(public_pem):
145 print Failed to setup notebook.  Please try
 notebook.setup() again manually.

 /home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-Linux/local/lib/
 python2.5/site-packages/sage/server/notebook/run_notebook.py in
 notebook_setup(self)
 37 dsage = os.path.join(DOT_SAGE, 'dsage')
 38 import sage.dsage.all
 --- 39 sage.dsage.all.dsage.setup()
 40 shutil.copyfile(dsage + '/cacert.pem', private_pem)
 41 shutil.copyfile(dsage + '/pubcert.pem', public_pem)

 /home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-Linux/local/lib/
 python2.5/site-packages/sage/dsage/dsage.py in setup(self, template)
312 
313
 -- 314 from sage.dsage.scripts.dsage_setup import setup
315 setup(template=template)
316

 ImportError: No module named dsage_setup
 sage:

 

 Seems to be failing on notebook.setup() when trying to import
 dsage_setup, which doesn't exist.

 On Jun 2, 12:50 pm, William Stein [EMAIL PROTECTED] wrote:
 On Mon, Jun 2, 2008 at 9:36 AM, Mats [EMAIL PROTECTED] wrote:

  Hello,

  I'd like to run a server on a 4-core computer, so I ssh into it and
  run ./sage -notebook, and it starts up, but I cannot access it
  remotely (http://name.of.host:8000). Is this a security feature I can
  get around somehow?

  Thank you,

 Start sage and type

  sage: notebook?

 and read the directions.  In particular see the address= line.

  -- William

 




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



[sage-support] Re: sage notebook returns a plain html code

2008-06-03 Thread William Stein

On Tue, Jun 3, 2008 at 7:47 AM, Ondrej Certik [EMAIL PROTECTED] wrote:

 On Tue, Jun 3, 2008 at 4:39 PM, Ondrej Certik [EMAIL PROTECTED] wrote:
 On Tue, Jun 3, 2008 at 3:59 PM, William Stein [EMAIL PROTECTED] wrote:

 On Tue, Jun 3, 2008 at 1:01 AM, Ondrej Certik [EMAIL PROTECTED] wrote:

 On Tue, Jun 3, 2008 at 9:25 AM, Ondrej Certik [EMAIL PROTECTED] wrote:
 Hi,

 I installed sage 3.0.2 and run:

 sage: notebook(open_viewer=False, port=8100)

 then setup apache like this:

 VirtualHost *
ServerName sage.sympy.org
ServerAdmin [EMAIL PROTECTED]
ProxyPass / http://localhost:8100/
ProxyPassReverse / http://localhost:8100/
 /VirtualHost

 and when connecting to sage.sympy.org, I get a plain html code instead
 of the webpage. So the apache is returning something wrong, so I did

 $ w3m http://localhost:8100/

 which connects directly to the sage server, but this returns a plain
 html code as well.
 I also installed knoboo using exactly the same technique as above and
 it works, so I suspect it's not a problem in the apache configuration,
 but rather in the sage server?

 Update:

 When I do:

 $ ssh -L 8100:localhost:8100 myserver

 and then connect to localhost:8100 with firefox, it works. w3m doesn't
 work even now, which means that w3m will not work with the notebook,
 but that's ok. So the problem is with the apache.

 What is weird is that the same apache configuration (just a different
 port) works for knoboo.

 Try adding this:
Location /
   DefaultType text/html
/Location

 Here's what I use for proxy forwarding for an https notebook:

 VirtualHost www.sagenb.org:443
 SSLProxyEngine on
 SSLEngine on
 SSLCertificateFile /etc/apache2/ssl/apache.pem
ServerName www.sagenb.org
ProxyPass/ https://sage.math.washington.edu:8101/
ProxyPassReverse / https://sage.math.washington.edu:8101/
Location /
   DefaultType text/html
/Location
 /VirtualHost

 That works, thanks a lot!

 The virtualserver running http://sage.sympy.org/  only has about 360MB
 of memory and that is apparently not enough, because it's swapping
 with the sage notebook. But it's usable.

 Is there some step by step howto how to run it in the chroot jail? If
 not, when I figure it out, I'll write it to the wiki somewhere.

 I used:

 http://lite.sagemath.org/search.html

 with chroot jail and that quickly revealed:

 http://www.sagemath.org/doc/html/inst/node10.html

 The search page is very useful.


Thanks to Bobby Moretti for writing those instructions.

Also, thanks to Bill Page for figuring out the
   Location /
   DefaultType text/html
/Location
apache configuration fix, which had totally stumped me.

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



[sage-support] Re: SAGE on CentOS

2008-06-03 Thread mabshoff



On Jun 3, 1:59 pm, Melissa [EMAIL PROTECTED] wrote:
 Hi-

Hi Melissa,

 I'm sort of new to compiling things from source [and new to CentOS]. I
 followed the instructions detailed in the .pdf for compiling from
 source, including making sure I had the necessary repos. However, I
 know it didn't work, because it took all of five seconds and after
 each thing it said this: You must set the SAGE_ROOT environment
 variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/
 directory.

 When trying to run sage by changing into the directory and typing ./
 sage, I get the following message at the bottom: ImportError: /home/
 syslin/sage-3.0.2-rhel32bit-intelx86-i686-Linux/local/lib/libpari-
 gmp.so.2: cannot restore segment prot after reloc: Permission denied
 ERROR: name 'sage_prompt' is not defined.

You have SELinux enabled which causes the above problem. You can
either disabled SELinux or relabel the libraries of Sage. How to do
that can be found at

http://www.ittvis.com/services/techtip.asp?ttid=3092

But that is not Centos specific. Others on this list run Sage with
SELinux enabled, so hopefully they can give you more detailed input
what  to do.

 Also, I'm confused as to which tar I should've downloaded. I used the
 RHEL one. Is this right? The OS is CentOS 5.1.

Yes, the RHEL ones should run out of the box on a Centos install [i.e.
RHEL 5 is the same as Centos 5, RHEL 5 Update 1 is Centos 5.1]. The
CPU type should obviously match.

 -Melissa

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



[sage-support] Re: Why isn't Octave

2008-06-03 Thread David Joyner

There is an octave interface (and lots of people use it), but the reason why
a SAGE package for octave is not included at this time is addressed here:
http://groups.google.com/group/sage-devel/browse_thread/thread/b5ccf2ffea78fd60/e72adb448c783983?
Basically, you can install octave and use it within SAGE quicker and
easier than compiling it as a
SAGE package, so a package has not been created yet. If you are interested in
volunteering to create one, please email William Stein or Michael
Abshoff or sage-devel.
Thanks, David

On Tue, Jun 3, 2008 at 10:35 AM, Cesar Agustin Garcia Vazquez
[EMAIL PROTECTED] wrote:
 I was wondering, while I was reading the Sage programming guide, why Octave
 is not part of Sage, is there any reason?


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



[sage-support] Re: How to run a server remotely?

2008-06-03 Thread William Stein

On Tue, Jun 3, 2008 at 7:15 AM, William Stein [EMAIL PROTECTED] wrote:
 On Tue, Jun 3, 2008 at 5:14 AM, Mats [EMAIL PROTECTED] wrote:

 Unfortunately the example in the docs doesn't work (bug?), so I'm
 checking with the sage-devel group.
 Thank you however!

 You've encountered the one big bug in sage-3.0.2.
 See
 http://trac.sagemath.org/sage_trac/ticket/3311
 where we fixed it.

 I think you can fix the bug by hand, by simplying copying
 SAGE_ROOT/local/bin/dsage* to
 SAGE_ROOT/local/lib/python/site-packages/sage/dsage/scripts

 I'm terribly sorry for this major bug getting into sage-3.0.2.


By the way, we'll release sage-3.0.3 within a few days, which
will of course fix this problem.

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



[sage-support] Re: SAGE on CentOS

2008-06-03 Thread William Stein

On Tue, Jun 3, 2008 at 4:59 AM, Melissa [EMAIL PROTECTED] wrote:

 Hi-

 I'm sort of new to compiling things from source [and new to CentOS]. I
 followed the instructions detailed in the .pdf for compiling from
 source, including making sure I had the necessary repos. However, I
 know it didn't work, because it took all of five seconds and after
 each thing it said this: You must set the SAGE_ROOT environment
 variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/
 directory.

 When trying to run sage by changing into the directory and typing ./
 sage, I get the following message at the bottom: ImportError: /home/
 syslin/sage-3.0.2-rhel32bit-intelx86-i686-Linux/local/lib/libpari-
 gmp.so.2: cannot restore segment prot after reloc: Permission denied
 ERROR: name 'sage_prompt' is not defined.

 Also, I'm confused as to which tar I should've downloaded. I used the
 RHEL one. Is this right? The OS is CentOS 5.1.


By the way, given that we don't make centos binaries,
I *do* recommend you build from source.

  1. Download the top listed tarball here:
http://sagemath.org/dist/src
   2. tar xvf sage-3.0.2.tar
   3.  cd sage-3.0.2
   4.  make
   5. Wait 2 hours
   6. Done.

If it immediately fails that's because you need one
of the prerequisite packages.  There are very few:

   gcc, g++, make, m4, perl, and ranlib

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



[sage-support] Re: How to run a server remotely?

2008-06-03 Thread Mats

Hey it happens sometimes; at least you guys help users with a
quickfix. =) Thank you.

One might prevent such future problems by adding this to unit tests
(if it doesn't exist already) and checking before release.

Thanks,
Mats

On Jun 3, 10:16 am, William Stein [EMAIL PROTECTED] wrote:
 On Tue, Jun 3, 2008 at 7:15 AM, William Stein [EMAIL PROTECTED] wrote:
  On Tue, Jun 3, 2008 at 5:14 AM, Mats [EMAIL PROTECTED] wrote:

  Unfortunately the example in the docs doesn't work (bug?), so I'm
  checking with the sage-devel group.
  Thank you however!

  You've encountered the one big bug in sage-3.0.2.
  See
 http://trac.sagemath.org/sage_trac/ticket/3311
  where we fixed it.

  I think you can fix the bug by hand, by simplying copying
  SAGE_ROOT/local/bin/dsage* to
  SAGE_ROOT/local/lib/python/site-packages/sage/dsage/scripts

  I'm terribly sorry for this major bug getting into sage-3.0.2.

 By the way, we'll release sage-3.0.3 within a few days, which
 will of course fix this problem.

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



[sage-support] Re: How to run a server remotely?

2008-06-03 Thread mabshoff

On Jun 3, 6:16 pm, Mats [EMAIL PROTECTED] wrote:

Hi Mats,

 Hey it happens sometimes; at least you guys help users with a
 quickfix. =) Thank you.

;)

 One might prevent such future problems by adding this to unit tests
 (if it doesn't exist already) and checking before release.

We  have extensive tests for Sage, i.e. one and a half hours of CPU
time for the Sage library alone, but that one slipped by the DSage
unit tests as well as the general doctests and we were just as
surprised as you that it didn't get caught. That is why any new patch
merged must be 100% doctested. Additionally we have been actively
adding doctests to existing code and the goal is to have 100% of Sage
functions doctested. Right now we are slightly over 52%.

 Thanks,
 Mats

Cheers,

Michael

 On Jun 3, 10:16 am, William Stein [EMAIL PROTECTED] wrote:

  On Tue, Jun 3, 2008 at 7:15 AM, William Stein [EMAIL PROTECTED] wrote:
   On Tue, Jun 3, 2008 at 5:14 AM, Mats [EMAIL PROTECTED] wrote:

   Unfortunately the example in the docs doesn't work (bug?), so I'm
   checking with the sage-devel group.
   Thank you however!

   You've encountered the one big bug in sage-3.0.2.
   See
  http://trac.sagemath.org/sage_trac/ticket/3311
   where we fixed it.

   I think you can fix the bug by hand, by simplying copying
   SAGE_ROOT/local/bin/dsage* to
   SAGE_ROOT/local/lib/python/site-packages/sage/dsage/scripts

   I'm terribly sorry for this major bug getting into sage-3.0.2.

  By the way, we'll release sage-3.0.3 within a few days, which
  will of course fix this problem.

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



[sage-support] Re: SAGE on CentOS

2008-06-03 Thread Melissa

Michael-



 You have SELinux enabled which causes the above problem. You can
 either disabled SELinux or relabel the libraries of Sage. How to do
 that can be found at

 http://www.ittvis.com/services/techtip.asp?ttid=3092

 But that is not Centos specific. Others on this list run Sage with
 SELinux enabled, so hopefully they can give you more detailed input
 what  to do.



Thank you so much. This was extremely helpful. I temporarily disabled
SELinux, and it worked like a charm. =) I will take a look at the
website you provided to learn more about how to run it with SELinux
enabled!

Thanks again!

-Melissa

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



[sage-support] SAGE online notebook registration problem

2008-06-03 Thread Runde

I tried to register twice on the online notebook at 
https://sage.math.washington.edu:8102,
and after the registration page it says that my user name is taken (as
expected). But, it still sends me a confirmation email. I click on the
registration confirmation link and it says that I've confirmed.
It shouldn't send the email at all.
(it also does the same thing at 8103)

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



[sage-support] Re: SAGE online notebook registration problem

2008-06-03 Thread mabshoff

On Jun 3, 11:40 pm, Runde [EMAIL PROTECTED] wrote:

Hi Runde,

 I tried to register twice on the online notebook 
 athttps://sage.math.washington.edu:8102,
 and after the registration page it says that my user name is taken (as
 expected). But, it still sends me a confirmation email. I click on the
 registration confirmation link and it says that I've confirmed.
 It shouldn't send the email at all.
 (it also does the same thing at 8103)

any chance your Spam filter classified those emails as Spam? That has
happened in the past since the server sending the email does something
that often triggers Spam detection. There is a ticket for the issue
already, but I do not remember details at the moment.

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



[sage-support] Re: SAGE online notebook registration problem

2008-06-03 Thread Timothy Clemans

Michael,

I confirmed earlier what was reported. When one tries to sign up with
a username already taken the new user is still sent a confirmation
e-mail.

Personally I think the confirmation e-mailing system should be removed
completely unless someone actually implements confirmation.

On Tue, Jun 3, 2008 at 7:52 PM, mabshoff
[EMAIL PROTECTED] wrote:

 On Jun 3, 11:40 pm, Runde [EMAIL PROTECTED] wrote:

 Hi Runde,

 I tried to register twice on the online notebook 
 athttps://sage.math.washington.edu:8102,
 and after the registration page it says that my user name is taken (as
 expected). But, it still sends me a confirmation email. I click on the
 registration confirmation link and it says that I've confirmed.
 It shouldn't send the email at all.
 (it also does the same thing at 8103)

 any chance your Spam filter classified those emails as Spam? That has
 happened in the past since the server sending the email does something
 that often triggers Spam detection. There is a ticket for the issue
 already, but I do not remember details at the moment.

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



[sage-support] Re: SAGE online notebook registration problem

2008-06-03 Thread mabshoff

On Jun 4, 5:27 am, Timothy Clemans [EMAIL PROTECTED]
wrote:
 Michael,

Hi Timothy,

 I confirmed earlier what was reported. When one tries to sign up with
 a username already taken the new user is still sent a confirmation
 e-mail.

Yep, I completely missed the point of this email, sorry for the
noise. ;)

 Personally I think the confirmation e-mailing system should be removed
 completely unless someone actually implements confirmation.

We should keep it around but it is a bug that that second confirmation
email is even send. Care to open a ticket? I see no reason to remove
code we are likely to add back down the road anyway.

Cheers,

Michael

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



[sage-support] Mixing polynomial rings

2008-06-03 Thread Andrey Novoseltsev

Hello,

What is wrong with the code below and how to fix it? I have a function
that produces a polynomial in t. Then I want to plug in u/v in another
function. The code works if I replace QQ by ZZ at least for the first
ring, but rationals seem to be much faster.

Thank you!
Andrey


Rt.t = PolynomialRing(QQ,1)
p = 1+t
R.u,v = PolynomialRing(QQ, 2)
p(u/v)

Output:

Traceback (most recent call last):
  File stdin, line 1, in module
  File /home/novoselt/.sage/sage_notebook/worksheets/admin/27/code/
50.py, line 9, in module
p(u/v)
  File /home/novoselt/sage/sage-3.0.1/local/lib/python2.5/site-
packages/sympy/plotting/, line 1, in module

  File multi_polynomial_libsingular.pyx, line 1461, in
sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular.__call__
(sage/rings/polynomial/multi_polynomial_libsingular.cpp:10503)
TypeError: object of type 'FractionFieldElement' has no len()
--~--~-~--~~~---~--~~
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://www.sagemath.org
-~--~~~~--~~--~--~---