[sage-support] Re: Help! Why the polynomial is not generated for "Multivariate Polynomial Ring in y0, y1, y2, y3, y4, y5, y6, y7, x0, x1, x2, x3, x4, x5, x6, x7 over Finite Field of size 2"

2009-05-27 Thread Sajan.S

Hi Martin,

One more doubt.

In the above example, i have given 8 input and 8 output to the sbox.

Is it possible to give 8 input and 6 output to the sbox.

Eg:

P= PolynomialRing(GF(2),14,"y0, y1, y2, y3, y4, y5, x0, x1, x2, x3,
x4, x5, x6, x7",order='lex');

Above code is not tested. but for 6 by 4 i tested. its showing some
error!

Please help me out from this!

Thanks & Regards,
Sajan.S




On May 26, 4:42 pm, "Sajan.S"  wrote:
> Thanks alot for the hint.
>
> It worked for me!
>
> On May 26, 11:26 am, Martin Albrecht 
> wrote:
>
> > > #F=S.polynomials();
> > > s=S.solutions();
>
> > > P= PolynomialRing(GF(2),16,"y0, y1, y2, y3, y4, y5, y6, y7, x0, x1,
> > > x2, x3, x4, x5, x6, x7",order='lex');
> > > P.inject_variables();
>
> > > p=S.polynomials([x0, x1, x2, x3, x4, x5, x6, x7],[y0, y1, y2, y3, y4,
> > > y5, y6, y7], groebner=True);
>
> > Ah, got it: your list p is empty. This is because your S-Box just doesn't 
> > give
> > rise polynomials of degree 2 (the default choice). Just choose a higher
> > degree. cf. the documentation of "S.polynomials?" for details.
>
> > Cheers,
> > Martin
> > --
> > name: Martin Albrecht
> > _pgp:http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
> > _otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
> > _www:http://www.informatik.uni-bremen.de/~malb
> > _jab: martinralbre...@jabber.ccc.de
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] using C code with ctypes module

2009-05-27 Thread mourad gouicem

Hello,

I'm trying to use some C code I've written, using the ctypes module.
So, I've compile my C code into a shared object and written the
following code into the sage notebook :

from ctypes import *
myobj=CDLL("/home/mourad/Documents/PSTL/Simulator/simulator.so")

#I specify the return type of my functions

myobj.load_matrice_from_file.restype = c_void_p
myobj.load_card_from_file.restype = c_void_p
myobj.load_measure_device_from_file.restype = c_void_p

myobj.fuite_carte_to_gnuplot.argtypes = [c_char_p, c_void_p, c_void_p,
c_void_p]

#I run my functions

#on teste nos fonctions

mat = myobj.load_matrice_from_file("/home/mourad/Documents/PSTL/
fichier_tests/msg_test.msg")
card = myobj.load_card_from_file("/home/mourad/Documents/PSTL/
fichier_tests/msg_test.msg")
md = myobj.load_measure_device_from_file("/home/mourad/Documents/PSTL/
fichier_tests/msg_test.msg")

myobj.fuite_carte_to_gnuplot("/home/mourad/test.gnu", mat, card, md)


This code rise a segmentation fault.
I think the problem is that, even if I specified the return type of my
functions, they return a Python int.

I'm using Sage 3.4.2

Thank you.

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



[sage-support] Re: Help! Why the polynomial is not generated for "Multivariate Polynomial Ring in y0, y1, y2, y3, y4, y5, y6, y7, x0, x1, x2, x3, x4, x5, x6, x7 over Finite Field of size 2"

2009-05-27 Thread Martin Albrecht

On Wednesday 27 May 2009, Sajan.S wrote:
> Hi Martin,
>
> One more doubt.
>
> In the above example, i have given 8 input and 8 output to the sbox.
>
> Is it possible to give 8 input and 6 output to the sbox.
>
> Eg:
>
> P= PolynomialRing(GF(2),14,"y0, y1, y2, y3, y4, y5, x0, x1, x2, x3,
> x4, x5, x6, x7",order='lex');
>
> Above code is not tested. but for 6 by 4 i tested. its showing some
> error!
>
> Please help me out from this!


You found a bug.

I have a fix at

  http://trac.sagemath.org/sage_trac/attachment/ticket/6139/

which will likely be in Sage 4.0.1 (I think the patch window for 4.0 was 
closed ages ago)

Martin


-- 
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
_www: http://www.informatik.uni-bremen.de/~malb
_jab: martinralbre...@jabber.ccc.de



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



[sage-support] Re: unable to get SAGE working on my debian lenny machine ...

2009-05-27 Thread Kim, In-Jae

Can I get some help on this memory issue in Ubuntu to download sage 3.4.2?
I am a beginner of Linux/Ubuntu, and have no idea where I should look at.


From: sage-support@googlegroups.com [sage-supp...@googlegroups.com] On Behalf 
Of William Stein [wst...@gmail.com]
Sent: Tuesday, May 26, 2009 4:23 PM
To: sage-support@googlegroups.com
Subject: [sage-support] Re: unable to get SAGE working on my debian lenny  
machine ...

On Tue, May 26, 2009 at 1:58 PM, Kim, In-Jae  wrote:
>
> Where should I download sage 3.4.2 and extract the file?

You do not have enough space on *any* partition. You'll have to
somehow make a new partition with enough space.

William

>
> ubu...@ubuntu:~$ df -h
> FilesystemSize  Used Avail Use% Mounted on
> tmpfs 505M  2.4M  503M   1% 
> /lib/modules/2.6.28-11-generic/volatile
> tmpfs 505M  2.4M  503M   1% 
> /lib/modules/2.6.28-11-generic/volatile
> tmpfs 505M 0  505M   0% /lib/init/rw
> varrun505M  104K  505M   1% /var/run
> varlock   505M 0  505M   0% /var/lock
> udev  505M  128K  505M   1% /dev
> tmpfs 505M   76K  505M   1% /dev/shm
> rootfs505M   17M  489M   4% /
> /dev/sr0  699M  699M 0 100% /cdrom
> /dev/loop0676M  676M 0 100% /rofs
> tmpfs 505M   12K  505M   1% /tmp
>
> 
> From: sage-support@googlegroups.com [sage-supp...@googlegroups.com] On Behalf 
> Of Harald Schilly [harald.schi...@gmail.com]
> Sent: Tuesday, May 26, 2009 3:11 PM
> To: sage-support
> Subject: [sage-support] Re: unable to get SAGE working on my debian lenny 
> machine ...
>
> On May 26, 10:04 pm, "Kim, In-Jae"  wrote:
>> However, when I extract the sage files, there are some errors, saying "...No 
>> space left in the device".  I am a beginner of any Linux system.
>> Any help would be appreciated.
>
> no space left means, that there is no disk space left. extracting
> files needs some place to be extracted!
> entering the command
> df -h
> you will see an overview, how much space is left.
>
> harald
>
>
> >
>



--
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 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: unable to get SAGE working on my debian lenny machine ...

2009-05-27 Thread Jan Groenewald

Hi Kim

On Wed, May 27, 2009 at 08:17:59AM -0500, Kim, In-Jae wrote:
> Can I get some help on this memory issue in Ubuntu to download sage 3.4.2?
> I am a beginner of Linux/Ubuntu, and have no idea where I should look at.

What kind of PC is that with only half a gig of disk space?
Is it some kind of netbook? You might need a proper laptop or
desktop, or perhaps you can install it on a larger USB key.

Perhaps start with something simpler like install on a desktop
until you are more familiar with Linux.

In the meantime, which version of Ubuntu do you run? If it is 8.10,
you can probably use this file:
http://www.sagemath.org/bin/linux/32bit/sage-3.4.2-linux-Ubuntu_8.10-sse2-i686-Linux.tar.gz

We can only untar and use it once you have made more space.

(It is actuall also suggested to compile from source as then you can
in future do much lighter upgrades than redownloading.)

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 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: unable to get SAGE working on my debian lenny machine ...

2009-05-27 Thread David Joyner

On Wed, May 27, 2009 at 9:17 AM, Kim, In-Jae  wrote:
>
> Can I get some help on this memory issue in Ubuntu to download sage 3.4.2?
> I am a beginner of Linux/Ubuntu, and have no idea where I should look at.


Maybe you can google "resizing partitions in ubuntu" (without the quotes)
to get an idea of what is involved?



>
> 
> From: sage-support@googlegroups.com [sage-supp...@googlegroups.com] On Behalf 
> Of William Stein [wst...@gmail.com]
> Sent: Tuesday, May 26, 2009 4:23 PM
> To: sage-support@googlegroups.com
> Subject: [sage-support] Re: unable to get SAGE working on my debian lenny  
> machine ...
>
> On Tue, May 26, 2009 at 1:58 PM, Kim, In-Jae  wrote:
>>
>> Where should I download sage 3.4.2 and extract the file?
>
> You do not have enough space on *any* partition. You'll have to
> somehow make a new partition with enough space.
>
> William
>
>>
>> ubu...@ubuntu:~$ df -h
>> Filesystem            Size  Used Avail Use% Mounted on
>> tmpfs                 505M  2.4M  503M   1% 
>> /lib/modules/2.6.28-11-generic/volatile
>> tmpfs                 505M  2.4M  503M   1% 
>> /lib/modules/2.6.28-11-generic/volatile
>> tmpfs                 505M     0  505M   0% /lib/init/rw
>> varrun                505M  104K  505M   1% /var/run
>> varlock               505M     0  505M   0% /var/lock
>> udev                  505M  128K  505M   1% /dev
>> tmpfs                 505M   76K  505M   1% /dev/shm
>> rootfs                505M   17M  489M   4% /
>> /dev/sr0              699M  699M     0 100% /cdrom
>> /dev/loop0            676M  676M     0 100% /rofs
>> tmpfs                 505M   12K  505M   1% /tmp
>>
>> 
>> From: sage-support@googlegroups.com [sage-supp...@googlegroups.com] On 
>> Behalf Of Harald Schilly [harald.schi...@gmail.com]
>> Sent: Tuesday, May 26, 2009 3:11 PM
>> To: sage-support
>> Subject: [sage-support] Re: unable to get SAGE working on my debian lenny 
>> machine ...
>>
>> On May 26, 10:04 pm, "Kim, In-Jae"  wrote:
>>> However, when I extract the sage files, there are some errors, saying 
>>> "...No space left in the device".  I am a beginner of any Linux system.
>>> Any help would be appreciated.
>>
>> no space left means, that there is no disk space left. extracting
>> files needs some place to be extracted!
>> entering the command
>> df -h
>> you will see an overview, how much space is left.
>>
>> harald
>>
>>
>> >
>>
>
>
>
> --
> 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 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: unable to get SAGE working on my debian lenny machine ...

2009-05-27 Thread Kim, In-Jae

I wanted to use sage in Linux system so that I installed Ubuntu using 
VirtualBox into my laptop with Window Vista OS.  The version of Ubuntu that I 
have is 9.04.



From: sage-support@googlegroups.com [sage-supp...@googlegroups.com] On Behalf 
Of Jan Groenewald [...@aims.ac.za]
Sent: Wednesday, May 27, 2009 8:29 AM
To: sage-support@googlegroups.com
Subject: [sage-support] Re: unable to get SAGE working on my debian lenny 
machine ...

Hi Kim

On Wed, May 27, 2009 at 08:17:59AM -0500, Kim, In-Jae wrote:
> Can I get some help on this memory issue in Ubuntu to download sage 3.4.2?
> I am a beginner of Linux/Ubuntu, and have no idea where I should look at.

What kind of PC is that with only half a gig of disk space?
Is it some kind of netbook? You might need a proper laptop or
desktop, or perhaps you can install it on a larger USB key.

Perhaps start with something simpler like install on a desktop
until you are more familiar with Linux.

In the meantime, which version of Ubuntu do you run? If it is 8.10,
you can probably use this file:
http://www.sagemath.org/bin/linux/32bit/sage-3.4.2-linux-Ubuntu_8.10-sse2-i686-Linux.tar.gz

We can only untar and use it once you have made more space.

(It is actuall also suggested to compile from source as then you can
in future do much lighter upgrades than redownloading.)

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 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: notebook, folding

2009-05-27 Thread Kevin Horton
On Tue, May 26, 2009 at 6:46 PM, Jason Grout wrote:

>
> William Stein wrote:
> > On Tue, May 26, 2009 at 3:21 PM, gerhard  wrote:
> >> Still trying to formulate this...
> >>
> >> Looking at the html source of a notebook,
> >> it looks like the output from a cell is in its own ,
> >> so folding and unfolding the output should be straight forward
> >> (e.g., using code from
> http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
> >> )
> >>
> >> So a next step would be to get sections of a notebook
> >> into a ? If this can be made recursive,
> >> I believe I would want to be able to fold based on , i=1,2,...
> >> since headings using MCE have become easy to add!
> >
> > Oh, that would be really nice.  Just make each  section have a
> > folding button.   That's great and very simple.
> > I tried that
> http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
> > which feels cool.  Does it use jQuery?  Are there any folding examples
> > that just use jQuery?
>
>
> Relevant links:
>
> http://docs.jquery.com/Effects
>
> specifically:
>
> http://docs.jquery.com/Effects/slideToggle
>
> The structure of a notebook document looks something like:
>
>
> 
>   h1 heading
> 
> 
> 
> 
> 
>   another h1 heading
> 
>
> So (without restructuring the notebook html), you could use jquery to
> select the parent of the hi with class text_cell, then select all
> sibling divs until you got to the next div that had an h1 heading as a
> child.  Then just toggle all of those divs.  It's probably one line of
> jquery.
>
> Somehow, you'd have to tag each hi with the appropriate javascript code.
>  This is probably doable from the text cell creation code (see the code
> that creates the 

[sage-support] Re: Help! Why the polynomial is not generated for "Multivariate Polynomial Ring in y0, y1, y2, y3, y4, y5, y6, y7, x0, x1, x2, x3, x4, x5, x6, x7 over Finite Field of size 2"

2009-05-27 Thread Saj

Hi martin,

patch is not working!

See the error!



RuntimeError  Traceback (most recent call
last)

/usr/local/src/ in ()

/usr/local/src/sage-3.4.2/local/lib/python2.5/site-packages/sage/misc/
hg.pyc in import_patch(self, filename, options)
425 if filename.startswith("http://";) or
filename.startswith("https://";):
426 filename = get_remote_file(filename, verbose=True)
--> 427 self._ensure_safe()
428 self('import  %s "%s"'%(options, os.path.abspath
(filename)))
429

/usr/local/src/sage-3.4.2/local/lib/python2.5/site-packages/sage/misc/
hg.pyc in _ensure_safe(self)
189 self.ci()
190 if self._changed_files():
--> 191 raise RuntimeError, "Refusing to do operation
since you still have unrecorded changes. You must check in all changes
in your working repository first."
192
193 def _warning(self):

RuntimeError: Refusing to do operation since you still have unrecorded
changes. You must check in all changes in your working repository
first.



I did
hg_sage.patch('sbox_call_and_rest.patch');

I thinking i need to checkout the updated code to repository or
something!

I installed sage from source!

No idea!

Thanks & Regards,
Sajan.S


On May 27, 5:53 pm, Martin Albrecht 
wrote:
> On Wednesday 27 May 2009, Sajan.S wrote:
>
>
>
> > Hi Martin,
>
> > One more doubt.
>
> > In the above example, i have given 8 input and 8 output to the sbox.
>
> > Is it possible to give 8 input and 6 output to the sbox.
>
> > Eg:
>
> > P= PolynomialRing(GF(2),14,"y0, y1, y2, y3, y4, y5, x0, x1, x2, x3,
> > x4, x5, x6, x7",order='lex');
>
> > Above code is not tested. but for 6 by 4 i tested. its showing some
> > error!
>
> > Please help me out from this!
>
> You found a bug.
>
> I have a fix at
>
>  http://trac.sagemath.org/sage_trac/attachment/ticket/6139/
>
> which will likely be in Sage 4.0.1 (I think the patch window for 4.0 was
> closed ages ago)
>
> Martin
>
> --
> name: Martin Albrecht
> _pgp:http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
> _otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
> _www:http://www.informatik.uni-bremen.de/~malb
> _jab: martinralbre...@jabber.ccc.de
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Help! Why the polynomial is not generated for "Multivariate Polynomial Ring in y0, y1, y2, y3, y4, y5, y6, y7, x0, x1, x2, x3, x4, x5, x6, x7 over Finite Field of size 2"

2009-05-27 Thread Martin Albrecht

On Wednesday 27 May 2009, Saj wrote:
> Hi martin,
>
> patch is not working!
>
> See the error!
>
> 
>
> RuntimeError  Traceback (most recent call
> last)
>
> /usr/local/src/ in ()
>
> /usr/local/src/sage-3.4.2/local/lib/python2.5/site-packages/sage/misc/
> hg.pyc in import_patch(self, filename, options)
> 425 if filename.startswith("http://";) or
> filename.startswith("https://";):
> 426 filename = get_remote_file(filename, verbose=True)
> --> 427 self._ensure_safe()
> 428 self('import  %s "%s"'%(options, os.path.abspath
> (filename)))
> 429
>
> /usr/local/src/sage-3.4.2/local/lib/python2.5/site-packages/sage/misc/
> hg.pyc in _ensure_safe(self)
> 189 self.ci()
> 190 if self._changed_files():
> --> 191 raise RuntimeError, "Refusing to do operation
> since you still have unrecorded changes. You must check in all changes
> in your working repository first."
> 192
> 193 def _warning(self):
>
> RuntimeError: Refusing to do operation since you still have unrecorded
> changes. You must check in all changes in your working repository
> first.
>
> 
>
> I did
> hg_sage.patch('sbox_call_and_rest.patch');
>
> I thinking i need to checkout the updated code to repository or
> something!
>
> I installed sage from source!
>
> No idea!

Hi,

you might need Sage 4.0 to make it work, but that is not the problem you are 
having: You have unrecorded changes in your tree. You should check what they 
are (hg diff) and then either commit them or revert them. Then you can try to 
apply the patch I posted.

Martin

-- 
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
_www: http://www.informatik.uni-bremen.de/~malb
_jab: martinralbre...@jabber.ccc.de



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



[sage-support] checking for inequality between characters

2009-05-27 Thread rje

sage: X=DirichletGroup(6).list();
sage: X[0]
[1, 1]
sage: X[0]<>[1, 1]
True
--
Why is this True, and what's the corrected syntax?
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] checking for inequality between characters

2009-05-27 Thread rje

sage: X=DirichletGroup(6).list();
sage: X[0]
[1, 1]
sage: X[0]<>[1, 1]
True
--
Why is this True, and what's the corrected syntax?
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: checking for inequality between characters

2009-05-27 Thread davidloeffler

Here X[0] isn't the list [1, 1]. It's a Dirichlet character that takes
the values [1,1] on the generators of the multiplicative group mod 6.
So it doesn't compare as equal to the list of integers [1, 1] and
there are many good reasons why it shouldn't.

Perhaps what you are looking for is

sage: G = DirichletGroup(6)
sage: chi = G.list()[0]
sage: chi == G([1,1])
True
sage: list(chi.values_on_gens()) == [1, 1]
True

(Note that current versions of Sage insist on returning 2 generators
for the that the group of units mod 6, one of which is 1 (!). This
behaviour will change in the upcoming 4.0 release.)

David




On May 27, 9:28 pm, rje  wrote:
> sage: X=DirichletGroup(6).list();
> sage: X[0]
> [1, 1]
> sage: X[0]<>[1, 1]
> True
> --
> Why is this True, and what's the corrected syntax?
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Install problems

2009-05-27 Thread mathgeek

So I just got the Ubuntu 9.04 netbook remix and installed sage through
the terminal by typing Sage and then it asked me if I wanted to
install... So I said yes and it did... Now I am having a lot of
difficulties with it. When I try to run a test, all I get is:

sage: -testall
---
NameError Traceback (most recent call
last)

/home/mathgeek/ in ()

NameError: name 'testall' is not defined

And when I try to use the plot functions, it seems that jsMath is not
installed or something with that is messed up.

Any suggestions or links to where I can find answers? I've been
looking all day but haven't found anything useful yet.

Thanks in advance,
brandon

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



[sage-support] Re: unable to get SAGE working on my debian lenny machine ...

2009-05-27 Thread Johan Oudinet

On Wed, May 27, 2009 at 4:34 PM, Kim, In-Jae  wrote:
>
> I wanted to use sage in Linux system so that I installed Ubuntu using 
> VirtualBox into my laptop with Window Vista OS.  The version of Ubuntu that I 
> have is 9.04.
>

You had created a virtual machine without enough disk space. You
should create a new virtual machine with at least 4 GB of disk space.
Then you could install Ubuntu and Sage on it without worry about disk
space.

-- 
Johan
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

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



[sage-support] login loop

2009-05-27 Thread Dart

I get to the sage login  in VMware Player.  Of the four choices, I
try "notebook", since that is what the sage txt file said.  After
hitting "enter", the window blinks and then comes back with exactly
the same login prompt.
   When I try "sage" instead, I got several pages of stuff I couldn't
read and then it wouldn't even let me close the window.
  Any help appreciated.

thanks

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



[sage-support] Re: Install problems

2009-05-27 Thread Dan Drake
On Wed, 27 May 2009 at 02:11PM -0700, mathgeek wrote:
> So I just got the Ubuntu 9.04 netbook remix and installed sage through
> the terminal by typing Sage and then it asked me if I wanted to
> install... So I said yes and it did... Now I am having a lot of
> difficulties with it. When I try to run a test, all I get is:
> 
> sage: -testall
> ---
> NameError Traceback (most recent call
> last)
> 
> /home/mathgeek/ in ()
> 
> NameError: name 'testall' is not defined

Did you install Sage through apt or Synaptic? If so, you should know
that the version of Sage available in Ubuntu does not pass doctests, so
it's somewhat pointless to even run the tests.

The way that tests are normally run is by going to the root directory of
the Sage installation and running "make test" or "make testlong". In the
packaged version of Sage that you installed, however, there probably is
no such directory.

> And when I try to use the plot functions, it seems that jsMath is not
> installed or something with that is messed up.

This is a different problem and I'm not sure what to do about this.
There might be a jsmath package you can install to help, although
perhaps that got pulled in by Sage's dependencies.

Dan

-- 
---  Dan Drake 
-  KAIST Department of Mathematical Sciences
---  http://mathsci.kaist.ac.kr/~drake


signature.asc
Description: Digital signature


[sage-support] Re: Install problems

2009-05-27 Thread William Stein

On Wed, May 27, 2009 at 4:49 PM, Dan Drake  wrote:
> On Wed, 27 May 2009 at 02:11PM -0700, mathgeek wrote:
>> So I just got the Ubuntu 9.04 netbook remix and installed sage through
>> the terminal by typing Sage and then it asked me if I wanted to
>> install... So I said yes and it did... Now I am having a lot of
>> difficulties with it. When I try to run a test, all I get is:
>>
>> sage: -testall
>> ---
>> NameError                                 Traceback (most recent call
>> last)
>>
>> /home/mathgeek/ in ()
>>
>> NameError: name 'testall' is not defined
>
> Did you install Sage through apt or Synaptic? If so, you should know
> that the version of Sage available in Ubuntu does not pass doctests, so
> it's somewhat pointless to even run the tests.
>
> The way that tests are normally run is by going to the root directory of
> the Sage installation and running "make test" or "make testlong". In the
> packaged version of Sage that you installed, however, there probably is
> no such directory.
>
>> And when I try to use the plot functions, it seems that jsMath is not
>> installed or something with that is messed up.
>
> This is a different problem and I'm not sure what to do about this.
> There might be a jsmath package you can install to help, although
> perhaps that got pulled in by Sage's dependencies.

Also, plotting in no way uses jsmath.  Please provide much more
precise error messages and logs, if possible. Thanks!

William

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



[sage-support] Re: unable to get SAGE working on my debian lenny machine ...

2009-05-27 Thread Kim, In-Jae

Thank you all.
I found that I was running Ubutu on CD ROM without actually installing Ubuntu 
using VirtualBox.
I installed Ubuntu properly, and memory problem disappeared.
I now have sage 3.4.2 installed, which is working well.


From: sage-support@googlegroups.com [sage-supp...@googlegroups.com] On Behalf 
Of Johan Oudinet [johan.oudi...@gmail.com]
Sent: Wednesday, May 27, 2009 5:14 PM
To: sage-support@googlegroups.com
Subject: [sage-support] Re: unable to get SAGE working on my debian lenny  
machine ...

On Wed, May 27, 2009 at 4:34 PM, Kim, In-Jae  wrote:
>
> I wanted to use sage in Linux system so that I installed Ubuntu using 
> VirtualBox into my laptop with Window Vista OS.  The version of Ubuntu that I 
> have is 9.04.
>

You had created a virtual machine without enough disk space. You
should create a new virtual machine with at least 4 GB of disk space.
Then you could install Ubuntu and Sage on it without worry about disk
space.

--
Johan
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


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



[sage-support] Saving sage output?

2009-05-27 Thread Baruch

Please note that I am a complete noob here.  I've tried to find the
answer myself, but don't know quite where to turn.

I wanted to save the output of a brief script.  I used the logstart
instruction, 'logstart -o filename'.  This seemed to give me what I
wanted - the response to this instruction was:

Activating auto-logging,  Current session state plus future input
saved.
Filename  : filename
Mode : backup
Output logging  : true
Raw input logging : false
Timestamping   : false
State  : active

Despite this, 'filename' contained only the input, not the output.

Is there some way to save output, for example by printing it to a
file?

Any help would be appreciated.  Thanks.

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



[sage-support] Re: Help! Why the polynomial is not generated for "Multivariate Polynomial Ring in y0, y1, y2, y3, y4, y5, y6, y7, x0, x1, x2, x3, x4, x5, x6, x7 over Finite Field of size 2"

2009-05-27 Thread Saj

Hi martin,

Thanks for your comment!

Can u help me how to do that, with/without sage 4.0. I never worked
with hg diff.

Thanks & Regards,
Sajan.S


On May 27, 10:44 pm, Martin Albrecht 
wrote:
> On Wednesday 27 May 2009, Saj wrote:
>
>
>
> > Hi martin,
>
> > patch is not working!
>
> > See the error!
>
> > 
>
> > RuntimeError                              Traceback (most recent call
> > last)
>
> > /usr/local/src/ in ()
>
> > /usr/local/src/sage-3.4.2/local/lib/python2.5/site-packages/sage/misc/
> > hg.pyc in import_patch(self, filename, options)
> >     425         if filename.startswith("http://";) or
> > filename.startswith("https://";):
> >     426             filename = get_remote_file(filename, verbose=True)
> > --> 427         self._ensure_safe()
> >     428         self('import  %s "%s"'%(options, os.path.abspath
> > (filename)))
> >     429
>
> > /usr/local/src/sage-3.4.2/local/lib/python2.5/site-packages/sage/misc/
> > hg.pyc in _ensure_safe(self)
> >     189             self.ci()
> >     190         if self._changed_files():
> > --> 191             raise RuntimeError, "Refusing to do operation
> > since you still have unrecorded changes. You must check in all changes
> > in your working repository first."
> >     192
> >     193     def _warning(self):
>
> > RuntimeError: Refusing to do operation since you still have unrecorded
> > changes. You must check in all changes in your working repository
> > first.
>
> > 
>
> > I did
> > hg_sage.patch('sbox_call_and_rest.patch');
>
> > I thinking i need to checkout the updated code to repository or
> > something!
>
> > I installed sage from source!
>
> > No idea!
>
> Hi,
>
> you might need Sage 4.0 to make it work, but that is not the problem you are
> having: You have unrecorded changes in your tree. You should check what they
> are (hg diff) and then either commit them or revert them. Then you can try to
> apply the patch I posted.
>
> Martin
>
> --
> name: Martin Albrecht
> _pgp:http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
> _otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
> _www:http://www.informatik.uni-bremen.de/~malb
> _jab: martinralbre...@jabber.ccc.de
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---