[sage-support] Re: hg_sage.commit error

2007-11-12 Thread William Stein

> > sage: hg_sage.commit()
> > cd "/home/wdj/sagestuff/sage-2.8.7.rc1/devel/sage" && hg diff  | less
> > cd "/home/wdj/sagestuff/sage-2.8.7.rc1/devel/sage" && hg commit
> > emacs: symbol lookup error: /usr/lib/libcairo.so.2: undefined symbol:
> > FT_Library_SetLcdFilter
> > transaction abort!
> > rollback completed
> > abort: edit failed: emacs exited with status 127
>
> The problem is that emacs cannot be started due to library issues:
> LD_LIBRARY_PATH is set to include SAGE_LOCAL/lib, consequently some
> system libraries aren't linked, but the Sage version which can produce
> and doesd produce problems like the one you experince. That issue is
> described in trac ticket #975, but in your particular case even the
> work-around described there doesn't work.

And I think we should upgrade freetype, since the sage freetype
package is really out of date (and causing this problem all over).

William

>
> One way to fix this in your particular case is to write a small script
> that does "export LD_LIBRARY_PATH=" before starting emacs. Let me know
> if you need some more info on that and I will send you some example
> script.
>
> >
> > I also tried this with another editor (kate) with the same error.
> > However, when I set export EDITOR=vi, everything worked fine.
> >
> > This is using ubuntu 7.10, 64 bit. Should I create a trac ticket for this
> > or am I doing something wrong?
> >
>
> Nope, :)
>
> > - David Joyner
>
> Cheers,
>
> Michael
>
>
>
> >
>



-- 
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 sage-vmware-2.8.12.zip

2007-11-12 Thread William Stein

On Nov 12, 2007 8:48 PM, mabshoff
<[EMAIL PROTECTED]> wrote:
> You should try 7zip (which is open source) or a trial edition of
> Winzip. Another, more likely possibility is that you have a FAT32
> formatted drive which can limit file size to 2GB.

That is the problem, as the file is 2.2GB.

-rw--- 1 sage sage 2.2G 2007-11-07 09:52 Ubuntu.vmdk

I think it's supposed to be easy (and sometimes very desirable)
to convert a filesystem in Windows from FAT32 to NTFS.  This
will make the filesystem journaled, which means the person won't
see the "checking the file system" blue screen whenever Windows
crashes and reboots.

That said -- vmware has an option to split virtual disks into files
that are all < 2GB.  I will definitely fix the vmware machine when
i get back to Seattle to only include files that are < 2GB. However,
this will have to wait about a week.

Anyway, many thanks for reporting this problem!

>
> > 2. if I nevertheless try to run sage via vmware with the slightly
> > shortened version of Ubuntu.vmdk then the vmware player complains
> > about the size of it, claiming that it's bigger than 2Gb and that it
> > does not like this at all.
> >
>
> That is no surprise, after all the are bits of the image missing.
>
> > It is only me that found this odd behavior? Any hint would be very
> > welcome!
>
> I might be that you have a corrupted download, also. I would be great
> if William could post some md5sum, sha sums of the images.
>
> Cheers,
>
> Michael
>
>
> > Thanks,
> >  Roberto
>
>
> >
>



-- 
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 sage-vmware-2.8.12.zip

2007-11-12 Thread mabshoff



On Nov 12, 7:40 pm, rdl <[EMAIL PROTECTED]> wrote:
> Hi,

Hello Roberto,

> I've got extremely happy when I've found out about this cool project,
> it was time that some powerful 'mathematica-like' open source package
> would see the light  :-)
>

:)

> I've installed successfully SAGE on my linux machine in no time but
> now I'm trying to install it on windows for my students and I'm in
> deep trouble:
>
> 1. I can't unzip correctly sage-vmware-2.8.12.zip since when
> Ubuntu.vmdk it reaches 2147483 Kb the unzipping stops claiming that
> there's no more space on the HDD  (yes, I checked and there's plenty
> of space on it  :-)
> I tried with both unzip under linux and the m$ unzipper under winblow$
> getting the very same negative results  :-(
>

You should try 7zip (which is open source) or a trial edition of
Winzip. Another, more likely possibility is that you have a FAT32
formatted drive which can limit file size to 2GB.

> 2. if I nevertheless try to run sage via vmware with the slightly
> shortened version of Ubuntu.vmdk then the vmware player complains
> about the size of it, claiming that it's bigger than 2Gb and that it
> does not like this at all.
>

That is no surprise, after all the are bits of the image missing.

> It is only me that found this odd behavior? Any hint would be very
> welcome!

I might be that you have a corrupted download, also. I would be great
if William could post some md5sum, sha sums of the images.

Cheers,

Michael

> Thanks,
>  Roberto


--~--~-~--~~~---~--~~
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: Does the Sage Python installation interfere with a current Python?

2007-11-12 Thread LouP

Thanks, Mike.  Sage appears to be an amazing package.  Very impressive
from the little I've tried so far.

-- Lou Pecora

On Nov 12, 12:37 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote:
> Hello Lou,
>
> All of Sage's Python stuff exists independently of the system-wide
> Python and shouldn't have any effect on it.  In particular, if the
> $SAGE_ROOT directory is something like /Applications/sage, then Sage's
> Python will live under /Applications/sage/local.
>
> --Mike


--~--~-~--~~~---~--~~
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] problems with sage-vmware-2.8.12.zip

2007-11-12 Thread rdl

Hi,
I've got extremely happy when I've found out about this cool project,
it was time that some powerful 'mathematica-like' open source package
would see the light  :-)

I've installed successfully SAGE on my linux machine in no time but
now I'm trying to install it on windows for my students and I'm in
deep trouble:

1. I can't unzip correctly sage-vmware-2.8.12.zip since when
Ubuntu.vmdk it reaches 2147483 Kb the unzipping stops claiming that
there's no more space on the HDD  (yes, I checked and there's plenty
of space on it  :-)
I tried with both unzip under linux and the m$ unzipper under winblow$
getting the very same negative results  :-(

2. if I nevertheless try to run sage via vmware with the slightly
shortened version of Ubuntu.vmdk then the vmware player complains
about the size of it, claiming that it's bigger than 2Gb and that it
does not like this at all.

It is only me that found this odd behavior? Any hint would be very
welcome!
Thanks,
 Roberto


--~--~-~--~~~---~--~~
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: Does the Sage Python installation interfere with a current Python?

2007-11-12 Thread Mike Hansen

Hello Lou,

All of Sage's Python stuff exists independently of the system-wide
Python and shouldn't have any effect on it.  In particular, if the
$SAGE_ROOT directory is something like /Applications/sage, then Sage's
Python will live under /Applications/sage/local.

--Mike

--~--~-~--~~~---~--~~
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] Does the Sage Python installation interfere with a current Python?

2007-11-12 Thread LouP

(I posted this on the discussion forum.  I don't know which one is the
right one to ask this on. Apologies if this is not the appropriate
forum.)

I am interested in trying Sage and have a question about the Python
that comes with the Sage installation.  If this is not the proper
forum for this question, would someone please point me to one?
Thanks.

I currently use Python 2.4 and I am in the middle of a project that I
don't want interrupted by dealing with a new installation and any
problems that might come up (not uncommon).  Does the Sage
installation 'step on' or replace or in any way interfere with a
currently installed Python and its site packages (e.g. NumPy)?  I
would hope that it can be done independently of the current
installation.

I use a Mac Book Pro and a Mac Pro, OS X 10.4.

Thanks for any answers or pointers.

-- Lou Pecora
US Naval Research Lab
Washington, DC


--~--~-~--~~~---~--~~
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: hg_sage.commit error

2007-11-12 Thread mabshoff



On Nov 12, 4:11 pm, "David Joyner" <[EMAIL PROTECTED]> wrote:
> Hi:

Hello David,

>
> I am trying to create a patch for the permgp bug Carlo H reported
> last week. In 2.8.12, I
> (1) created a clone and added a few lines to permgp.py
> that seemed to fix the problem.
> (2) ran sage -b (no problems)
> (3) sage -t "path/permgp.py" (all tests passed)
> (4) typed export EDITOR=emacs, then started sage and typed:
>
> sage: hg_sage.commit()
> cd "/home/wdj/sagestuff/sage-2.8.7.rc1/devel/sage" && hg diff  | less
> cd "/home/wdj/sagestuff/sage-2.8.7.rc1/devel/sage" && hg commit
> emacs: symbol lookup error: /usr/lib/libcairo.so.2: undefined symbol:
> FT_Library_SetLcdFilter
> transaction abort!
> rollback completed
> abort: edit failed: emacs exited with status 127

The problem is that emacs cannot be started due to library issues:
LD_LIBRARY_PATH is set to include SAGE_LOCAL/lib, consequently some
system libraries aren't linked, but the Sage version which can produce
and doesd produce problems like the one you experince. That issue is
described in trac ticket #975, but in your particular case even the
work-around described there doesn't work.

One way to fix this in your particular case is to write a small script
that does "export LD_LIBRARY_PATH=" before starting emacs. Let me know
if you need some more info on that and I will send you some example
script.

>
> I also tried this with another editor (kate) with the same error.
> However, when I set export EDITOR=vi, everything worked fine.
>
> This is using ubuntu 7.10, 64 bit. Should I create a trac ticket for this
> or am I doing something wrong?
>

Nope, :)

> - David Joyner

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: Permutations from gap.

2007-11-12 Thread David Joyner

Reported to trac and fixed (I think).
http://sagetrac.org/sage_trac/ticket/1155
The link to the hg patch is in the ticket.

++

On 11/5/07, Carlo Hämäläinen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm doing some work with groups. Using gap.Image() I can get a
> permutation like this:
>
> sage: x
> (1,2)(3,7)(4,6)(5,8)
>
> But to make a permutation group out of this element I have to enclose
> the x in two sets of brackets:
>
> sage: PermutationGroup([[x]])
> Permutation Group with generators [(1,2)(3,7)(4,6)(5,8)]
>
> On the other hand, the following command fails (see below for code and 
> output):
>
> sage: PermutationGroup([x])
>
> In my mind the second version is clearer - x is a permutation so [x]
> is a list of permutations and I should be able to use that to get a
> group.
>
> Should SAGE do a coercion here, or am I doing something in a strange way?
>
> Code and output:
>
> --
> | SAGE Version 2.8.11, Release Date: 2007-11-02  |
> | Type notebook() for the GUI, and license() for information.|
> --
>
> sage: p = 2
> sage: assert is_prime(p)
> sage:
> sage: F = gap.new("FreeGroup(3)")
> sage:
> sage: a = F.gen(1)
> sage: b = F.gen(2)
> sage: c = F.gen(3)
> sage:
> sage: rels = []
> sage: rels.append( a**Integer(p) )
> sage: rels.append( b**Integer(p) )
> sage: rels.append( c**Integer(p) )
> sage: rels.append( a*b*((b*a*c)**Integer(-1)) )
> sage: rels.append( c*a*((a*c)**Integer(-1)) )
> sage: rels.append( c*b*((b*c)**Integer(-1)) )
> sage:
> sage: N = gap.NormalClosure(F, gap.Subgroup(F, rels))
> sage: niso = gap.NaturalHomomorphismByNormalSubgroupNC(F, N)
> sage:
> sage: x = gap.Image(niso, a)
> sage: x
> (1,2)(3,7)(4,6)(5,8)
> sage: PermutationGroup([[x]])
> Permutation Group with generators [(1,2)(3,7)(4,6)(5,8)]
> sage:
> sage: PermutationGroup([x])
> ---
>  Traceback (most recent call last)
>
> /home/carlo/ in ()
>
> /home/carlo/sage-source-current/local/lib/python2.5/site-packages/sage/groups/perm_gps/permgroup.py
> in PermutationGroup(x, from_group, check)
> 167 if not is_ExpectElement(x) and hasattr(x, '_permgroup_'):
> 168 return x._permgroup_()
> --> 169 return PermutationGroup_generic(x, from_group, check)
> 170
> 171
>
> /home/carlo/sage-source-current/local/lib/python2.5/site-packages/sage/groups/perm_gps/permgroup.py
> in __init__(self, gens, from_group, check)
> 212 elif not isinstance(gens, list):
> 213 raise TypeError, "gens must be a tuple or list"
> --> 214 gens = [gap_format(x) for x in gens]
> 215
> 216 cmd = 'Group(%s)'%gens
>
> >
>

--~--~-~--~~~---~--~~
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] hg_sage.commit error

2007-11-12 Thread David Joyner

Hi:

I am trying to create a patch for the permgp bug Carlo H reported
last week. In 2.8.12, I
(1) created a clone and added a few lines to permgp.py
that seemed to fix the problem.
(2) ran sage -b (no problems)
(3) sage -t "path/permgp.py" (all tests passed)
(4) typed export EDITOR=emacs, then started sage and typed:

sage: hg_sage.commit()
cd "/home/wdj/sagestuff/sage-2.8.7.rc1/devel/sage" && hg diff  | less
cd "/home/wdj/sagestuff/sage-2.8.7.rc1/devel/sage" && hg commit
emacs: symbol lookup error: /usr/lib/libcairo.so.2: undefined symbol:
FT_Library_SetLcdFilter
transaction abort!
rollback completed
abort: edit failed: emacs exited with status 127

I also tried this with another editor (kate) with the same error.
However, when I set export EDITOR=vi, everything worked fine.

This is using ubuntu 7.10, 64 bit. Should I create a trac ticket for this
or am I doing something wrong?

- David Joyner

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