[sage-support] Re: SAGE-2.10.4 Install Problems

2008-03-31 Thread mabshoff



On Mar 31, 7:24 am, Daryl Hammond [EMAIL PROTECTED] wrote:

 Problem 3 Documentation build

 Finally I build the documentation with:
 cd sage-2.10.4/devel/doc
 ./rebuild

 No errors are indicated in the build process.  However, the special
 images are missing from the documetation when viewed with Firefox.
 Looking at the folders, the image files for /const, /ref, and /tut are
 named img**.old when img**.png is expected.

 Issuing  rename .old .png *.old
 for the files in /const, /ref, and /tut circumvents this.

 

I is generally unnecessary to build the documentation since it is
build before releasing the source tarball. We are not aware of any
problem related to the images [for example 
http://sagemath.org/doc/html/const/node14.html
is just fine] as Mike Hansen pointed out, so what TeX distrubution do
you use? Are you sure rebuild did actually work and not die before
finishing? At least with TeX Live has some problems with left
over .aux and .toc cache files from the TeTeX distribution we use -
see http://trac.sagemath.org/sage_trac/ticket/2679

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 on Mac - an Odyssey

2008-03-31 Thread mabshoff



On Mar 30, 5:07 pm, dwb [EMAIL PROTECTED] wrote:
 I'm using a Mac Book running OS X.4.11. I downloaded sage-2.10.3-
 osx10.4-intel-i386-Darwin.dmg, then followed the instructions in both
 the readme file and the video tutorial. When I double-click on the
 sage icon, instead of getting the dialog only half visible and glossed
 over in the video, I get one that says: There is no default
 application specified to open the document sage. (Cancel) (Choose
 Applicaton...)

 After searching through the forums, I tried renaming the icon to
 sage.bin, which caused stuffit to estimate hundreds of thousands of
 hours to unpack it, then realize it couldn't do anything when I tried
 to move the dialog box. I tried to run sage from the Terminal, but it
 just says -bash: sage: command not found. I tried renaming the icon
 to sage.app - still no luck. I dredged up some ancient unix knowledge
 and tried chmod, man chmod, got stuck in less, finally got out with
 the idea that h might give me help, noticed somewhere that ls had an
 option to show flags, and was able to list the flags on the sage icon
 to show all the executable flags are set. Then I noticed somewhere
 that an explicit path placed before an executable caused it to be run
 from that path, so I tried: . sage
 **
 You must compile SAGE first using 'make' in the SAGE root directory.
 (If you have already compiled SAGE, you must set the SAGE_ROOT
 variable in
 the file '-bash').
 **
 [Process exited - exit code 1]

 At this point I could not figure out how to get control of the
 terminal window, and so had to dismiss it.

 I searched in vane for the file -bash.

 I normally run Windows XP on this Mac using VMWare Fusion, and had
 first considered installing the Windows version of Sage, but on
 reading that it would be running under VMWare, it seemed to me better
 to run it directly under OS X. At this point, I was beginning to
 reconsider.

 Going to sage-support, I didn't find anything close to this problem,
 so I started writing this message.
 After recreating the above examples, I launched a new Terminal window
 and tried: ./sage
 --
 | SAGE Version 2.10.3, Release Date: 2008-03-11                      |
 | Type notebook() for the GUI, and license() for information.        |
 --
 The SAGE install tree may have moved.
 Regenerating Python.pyo and .pyc files that hardcode the install PATH
 (please wait at most a few minutes)...
 Please do not interrupt this.
 Setting permissions of DOT_SAGE directory so only you can read and
 write it.

 sage:

 Please investigate and update the tutorial video and readme file so
 others won't be so encumbered.

It is unclear to me what you want us to do? Could you clarify?

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: how to set coding to utf-8 in sage script

2008-03-31 Thread vakaras

 The patch has been merged in Sage 2.11 which should be out today.
 Alternatively you can download  the patch, cd into $SAGE_ROOT/devel/
 sage, do an hg import ../foo/bar.patch, cd back into $SAGE_ROOT and
 do a ./sage -b. Assuming you have a compiler installed it should
 work, especially if you compiled from scratch yourself.

Now in file sage/devel/sage/sage/misc/interpreter.py line 375 is
out.write('# -*- encoding: utf-8 -8-\n')
but this doesn't helped.

Here is sage -b output:

$ ./sage -b

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


Installing c_lib
scons: `install' is up to date.
running install
running build
running build_py
copying sage/misc/interpreter.py - build/lib.linux-i686-2.5/sage/misc
running build_ext
running build_scripts
running install_lib
copying build/lib.linux-i686-2.5/sage/misc/interpreter.py - /home/
vakaras/sage/local/lib/python2.5/site-packages/sage/misc
byte-compiling /home/vakaras/sage/local/lib/python2.5/site-packages/
sage/misc/interpreter.py to interpreter.pyc
running install_scripts
changing mode of /home/vakaras/sage/local/bin/dsage_worker.py to 755
changing mode of /home/vakaras/sage/local/bin/spkg-debian-maybe to 755
changing mode of /home/vakaras/sage/local/bin/dsage_server.py to 755
changing mode of /home/vakaras/sage/local/bin/control.in to 755
changing mode of /home/vakaras/sage/local/bin/sagemath.install to 755
changing mode of /home/vakaras/sage/local/bin/sage to 755
changing mode of /home/vakaras/sage/local/bin/dsage_setup.py to 755
changing mode of /home/vakaras/sage/local/bin/check-use-debian.pl to
755
changing mode of /home/vakaras/sage/local/bin/compat to 755
changing mode of /home/vakaras/sage/local/bin/rules to 755
changing mode of /home/vakaras/sage/local/bin/control to 755
changing mode of /home/vakaras/sage/local/bin/changelog to 755
running install_data
running install_egg_info
Removing /home/vakaras/sage/local/lib/python2.5/site-packages/
sage-0.0.0-py2.5.egg-info
Writing /home/vakaras/sage/local/lib/python2.5/site-packages/
sage-0.0.0-py2.5.egg-info

real0m2.661s
user0m1.492s
sys 0m0.380s


On Mar 30, 6:33 pm, William Stein [EMAIL PROTECTED] wrote:
 On 3/30/08, vakaras [EMAIL PROTECTED] wrote:



  Hello,

  How to set coding in *.sage script to utf-8 ?

 What version of sage are you using.



  I have a script:
  # coding: utf-8
  print klaidelė;

  When I try to run it, I get:
  $ sage script.sage
  File script.py, line 4
  SyntaxError: Non-ASCII character '\xc4' in file script.py on line 4,
  but no encoding declared; seehttp://www.python.org/peps/pep-0263.html
  for details

  This is autogenerated script.py:
  # This file was *autogenerated* from the file script.sage.
  from sage.all_cmdline import *
  # coding: utf-8
  print klaidelė;

 --
 William Stein
 Associate Professor of Mathematics
 University of Washingtonhttp://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: how to set coding to utf-8 in sage script

2008-03-31 Thread mabshoff



On Mar 31, 12:30 pm, vakaras [EMAIL PROTECTED] wrote:
  The patch has been merged in Sage 2.11 which should be out today.
  Alternatively you can download  the patch, cd into $SAGE_ROOT/devel/
  sage, do an hg import ../foo/bar.patch, cd back into $SAGE_ROOT and
  do a ./sage -b. Assuming you have a compiler installed it should
  work, especially if you compiled from scratch yourself.

 Now in file sage/devel/sage/sage/misc/interpreter.py line 375 is
 out.write('# -*- encoding: utf-8 -8-\n')
 but this doesn't helped.


Ok, I think I figured out what the problem is:

a) print klaidelė from inside Sage 2.10.4 or higher via command
line: works

b) running sage foo.py where foo.py consits of 'print klaidelė':

  File foo.py, line 1
SyntaxError: Non-ASCII character '\xc4' in file utf8.py on line 1, but
no encoding declared; see http://www.python.org/peps/pep-0263.html for
details
sage: Error running utf8.py using Python
[EMAIL PROTECTED]:/scratch/mabshoff/release-cycle/sage-3.0.alpha0$ sage
utf8.py
  File utf8.py, line 1
SyntaxError: Non-ASCII character '\xc4' in file utf8.py on line 1, but
no encoding declared; see http://www.python.org/peps/pep-0263.html for
details
sage: Error running utf8.py using Python

c) running foo.py as in_
[start foo.py]
# -*- encoding: utf-8 -8-
print klaidelė
[end foo.py]
works:
sage foo.py
klaidelė


So, is (c) a bug in Sage or shut it be the users job to set the
encoding? Alternatively we could check if any encoding is set and if
not default to utf-8.

Thought?

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 on Mac - an Odyssey

2008-03-31 Thread mabshoff

SNIP

Hi,

   It is unclear to me what you want us to do? Could you clarify?

 I think he is suggesting to whoever creates the Mac binaries to modify
 the README file
 to make it easier to use for the first-time user. Maybe the poster could be 
 more
 specific about the exact words he would suggest?


Yes, I got that much. But what *specifically* would you suggest to
change or add?

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: Possible additions to interact

2008-03-31 Thread Jason Grout

Neal Holtz wrote:
 
 
 On Mar 30, 10:22 pm, William Stein [EMAIL PROTECTED] wrote:
 On Sun, Mar 30, 2008 at 7:09 PM, Neal Holtz [EMAIL PROTECTED] wrote:

  Hi,
  I've been playing a lot with interact recently -- I *really* like it.
  While attempting to develop a step-at-a-time example of Newton-Raphson,
  a couple of things came to mind.
  1. What do you think about a control that saves state between
 interactions, but does not give you any visible control widgets?
I know you can save state using globals, but if this works without
too much trouble, it might be cleaner.  In fact, I have an implementation
now that seems to work, that allows things like:
  @interact
  def _( a = save_state(i=0), b = ['Go'] ):
  a.i += 1
  print 'i=', a.i
'a' does not appear as an interactive widget.
Every time you press 'Go' you get the next number.
Only minor testing do far, so I don't know about all the repercusions...
  2. What about a similar kind of thing, but gives you access to
 all the controls, so perhaps your function could change
 default values, reposition sliders, etc.  Perhaps something
 like
 @interact
 def _ ( f = sin(x),  range=(0..20), controls=interact_controls() ):
  ...
  controls['range'].set_value(...)
  The value of controls could be a dictionary indexed by variable name 
 ...
 If this has any worth, I could attempt a proof-of-concept in a couple 
 of days.
 I think both of these are good ideas if they can be implemented
 robustly.   The second will be harder to implement but be *extremely*
 useful in practice, I think.   Probably somehow whenever the controls
 are changed via the second thing, we'll have to somehow know to
 redraw the entire output cell (including the input controls) in order to
 set the values of the controls appropriately.   When I was writing
 funtool:http://wiki.sagemath.org/interact#head-16e9c0180afb4f04813e76ab5685ef...

 I could have done something much more powerful using something
 like your suggestion 2.

 William

  -- William
 
 Ah yes -- I just took a crack at #2 and now realize its trickier than
 first thought.
 The controls are rendered to HTML only once, right, and not each time
 the function is invoked.  Oh well, learning my way around here.  I'll
 continue
 worrying about it for a few days ...


I've been thinking about adding the following to @interact:

@interact
def myfun(s=slider(0,10,default_show=False)):
 print s
 print interact_controls(s).render()
 print s^2

and this would print out s, then the slider control, then s^2.  I think 
this should be fairly straightforward to implement (if you've seen the 
code, in @interact, define a function that calls the rendering for a 
specific control, which is then visible from the modified myfun).  It 
does mean that the slider would be rendered every time the function is 
invoked, which could be annoying.  You couldn't have the value of s 
track along with the slider (i.e., in the slider javascript, you 
couldn't change change to slide) and have it work.

Thoughts?  I was also thinking of adding a default_show argument to 
@interact, so:

@interact(default_show=False)
def myfun(s=slider(0,10))
 print s
 print interact_controls(s).render()
 print s^2

would behave like the above (i.e., no controls are shown by default). 
I'm not happy with the name default_show, though.

Jason


--~--~-~--~~~---~--~~
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 set coding to utf-8 in sage script

2008-03-31 Thread Lars Fischer

Hello,

 So, is (c) a bug in Sage or shut it be the users job to set the
 encoding? Alternatively we could check if any encoding is set and if
 not default to utf-8.

It seems to me that preparsing is done in interpreter.py (with Martins
utf-8 patch):case a)
and in preparser.py (without it): case b) and c)
Is that correct?

 So, is (c) a bug in Sage or shut it be the users job to set the
 encoding? Alternatively we could check if any encoding is set and if
 not default to utf-8.
Only the users know (and probably occasional users dont know) what
encoding they are using. So I imho the best thing to do is: default to
utf-8, if there is no encoding specified. (Python defaults to 7-bit
ascii, what will Python 3.0 do?)

But is there a problem? What does it mean to attach e.g. a latin1
encoded file to a sage session. And another file in something
different like cp 1252.


With best regards,
Lars Fischer

--~--~-~--~~~---~--~~
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 Mac - an Odyssey

2008-03-31 Thread mabshoff

Hi,

rereading your initial email and thinking about the problem is the
following:

When I double-click on the
sage icon, instead of getting the dialog only half visible and glossed
over in the video, I get one that says: There is no default
application specified to open the document sage. (Cancel) (Choose
Applicaton...)

It clearly states in the readme:

3) Use finder to visit the sage folder you just copied it and double
click on the sage icon.
4) Select to run it with Terminal:
 Choose Applications, then select All Applications in the
 Enable: drop down.  Change the Applications drop down
 to Utilities.  On the left, scroll and select Terminal.
 Click Open, then in the next dialog select Update.

Sage will not run properly if you do not do that. That is exactly the
steps you have to take on OSX 10.4 as well as OSX 10.5 - I just
verified it.

On Mar 31, 6:59 pm, dwb [EMAIL PROTECTED] wrote:
 Perhaps the video only applies to OS X.5, in which case it should be
 so labeled.

Well, the differences with those dialogs between OSX 10.4 and 10.5 are
miniscule and limited to the new default look in OSX 10.5.

 Perhaps the dialog box which appears in the video should be brought
 fully into view and discussed rather than glossed over.
 Perhaps the video could be made more encompassing, since currently it
 seems to assume things will just work, which they may under OS X.5,
 but not in my case.

They generally do work. The majority of Sage users do develop on Apple
hardware. If the readme were wrong I am sure somebody would have
pointed that out by now.

 Perhaps you would like to actually test the OS X.4 binary on OS X.4 in
 order to update the video and readme.

*Every* Sage release is tested on OSX 10.4. How do you think we create
the binaries.

 Perhaps you would like to try to fix the specific problem I
 encountered, for which I stll have no direct solution, that the icon
 doesn't seem to be runnable.
 Perhaps the video and readme just need a clarification for OS X.4.
 Perhaps as a newbie user of OS X and very rusty unix user I merely
 forgot about something that should have been in the video and readme.
 Perhaps an effort could be made to document what has not been tested
 yet so that volunteers could know what needs to be tested, and newbies
 could steer clear.

Well, we are talking about a computer algebra system here, not a some
little program so that grandma can print pictures of her
grandchildren. A certain amount of computer knowledge is required.

 Perhaps older, but more stable and more fully tested versions could be
 made available as options to those less able or willing to debug.

The is no such thing as older, more tested release. While the quality
of new releases does vary it is generally less buggy than the previous
version. We test very, very extensively (50,000+ test inputs) on
eighteen different configurations and every bug fixed is actually
verified to work in the release. No patch is merged without the
accompanying test case.

 From my limited experience, I would add to the readme: If when you
 click the sage icon, it doesn't know how to run, instead search for
 unix in the Finder help in order to bring up a Terminal window, into
 which type: /applications/sage/sage. But, is that really what you
 want to say to Mac users? I mean, it's a work around, but isn't there
 a fix?

 A recent post to this list about creating an icon on the desktop that
 would run sage did for me create a desktop icon, but the icon does not
 directly run sage.
 I used TextEdit to see that the XML of the icon does contain the
 string /applications/sage/sage, but for some reason it doesn't launch
 sage.
 It does however give me easy access to a Terminal window, into which I
 can type: /applications/sage/sage, which does work.

 Also, my wife in an effort to help tried to install each of the two
 binaries currently available for her Power PC based Mac, and got a
 corrupted file error each time.

Well, that isn't really out fault?

 dwb


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 on Mac - an Odyssey

2008-03-31 Thread dwb

I'm so sorry - my big mistake was to not continue reading in the
readme file. I was so stuck on step 3 that I never noticed that step 4
was exactly what I needed to do. Not only that, but just now I didn't
even make it all the way through step 4 - I browsed a bit for
Terminal, then used the search button to find Terminal instead of
following the steps in step 4 to find it.

Watching the video again, I noticed that it does eventually pan to the
whole dialog and briefly mention it - I don't know how I missed that
before. I never got this dialog, perhaps it does not appear on OS X.4.
However, the operator pushes the Open button on the dialog and
immediately gets a Terminal window running sage - this probably
happens because he has run sage on the machine before, so it has
already been configured to run with Terminal. This is what was so
misleading to the first time user. Before redoing the video, the
operator should clear the association between sage and Terminal so
that the dialog mentioned in step 4 will appear.

dwb

On Mar 31, 9:59 am, dwb [EMAIL PROTECTED] wrote:
 Perhaps the video only applies to OS X.5, in which case it should be
 so labeled.
 Perhaps the dialog box which appears in the video should be brought
 fully into view and discussed rather than glossed over.
 Perhaps the video could be made more encompassing, since currently it
 seems to assume things will just work, which they may under OS X.5,
 but not in my case.
 Perhaps you would like to actually test the OS X.4 binary on OS X.4 in
 order to update the video and readme.
 Perhaps you would like to try to fix the specific problem I
 encountered, for which I stll have no direct solution, that the icon
 doesn't seem to be runnable.
 Perhaps the video and readme just need a clarification for OS X.4.
 Perhaps as a newbie user of OS X and very rusty unix user I merely
 forgot about something that should have been in the video and readme.
 Perhaps an effort could be made to document what has not been tested
 yet so that volunteers could know what needs to be tested, and newbies
 could steer clear.
 Perhaps older, but more stable and more fully tested versions could be
 made available as options to those less able or willing to debug.

 From my limited experience, I would add to the readme: If when you
 click the sage icon, it doesn't know how to run, instead search for
 unix in the Finder help in order to bring up a Terminal window, into
 which type: /applications/sage/sage. But, is that really what you
 want to say to Mac users? I mean, it's a work around, but isn't there
 a fix?

 A recent post to this list about creating an icon on the desktop that
 would run sage did for me create a desktop icon, but the icon does not
 directly run sage.
 I used TextEdit to see that the XML of the icon does contain the
 string /applications/sage/sage, but for some reason it doesn't launch
 sage.
 It does however give me easy access to a Terminal window, into which I
 can type: /applications/sage/sage, which does work.

 Also, my wife in an effort to help tried to install each of the two
 binaries currently available for her Power PC based Mac, and got a
 corrupted file error each time.

 dwb

 On Mar 31, 4:37 am, mabshoff [EMAIL PROTECTED]

 dortmund.de wrote:
  SNIP

  Hi,

 It is unclear to me what you want us to do? Could you clarify?

   I think he is suggesting to whoever creates theMacbinaries to modify
   the README file
   to make it easier to use for the first-time user. Maybe the poster could 
   be more
   specific about the exact words he would suggest?

  Yes, I got that much. But what *specifically* would you suggest to
  change or add?

  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] mesh lines in a 3d plot

2008-03-31 Thread Jason Grout

Is there an easy way to get mesh lines in a plot3d surface?  Sometimes 
it is hard to visualize the plot (especially when it is printed) without 
the mesh lines.

If that is easy, what about the possibility of doing some of things that 
Mma does with different types of meshes?  For reference, see:

http://reference.wolfram.com/mathematica/ref/Mesh.html

http://reference.wolfram.com/mathematica/ref/MeshFunctions.html

http://reference.wolfram.com/mathematica/ref/MeshShading.html

http://reference.wolfram.com/mathematica/ref/MeshStyle.html

Thanks,

Jason


--~--~-~--~~~---~--~~
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: mesh lines in a 3d plot

2008-03-31 Thread William Stein

On Mon, Mar 31, 2008 at 11:03 AM, Jason Grout
[EMAIL PROTECTED] wrote:

  Is there an easy way to get mesh lines in a plot3d surface?

This is not implemented.  I wish you would implement it :-)

Robert Bradshaw might have some useful advise.

 Sometimes
  it is hard to visualize the plot (especially when it is printed) without
  the mesh lines.

  If that is easy, what about the possibility of doing some of things that
  Mma does with different types of meshes?  For reference, see:

  http://reference.wolfram.com/mathematica/ref/Mesh.html

  http://reference.wolfram.com/mathematica/ref/MeshFunctions.html

  http://reference.wolfram.com/mathematica/ref/MeshShading.html

  http://reference.wolfram.com/mathematica/ref/MeshStyle.html

  Thanks,

  Jason


  




-- 
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: mesh lines in a 3d plot

2008-03-31 Thread Jason Grout

William Stein wrote:
 On Mon, Mar 31, 2008 at 11:03 AM, Jason Grout
 [EMAIL PROTECTED] wrote:
  Is there an easy way to get mesh lines in a plot3d surface?
 
 This is not implemented.  I wish you would implement it :-)
 
 Robert Bradshaw might have some useful advise.
 

This is now trac #2471.

Jason


--~--~-~--~~~---~--~~
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-2.10.4 Install Problems

2008-03-31 Thread Daryl Hammond


On Mar 31, 3:21 am, mabshoff [EMAIL PROTECTED]
dortmund.de wrote:
 On Mar 31, 7:24 am, Daryl Hammond [EMAIL PROTECTED] wrote:

  Problem 3 Documentation build

  Finally I build the documentation with:
  cd sage-2.10.4/devel/doc
  ./rebuild

  No errors are indicated in the build process.  However, the special
  images are missing from the documetation when viewed with Firefox.
  Looking at the folders, the image files for /const, /ref, and /tut are
  named img**.old when img**.png is expected.

  Issuing  rename .old .png *.old
  for the files in /const, /ref, and /tut circumvents this.

  

 I is generally unnecessary to build the documentation since it is
 build before releasing the source tarball. We are not aware of any
 problem related to the images [for 
 examplehttp://sagemath.org/doc/html/const/node14.html
 is just fine] as Mike Hansen pointed out, so what TeX distrubution do
 you use? Are you sure rebuild did actually work and not die before
 finishing? At least with TeX Live has some problems with left
 over .aux and .toc cache files from the TeTeX distribution we use -
 seehttp://trac.sagemath.org/sage_trac/ticket/2679

 Cheers,

 Michael


I've re-read the installation manual and since the doc ./rebuild
process is not required I'll stop doing it!

Tex version:

[EMAIL PROTECTED] ~]$ uname -a
Linux DH04.HAMMOND 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007
i686 i686 i386 GNU/Linux

[EMAIL PROTECTED] ~]$ tex
This is TeX, Version 3.141592 (Web2C 7.5.4)

[EMAIL PROTECTED] ~]$ latex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)

[EMAIL PROTECTED] ~]$ rpm -qa  save.txt
and then finding all tex strings:
gettext-0.16.1-12.fc8
latex2html-2002.2.1-6
texinfo-4.11-1.fc8
tetex-fonts-3.0-41.fc8
tetex-dvips-3.0-41.fc8
tetex-latex-3.0-41.fc8
libtextcat-2.2-4.fc8
tetex-3.0-41.fc8
texinfo-tex-4.11-1.fc8

I've gone back over my notes for SAGE installs 2.8.14, 2.9.3, 2.10.2
and 2.10.4.  I used the same ./rebuild process for all four installs.
I no longer have 2.8.14 on my system.  2.9.3 shows no problems.  The
described problem presented itself in both the 2.10.2 and 2.10.4
installs.  (All four installs were done with the same fc8 software.)

Finally, there are additional issues with SELinux for SAGE 2.10.4,
even running in permissive mode after issuing the chcon command.  I've
disabled SELinux.

Thanks for your prompt help.

-Daryl
--~--~-~--~~~---~--~~
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: install_package('polymake-2.2.p4') fails

2008-03-31 Thread shreevatsa

Hello,

Any update on this issue? (The issue is:
The optional package polymake successfully gets compiled and
installed, but then does not work, failing with some Perl errors. This
is on OS X 10.4.)

I have not tried it with Sage 2.11, should I try? (Has something
changed, that is.)
Could someone else with Sage on OS X try and see if it works (is it
something I did wrong):
sage: install_package('polymake-2.2.p4') #This works
sage: polymake.cube(3) #This doesn't.

I don't know in what capacity mhampton is supposed to come to the
rescue now, but it would be great if he did :-)

Thanks,
Shreevatsa

[Previous communication retained below, for completeness.]
On Mar 23, 7:21 pm, shreevatsa [EMAIL PROTECTED] wrote:
 On Mar 22, 6:26 pm, mabshoff [EMAIL PROTECTED]



 dortmund.de wrote:
  On Mar 22, 10:06 pm, shreevatsa [EMAIL PROTECTED] wrote:

   On Mar 22, 3:46 pm, mabshoff [EMAIL PROTECTED]
shreevatsa wrote:
 Hello,

 I tried to install_package('polymake-2.2.p4'), and it failed to build.
 I am on Mac OS X 10.4 Intel, using SAGE Version 2.10.3, Release Date:
 2008-03-11 fromhttp://sagemath.org/SAGEbin/apple_osx/intel/

   After all this, however it still does not work fine. E.g.:
   {{{
   sage: polymake.cube(3)
   Can't locate loadable object for module Poly::Ext in @INC (@INC
   contains: /Applications/sage/local/polymake/perl /Applications/sage/
   local/polymake/perlx /System/Library/Perl/5.8.6/darwin-thread-
   multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-
   thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/
   Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /
   Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-
   multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .)
   at /Applications/sage/local/polymake/perl/Poly.pm line 18
   Compilation failed in require at /Applications/sage/local/polymake/
   perl/Poly.pm line 18.
   BEGIN failed--compilation aborted at /Applications/sage/local/polymake/
   perl/Poly.pm line 18.
   Compilation failed in require at /Applications/sage/local/polymake/
   perl/Switches.pm line 18.
   BEGIN failed--compilation aborted at /Applications/sage/local/polymake/
   perl/Switches.pm line 18.
   Compilation failed in require at /Applications/sage/local/polymake/
   bin//polymake line 49.
   BEGIN failed--compilation aborted at /Applications/sage/local/polymake/
   bin//polymake line 49.

   }}}

   The perl installation part in the install.log seemed to go fine, but

  I am building Sage 2.11.alpha1 on OSX [which will be out shortly] and
  I will test the optional polymake.spkg there to see if I can reproduce
  and hopefully fix this,

  Cheers,

  Michael

 So mabshoff checked with 2.11.alpha1 on OS X, and says it is truly
 broken.

 The error was different from mine: Poly: Modification of non-
 creatable array value attempted, subscript -1 at /Users/mabshoff/
 sage-2.11.alpha1-32bit/local/polymake/perl/Poly/Server.pm line 90.

 (My error was with Perl saying it Can't locate loadable object for
 module Poly::Ext)

 He also mentioned a problem involving the cube binary in $SAGE_ROOT/
 local/bin/cube, which is a Rubik's cube solver, unrelated to
 polymake.cube()

 Also quoting: 
 mabshoff: Either way, mhampton is the person who can likely fix it
 easiest.
 mabshoff: But polymake is installed in an odd place.
 mabshoff: It certainly doesn't conform to default policy.
 mabshoff: Which also explains why it is optional.
 svat: So... what's to be done now?
 mabshoff: mhampton to the rescue ;)
 

 I might be quoting too much text, again ;)
--~--~-~--~~~---~--~~
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: install_package('polymake-2.2.p4') fails

2008-03-31 Thread Marshall Hampton

Hello,

What do you want to do with polymake?  I've been working on
interfacing to cddlib, which does most of the heavy lifting for
polymake for things I care about.  Because my interface does
everything I need, I've stopped installing the polymake package
anymore.  But if you describe what functionality you need and it
overlaps with my interests I might be able to extend my stuff to do
what you want.

Also, I really dislike Perl, so I doubt I could directly solve this
problem anyway.

M. Hampton

On Mar 31, 8:30 pm, shreevatsa [EMAIL PROTECTED] wrote:
 Hello,

 Any update on this issue? (The issue is:
 The optional package polymake successfully gets compiled and
 installed, but then does not work, failing with some Perl errors. This
 is on OS X 10.4.)

 I have not tried it with Sage 2.11, should I try? (Has something
 changed, that is.)
 Could someone else with Sage on OS X try and see if it works (is it
 something I did wrong):
 sage: install_package('polymake-2.2.p4') #This works
 sage: polymake.cube(3) #This doesn't.

 I don't know in what capacity mhampton is supposed to come to the
 rescue now, but it would be great if he did :-)

 Thanks,
 Shreevatsa

 [Previous communication retained below, for completeness.]
 On Mar 23, 7:21 pm, shreevatsa [EMAIL PROTECTED] wrote:

  On Mar 22, 6:26 pm, mabshoff [EMAIL PROTECTED]

  dortmund.de wrote:
   On Mar 22, 10:06 pm, shreevatsa [EMAIL PROTECTED] wrote:

On Mar 22, 3:46 pm, mabshoff [EMAIL PROTECTED]
 shreevatsa wrote:
  Hello,

  I tried to install_package('polymake-2.2.p4'), and it failed to 
  build.
  I am on Mac OS X 10.4 Intel, using SAGE Version 2.10.3, Release 
  Date:
  2008-03-11 fromhttp://sagemath.org/SAGEbin/apple_osx/intel/

After all this, however it still does not work fine. E.g.:
{{{
sage: polymake.cube(3)
Can't locate loadable object for module Poly::Ext in @INC (@INC
contains: /Applications/sage/local/polymake/perl /Applications/sage/
local/polymake/perlx /System/Library/Perl/5.8.6/darwin-thread-
multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-
thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/
Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /
Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-
multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .)
at /Applications/sage/local/polymake/perl/Poly.pm line 18
Compilation failed in require at /Applications/sage/local/polymake/
perl/Poly.pm line 18.
BEGIN failed--compilation aborted at /Applications/sage/local/polymake/
perl/Poly.pm line 18.
Compilation failed in require at /Applications/sage/local/polymake/
perl/Switches.pm line 18.
BEGIN failed--compilation aborted at /Applications/sage/local/polymake/
perl/Switches.pm line 18.
Compilation failed in require at /Applications/sage/local/polymake/
bin//polymake line 49.
BEGIN failed--compilation aborted at /Applications/sage/local/polymake/
bin//polymake line 49.

}}}

The perl installation part in the install.log seemed to go fine, but

   I am building Sage 2.11.alpha1 on OSX [which will be out shortly] and
   I will test the optional polymake.spkg there to see if I can reproduce
   and hopefully fix this,

   Cheers,

   Michael

  So mabshoff checked with 2.11.alpha1 on OS X, and says it is truly
  broken.

  The error was different from mine: Poly: Modification of non-
  creatable array value attempted, subscript -1 at /Users/mabshoff/
  sage-2.11.alpha1-32bit/local/polymake/perl/Poly/Server.pm line 90.

  (My error was with Perl saying it Can't locate loadable object for
  module Poly::Ext)

  He also mentioned a problem involving the cube binary in $SAGE_ROOT/
  local/bin/cube, which is a Rubik's cube solver, unrelated to
  polymake.cube()

  Also quoting: 
  mabshoff: Either way, mhampton is the person who can likely fix it
  easiest.
  mabshoff: But polymake is installed in an odd place.
  mabshoff: It certainly doesn't conform to default policy.
  mabshoff: Which also explains why it is optional.
  svat: So... what's to be done now?
  mabshoff: mhampton to the rescue ;)
  

  I might be quoting too much text, again ;)
--~--~-~--~~~---~--~~
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: install_package('polymake-2.2.p4') fails

2008-03-31 Thread William Stein

On Mon, Mar 31, 2008 at 7:56 PM, Marshall Hampton [EMAIL PROTECTED] wrote:

  Hello,

  What do you want to do with polymake?  I've been working on
  interfacing to cddlib, which does most of the heavy lifting for
  polymake for things I care about.  Because my interface does
  everything I need, I've stopped installing the polymake package
  anymore.  But if you describe what functionality you need and it
  overlaps with my interests I might be able to extend my stuff to do
  what you want.
  

Marshall,

Just out of curiosity can cddlib compute the maximum value of a linear
functional on a polytope described by linear inequalities?   Rekha Thomas
asked me this a couple of days ago.

Rekha -- if i mis-asked this question, could you respond with something
more precise?

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