sage-4.7.2.rc0 released

87 views
Skip to first unread message

Jeroen Demeyer

unread,
Oct 22, 2011, 5:09:51 PM10/22/11
to sage-r...@googlegroups.com
Dear Sage lovers,

We're releasing Sage 4.7.2.rc0.

Source archive:

http://boxen.math.washington.edu/home/release/sage-4.7.2.rc0/sage-4.7.2.rc0.tar

Upgrade path:

http://boxen.math.washington.edu/home/release/sage-4.7.2.rc0/sage-4.7.2.rc0/

The source and upgrade path can also be found on the mirror network
(you might need to wait a while before the mirrors are synchronized):

http://www.sagemath.org/download-latest.html


Please build, test, and report! We'd love to hear about your
experiences with this release.

== Tickets ==

* We closed 250 tickets in this release. For details, see

http://boxen.math.washington.edu/home/release/sage-4.7.2.rc0/tickets.html

Merged in sage-4.7.2.rc0:

#6210: Douglas McNeil: docs for the property option of graphs() should
include a pointer to the docs for the augment parameter [Reviewed by
Nathann Cohen, Dmitrii Pasechnik]
#9811: Leif Leonhardy: `sage -i ...` exits with 0, even if it is unable
to install a package. [Reviewed by John Palmieri]
#11343: Karl-Dieter Crisman: Disallow @ symbol in username because of
TinyMCE problems [Reviewed by Jeroen Demeyer]
#11698: Karl-Dieter Crisman, Jeroen Demeyer: Fix trivial typo in Sage
devel guide [Reviewed by Leif Leonhardy, Karl-Dieter Crisman]
#11887: Leif Leonhardy, John Palmieri: cython.py: don't create .html and
.c files when running compile_and_load [Reviewed by Jeroen Demeyer]

Michael Anselmi

unread,
Oct 22, 2011, 8:27:13 PM10/22/11
to sage-r...@googlegroups.com
Hello,

This is my first time posting outside of sage-support, and I'm not sure if I should be posting here or in sage-devel.  Anyway...

When building sage-4.7.2.rc0 in Ubuntu 11.10, I receive the the following message:

configure: error: --with-readline=yes (default) and headers/libs are not available
Error configuring R.

The readline spkg seems to have installed correctly, according to readline-6.1.log: "Successfully installed readline-6.1".  I've attached a compressed tar file containing readline-6.1.log, along with install.log in its entirety.

After some googling, I see I'm not the first to encounter this problem.  However, for others the error disappeared after installing readline-common and libreadline6-dev, which I already have installed.

Any advice?  Please let me know if I should provide additional information.

Mike
sage_logs.tar.bz2

leif

unread,
Oct 23, 2011, 1:31:55 AM10/23/11
to sage-r...@googlegroups.com
Michael Anselmi wrote:
> When building sage-4.7.2.rc0 in Ubuntu 11.10, I receive the the
> following message:
>
> configure: error: --with-readline=yes (default) and headers/libs are not
> available
> Error configuring R.

Yes, we're aware of that, although it apparently doesn't happen on all
Oneiric installations.


> However, for others the error disappeared after installing
> readline-common and libreadline6-dev, which I already have installed.

John Hoebing reported on sage-release that UNinstalling libreadline-dev
solved the problem for him; it should be safe (and IMHO work) to
reinstall the system's libreadline-dev *after* you've built Sage /
installed its R package (in case uninstalling solved the issue for you).

The problem is that Ubuntu changed its libraries; libtermcap used to be
a dummy library with its symbols included in libncurses, but that's no
longer the case, apparently at least if libreadline-dev is installed.
(And while Sage ships and builds a *static* libncurses [for some other
packages], its libreadline doesn't refer to the other necessary
libraries. Furthermore, the R we ship isn't aware of that change, i.e.,
its 'configure' just tries to link the failing test program to
libreadline and libncurses.) It seems the missing symbols are now in
libtinfo on Ubuntu, located in /lib/, as a replacement for libtermcap.

As an alternative, using the system's libreadline instead of Sage's
should also work. You'd have to create symbolic links to it in
$SAGE_ROOT/local/lib/, or *copy* your system's libraries there (before
building R, or before building Sage and first 'touch'ing
$SAGE_ROOT/spkg/installed/readline-6.1 to make Sage believe its readline
was already installed).

Unfortunately there are various ways to fix this, none of them very easy
or "straightforward". You *might* also try to install the new readline
6.2 spkg [1] from #11882 [2] which isn't included in Sage 4.7.2,
although I'm not sure (or rather doubt) that this solves the problem.


-leif


[1] http://sage.math.washington.edu/home/palmieri/SPKG/readline-6.2.p1.spkg

[2] http://trac.sagemath.org/sage_trac/ticket/11882


P.S. (to the other readers):

There's a restructured R 2.10.1.p5 spkg awaiting review since quite a
while; any change to (or upgrade of) the R spkg should be based on that.
I also have a not yet finished p6 based on the former; see #9906 [3]
and #9668.

[3] http://trac.sagemath.org/sage_trac/ticket/9906

--
() The ASCII Ribbon Campaign
/\ Help Cure HTML Email

leif

unread,
Oct 23, 2011, 2:32:24 PM10/23/11
to sage-r...@googlegroups.com

FWIW, perhaps the easiest solution is to just create symbolic links in
$SAGE_ROOT/local/lib/ to the system's "unbroken" libncurses, i.e., you
should try the following:

$ cd $SAGE_ROOT/local/lib/
$ ln -svf /lib/libncurses.so.5
$ ln -svf libncurses.so.5 libncurses.so

Then go back into the root directory of the Sage installation and resume
the build (which should start by attempting to build / install R again):

$ cd $SAGE_ROOT
$ make

(Replace $SAGE_ROOT in the above commands by your actual directory,
which according to your logs is '/opt/sw/sage/4.7.2-rc0/'.)


-leif

Michael Anselmi

unread,
Oct 23, 2011, 2:48:26 PM10/23/11
to sage-r...@googlegroups.com
On 10/23/2011 02:32 PM, leif wrote:
> FWIW, perhaps the easiest solution is to just create symbolic links in
> $SAGE_ROOT/local/lib/ to the system's "unbroken" libncurses, i.e., you
> should try the following:
>
> $ cd $SAGE_ROOT/local/lib/
> $ ln -svf /lib/libncurses.so.5
> $ ln -svf libncurses.so.5 libncurses.so
>
> Then go back into the root directory of the Sage installation and resume
> the build (which should start by attempting to build / install R again):
>
> $ cd $SAGE_ROOT
> $ make
>
> (Replace $SAGE_ROOT in the above commands by your actual directory,
> which according to your logs is '/opt/sw/sage/4.7.2-rc0/'.)
>
>
> -leif

I will try this now and let you know how it goes. Thanks for the
clarification.

Mike

leif

unread,
Oct 23, 2011, 3:04:42 PM10/23/11
to sage-r...@googlegroups.com

If this doesn't work, the most interesting logfile is
$SAGE_ROOT/spkg/build/r-2.10.1.p4/src/config.log btw. (in case R's
'configure' again fails).

davidloeffler

unread,
Oct 24, 2011, 6:10:38 AM10/24/11
to sage-release


On Oct 22, 10:09 pm, Jeroen Demeyer <jdeme...@cage.ugent.be> wrote:

> Please build, test, and report!  We'd love to hear about your
> experiences with this release.

Built fine and all tests passed on my laptop (64-bit Linux).

David

David Joyner

unread,
Oct 25, 2011, 5:36:27 PM10/25/11
to sage-r...@googlegroups.com
On Sat, Oct 22, 2011 at 5:09 PM, Jeroen Demeyer <jdem...@cage.ugent.be> wrote:
> Dear Sage lovers,
>
> We're releasing Sage 4.7.2.rc0.
>
> Source archive:
>
> http://boxen.math.washington.edu/home/release/sage-4.7.2.rc0/sage-4.7.2.rc0.tar
>
> Upgrade path:
>
> http://boxen.math.washington.edu/home/release/sage-4.7.2.rc0/sage-4.7.2.rc0/
>
> The source and upgrade path can also be found on the mirror network
> (you might need to wait a while before the mirrors are synchronized):
>
> http://www.sagemath.org/download-latest.html
>
>
> Please build, test, and report!  We'd love to hear about your
> experiences with this release.
>

Build went fine and all tests passed on Mac OS 10.6.8.

Justin C. Walker

unread,
Oct 25, 2011, 10:09:54 PM10/25/11
to sage-r...@googlegroups.com

On Oct 22, 2011, at 14:09 , Jeroen Demeyer wrote:

On Mac OS X, 10.6.8 (Dual 6-core Xeon):

Built from scratch, w/o problems, and all tests (ptestlong) passed!

Built as upgrade from 4.7.1, w/o problems, and all tests (ptestlong) passed!

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
If you're not confused,
You're not paying attention
--------

Michael Anselmi

unread,
Oct 29, 2011, 7:58:52 PM10/29/11
to sage-r...@googlegroups.com

Sorry for the late reply, leif. I cannot tell you if your recommended
solutions work or not, as now I am encountering a different problem:
ATLAS is failing to build. (Actually, ATLAS usually failed to build
while I was having the readline problem. It only succeeded once or
twice to let me get far enough to see the readline error in the first
place.)

I get an error about an illegal instruction. Some more Googleing
revealed that when this occurs, the system is usually under high load or
has dynamic CPU frequency throttling enabled. In my case, the only
significant system load is the Sage build process (as revealed by the
top command), and I disabled CPU throttling at the BIOS level. I also
disabled CPU throttling at the OS level just to be sure, via the command
`sudo update-rc.d ondemand disable'.

I've also seen it suggested that I simply try running `make' again.
After a dozen attempts, this has not worked for me. Also, the `sensors'
command says the laptop is only ~70C while building, so I doubt it's a
temperature issue.

I wish I knew how ATLAS managed to build those two other times. Even
more so, I wish I could make it build now. :)

Here's a snippet of the error. Full logs are attached. For the record,
my CPU is an Intel Core i7-620M. Also, this error occurs with
sage-4.7.2.rc0 AND sage-4.7.2.rc1.

----
gcc -DL2SIZE=4194304
-I/opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/include
-I/opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/../src//include
-I/opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/../src//include/contrib
-DAdd_ -DF77_INTEGER=int -DStringSunStyle -DATL_OS_Linux
-DATL_ARCH_Corei2 -DATL_CPUMHZ=2659 -DATL_SSE3 -DATL_SSE2 -DATL_SSE1
-DATL_USE64BITS -DATL_GAS_x8664 -DATL_NCPU=4 -fomit-frame-pointer
-mfpmath=sse -mavx -O2 -fno-schedule-insns2 -fPIC -m64 -o xL1
L1CacheSize.o time.o
/opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/bin/ATLrun.sh
/opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/tune/sysinfo
xL1 64
Illegal instruction
make[7]: *** [RunL1] Error 132
make[7]: Leaving directory
`/opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/tune/sysinfo'
xsyssum:
/opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/../src//tune/sysinfo/GetSysSum.c:47:
GetL1CacheSize: Assertion `system(ln) == 0' failed.
make[6]: ***
[/opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/include/atlas_ssysinfo.h]
Aborted
make[6]: Leaving directory
`/opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/tune/sysinfo'
make[5]: ***
[/opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/include/atlas_ssysinfo.h]
Error 2
make[5]: Leaving directory
`/opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/src/auxil'
make[4]: *** [IStage1] Error 2
make[4]: Leaving directory
`/opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/bin'
ERROR 437 DURING CACHESIZE SEARCH!!. CHECK INSTALL_LOG/Stage1.log FOR
DETAILS.
----

Thanks for the help so far.

Mike

logs.tar.gz

Volker Braun

unread,
Oct 29, 2011, 10:05:44 PM10/29/11
to sage-r...@googlegroups.com
On Saturday, October 29, 2011 7:58:52 PM UTC-4, Michael Anselmi wrote:

ATLAS is failing to build.  (Actually, ATLAS usually failed to build
while I was having the readline problem.  It only succeeded once or
twice to let me get far enough to see the readline error in the first
place.)

/opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/../src//tune/sysinfo/GetSysSum.c:47:


GetL1CacheSize: Assertion `system(ln) == 0' failed.


This is not a timing problem in ATLAS. For some reason "ln" doesn't work, thats quite messed up. Presumably the libraries that you manually linked into $SAGE_LOCAL/lib do conflict with some other libraries. Can you try

sage -sh
ln

leif

unread,
Oct 29, 2011, 11:31:21 PM10/29/11
to sage-r...@googlegroups.com

Well, it's system(ln) (some string variable, "line" I guess), not
system("ln"), which wouldn't make sense btw.


@Michael:

Did you try setting SAGE_ATLAS_ARCH?

(See
http://sagemath.org/doc/installation/source.html#environment-variables
-- oops, that's still the 4.7.1 documentation; see e.g.
http://sage.math.washington.edu/home/leif/Sage/tmp/installation/source.html#environment-variables
instead.)

In your case, indeed

$ export SAGE_ATLAS_ARCH=Corei7,SSE3,SSE2,SSE1

might work. If not, try some more generic setting, e.g. "Core2" instead
of "Corei7".

But "illegal instruction" is very bad at that point. This could be an
ATLAS bug, a GCC bug, or even due to defective memory, an overheated CPU
or whatsoever. If you always get the *same* error (at that point), it's
likely to be just a bug.

Btw., 70� C is quite high, although I don't have your processor's specs
right now.

At least for ATLAS, you might also unset MAKE (i.e., not use "-j") and /
or SAGE_PARALLEL_SPKG_BUILD, in case you haven't already.

leif

unread,
Oct 30, 2011, 12:25:46 AM10/30/11
to sage-r...@googlegroups.com
leif wrote:
> Volker Braun wrote:
>> On Saturday, October 29, 2011 7:58:52 PM UTC-4, Michael Anselmi wrote:
>>
>> ATLAS is failing to build. (Actually, ATLAS usually failed to build
>> while I was having the readline problem. It only succeeded once or
>> twice to let me get far enough to see the readline error in the first
>> place.)
>>
>> /opt/sw/sage/4.7.2-rc1/spkg/build/atlas-3.8.4/ATLAS-build/../src//tune/sysinfo/GetSysSum.c:47:
>> GetL1CacheSize: Assertion `system(ln) == 0' failed.
>>
>>
>> This is not a timing problem in ATLAS. For some reason "ln" doesn't
>> work, thats quite messed up. Presumably the libraries that you manually
>> linked into $SAGE_LOCAL/lib do conflict with some other libraries. Can
>> you try
>>
>> sage -sh
>> ln
>
> Well, it's system(ln) (some string variable, "line" I guess), not
> system("ln"), which wouldn't make sense btw.

Actually, it's

int GetL1CacheSize(int MaxL1Size)
{
FILE *L1f;
char ln[80];
int L1Size;

if (!FileExists("res/L1CacheSize"))
{
sprintf(ln, "make RunL1 MaxL1=%d\n",MaxL1Size);
assert(system(ln) == 0);
}
L1f = fopen("res/L1CacheSize", "r");
assert(L1f != NULL);
fscanf(L1f, "%d", &L1Size);
fclose(L1f);
fprintf(stderr, "\n Read in L1 Cache size as = %dKB.\n",L1Size);
return(L1Size);

Michael Anselmi

unread,
Oct 31, 2011, 1:02:29 AM10/31/11
to sage-r...@googlegroups.com
On 10/29/2011 11:31 PM, leif wrote:
> @Michael:
>
> Did you try setting SAGE_ATLAS_ARCH?
>
> (See
> http://sagemath.org/doc/installation/source.html#environment-variables
> -- oops, that's still the 4.7.1 documentation; see e.g.
> http://sage.math.washington.edu/home/leif/Sage/tmp/installation/source.html#environment-variables
> instead.)
>
> In your case, indeed
>
> $ export SAGE_ATLAS_ARCH=Corei7,SSE3,SSE2,SSE1
>
> might work. If not, try some more generic setting, e.g. "Core2" instead
> of "Corei7".
>
> But "illegal instruction" is very bad at that point. This could be an
> ATLAS bug, a GCC bug, or even due to defective memory, an overheated CPU
> or whatsoever. If you always get the *same* error (at that point), it's
> likely to be just a bug.
>
> Btw., 70° C is quite high, although I don't have your processor's specs
> right now.
>
> At least for ATLAS, you might also unset MAKE (i.e., not use "-j") and /
> or SAGE_PARALLEL_SPKG_BUILD, in case you haven't already.
>
>
> -leif

Hi leif,

After fiddling with SAGE_ATLAS_ARCH, ATLAS build fine, and I encountered
the libreadline/R error as expected. After following your instructions

---
cd $SAGE_ROOT
ln -svf /lib/libreadline.so.6
ln -svf libreadline.so.6 libreadline.so
make
---

(you had mistakenly typed `libncurses' instead of `libreadline'), the
build completed successfully, and `./sage -t -long devel/sage-main/' had
all tests pass except for the following:

---
devel/sage-main/sage/tests/cmdline.py
devel/sage-main/build/lib.linux-x86_64-2.6/sage/tests/cmdline.py
devel/sage-main/build/sage/tests/cmdline.py
devel/sage-main/sage/misc/trace.py
devel/sage-main/build/lib.linux-x86_64-2.6/sage/misc/trace.py
devel/sage-main/build/sage/misc/trace.py
---

In my (perhaps inaccurate) estimation, these failures are related to
libreadline. In the terminal window, each doctest failure mentioned a
warning about readline being absent. I couldn't find a log file and
I've since closed that window, but I'm attaching the files left in
`~/.sage/tmp', in case they help.

This is likely related to the following message I receive upon loading Sage:

---
WARNING: Readline services not available on this platform.
WARNING: The auto-indent feature requires the readline library
---

readline functionality is indeed non-functional in my build of Sage. I
did have readline-common, libreadline6, libreadline6-dev, and
libreadline-dev installed before starting the build process.

This issue is not a deal breaker for me, as I almost always work from
the Sage notebook, but I thought you might want to know about this.

Thanks for the advice throughout this process.

Mike

doctest.tar.gz

leif

unread,
Oct 31, 2011, 1:30:46 AM10/31/11
to sage-r...@googlegroups.com
Michael Anselmi wrote:
> After fiddling with SAGE_ATLAS_ARCH, ATLAS build fine, and I encountered
> the libreadline/R error as expected. After following your instructions
>
> ---
> cd $SAGE_ROOT
> ln -svf /lib/libreadline.so.6
> ln -svf libreadline.so.6 libreadline.so
> make
> ---
>
> (you had mistakenly typed `libncurses' instead of `libreadline')

Nope, that wasn't a mistake. ;-)

Readline uses libncurses (more precisely libtermcap or one of its
replacements), so the links are intended to get around the odd linker
script in /usr/lib/libncurses.so, which /usr/lib/libtermcap.so is a link to.

I.e., it should really have been

$ cd $SAGE_ROOT/local/lib/
$ ln -svf /lib/libncurses.so.5
$ ln -svf libncurses.so.5 libncurses.so

You could try that and then try to reinstall the R spkg with

$ cd ../.. # only in case you're still in $SAGE_ROOT/local/lib
$ ./sage -f spkg/standard/r-2.10.1.p4.spkg

[From another message:]

Btw, I meanwhile have a new readline spkg [1] you could give a try. (It
is based on readline 6.2 rather than 6.1, but that alone shouldn't make
much of a difference; the relevant part is a patch to the upstream
sources from Sage's side.)
I.e., you could install that (with './sage -i ...') and afterwards try
to (re)install the present R spkg (with './sage -f ...', to force the
reinstallation) in the configuration where it previously failed (i.e.,
*with* libreadline-dev installed I think).

(You should try that *without* any manually added links in
$SAGE_ROOT/local/lib, i.e.

$ rm -f $SAGE_ROOT/local/lib/libncurses.so*
$ ./sage -i /path/to/readline-6.2.p2.spkg
$ ./sage -f spkg/standard/r-2.10.1.p4.spkg
)


-leif

[1]
http://sage.math.washington.edu/home/leif/Sage/spkgs/readline-6.2.p2.spkg

leif

unread,
Oct 31, 2011, 1:39:16 AM10/31/11
to sage-r...@googlegroups.com
leif wrote:
> Michael Anselmi wrote:
>> After fiddling with SAGE_ATLAS_ARCH, ATLAS build fine, and I encountered
>> the libreadline/R error as expected. After following your instructions
>>
>> ---
>> cd $SAGE_ROOT
>> ln -svf /lib/libreadline.so.6
>> ln -svf libreadline.so.6 libreadline.so
>> make
>> ---
>>
>> (you had mistakenly typed `libncurses' instead of `libreadline')
>
> Nope, that wasn't a mistake. ;-)
>
> Readline uses libncurses (more precisely libtermcap or one of its
> replacements), so the links are intended to get around the odd linker
> script in /usr/lib/libncurses.so, which /usr/lib/libtermcap.so is a link to.
>
> I.e., it should really have been
>
> $ cd $SAGE_ROOT/local/lib/
> $ ln -svf /lib/libncurses.so.5
> $ ln -svf libncurses.so.5 libncurses.so
>
> You could try that and then try to reinstall the R spkg with
>
> $ cd ../.. # only in case you're still in $SAGE_ROOT/local/lib
> $ ./sage -f spkg/standard/r-2.10.1.p4.spkg

If that didn't work, you could also try:

$ cd $SAGE_ROOT/local/lib/
$ ln -svf /lib/libtinfo.so.5 libtermcap.so
$ cd ../..
$ ./sage -f spkg/standard/r-2.10.1.p4.spkg


-leif

Michael Anselmi

unread,
Nov 1, 2011, 2:34:42 PM11/1/11
to sage-r...@googlegroups.com
On 10/31/2011 01:39 AM, leif wrote:

> leif wrote:
> If that didn't work, you could also try:
>
> $ cd $SAGE_ROOT/local/lib/
> $ ln -svf /lib/libtinfo.so.5 libtermcap.so
> $ cd ../..
> $ ./sage -f spkg/standard/r-2.10.1.p4.spkg
>
>
> -leif

Good news! To have sage-4.7.2.rc1 build properly on Ubuntu 11.10, all I
had to do was replace $SAGE_ROOT/spkg/standard/readline-6.1.pkg with
readline-6.2.p2.spkg (the spkg you provided) before running `make'.

`./sage -t -long devel/sage-main/' resulted in one doctest failure.
Here are the relevant snippets of output:

---
sage -t -long "devel/sage-main/build/sage/graphs/generic_graph.py"
**********************************************************************
File
"/opt/sw/sage/4.7.2-rc1/devel/sage-main/build/sage/graphs/generic_graph.py",
line 7933:
sage: SD.plot(pos=posn, vertex_size=400,
vertex_colors={'#FFFFFF':range(1,19)}, edge_labels=True).show() # long time
Exception raised:
Traceback (most recent call last):
File "/opt/sw/sage/4.7.2-rc1/local/bin/ncadoctest.py", line 1231,
in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/opt/sw/sage/4.7.2-rc1/local/bin/sagedoctest.py", line 38,
in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/opt/sw/sage/4.7.2-rc1/local/bin/ncadoctest.py", line 1172,
in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_110[16]>", line 1, in <module>
SD.plot(pos=posn, vertex_size=Integer(400),
vertex_colors={'#FFFFFF':range(Integer(1),Integer(19))},
edge_labels=True).show() # long time###line 7933:
sage: SD.plot(pos=posn, vertex_size=400,
vertex_colors={'#FFFFFF':range(1,19)}, edge_labels=True).show() # long time
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/sage/misc/decorators.py",
line 456, in wrapper
return func(*args, **kwds)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/sage/plot/plot.py",
line 1747, in show
self.save(DOCTEST_MODE_FILE, **kwds)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/sage/misc/decorators.py",
line 456, in wrapper
return func(*args, **kwds)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/sage/plot/plot.py",
line 2484, in save
transparent=transparent)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/figure.py",
line 1084, in savefig
self.canvas.print_figure(*args, **kwargs)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/backend_bases.py",
line 1889, in print_figure
**kwargs)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/backends/backend_agg.py",
line 438, in print_png
FigureCanvasAgg.draw(self)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/backends/backend_agg.py",
line 394, in draw
self.figure.draw(self.renderer)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/artist.py",
line 55, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/figure.py",
line 798, in draw
func(*args)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/artist.py",
line 55, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/axes.py",
line 1946, in draw
a.draw(renderer)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/artist.py",
line 55, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/text.py",
line 526, in draw
bbox, info = self._get_layout(renderer)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/text.py",
line 309, in _get_layout
ismath=ismath)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/backends/backend_agg.py",
line 171, in get_text_width_height_descent
renderer=self)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/texmanager.py",
line 617, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File
"/opt/sw/sage/4.7.2-rc1/local/lib/python/site-packages/matplotlib/texmanager.py",
line 382, in make_dvi
string:\n%s\nHere is the full report generated by LaTeX: \n\n'%
repr(tex)) + report)
RuntimeError: LaTeX was not able to process the following string:
'v_k m.c.r.'
Here is the full report generated by LaTeX:

This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
restricted \write18 enabled.
entering extended mode
(./7228fe9681e47b6e5baa99245ed4b714.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang,
nohyphenation, ge
rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek,
ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian,
czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic,
farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek,
hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam,
marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish,
italian, kurmanji,
lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal,
nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc,
slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian,
welsh, loaded
.
(/opt/sw/texlive/2011/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/opt/sw/texlive/2011/texmf-dist/tex/latex/base/size10.clo))
(/opt/sw/texlive/2011/texmf-dist/tex/latex/type1cm/type1cm.sty)
(/opt/sw/texlive/2011/texmf-dist/tex/latex/psnfss/helvet.sty
(/opt/sw/texlive/2011/texmf-dist/tex/latex/graphics/keyval.sty))
(/opt/sw/texlive/2011/texmf-dist/tex/latex/psnfss/courier.sty)
(/opt/sw/texlive/2011/texmf-dist/tex/latex/base/textcomp.sty
(/opt/sw/texlive/2011/texmf-dist/tex/latex/base/ts1enc.def))
(/opt/sw/texlive/2011/texmf-dist/tex/latex/ucs/ucs.sty
(/opt/sw/texlive/2011/texmf-dist/tex/latex/ucs/data/uni-global.def))
(/opt/sw/texlive/2011/texmf-dist/tex/latex/base/inputenc.sty
(/opt/sw/texlive/2011/texmf-dist/tex/latex/ucs/utf8x.def))
(/opt/sw/texlive/2011/texmf-dist/tex/latex/base/fontenc.sty
(/opt/sw/texlive/2011/texmf-dist/tex/latex/base/t1enc.def))
(/opt/sw/texlive/2011/texmf-dist/tex/latex/lm/lmodern.sty)
(/opt/sw/texlive/2011/texmf-dist/tex/latex/tex-gyre/tgpagella.sty
(/opt/sw/texlive/2011/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/opt/sw/texlive/2011/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/opt/sw/texlive/2011/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/opt/sw/texlive/2011/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/opt/sw/texlive/2011/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(/opt/sw/texlive/2011/texmf-dist/tex/generic/oberdiek/ifluatex.sty)))))
(/opt/sw/texlive/2011/texmf-dist/tex/latex/tex-gyre/tgadventor.sty)
(/opt/sw/texlive/2011/texmf-dist/tex/latex/inconsolata/inconsolata.sty)
(/opt/sw/texlive/2011/texmf-dist/tex/latex/geometry/geometry.sty
(/opt/sw/texlive/2011/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/opt/sw/texlive/2011/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/opt/sw/texlive/2011/texmf-dist/tex/generic/ifxetex/ifxetex.sty)

Package geometry Warning: Over-specification in `h'-direction.
`width' (5058.9pt) is ignored.


Package geometry Warning: Over-specification in `v'-direction.
`height' (5058.9pt) is ignored.

)
No file 7228fe9681e47b6e5baa99245ed4b714.aux.
(/opt/sw/texlive/2011/texmf-dist/tex/latex/base/ts1cmr.fd)
(/opt/sw/texlive/2011/texmf-dist/tex/latex/tex-gyre/t1qpl.fd)
(/opt/sw/texlive/2011/texmf-dist/tex/latex/ucs/ucsencs.def)
*geometry* driver: auto-detecting
*geometry* detected driver: dvips
(/opt/sw/texlive/2011/texmf-dist/tex/latex/tex-gyre/t1qag.fd)
! Missing $ inserted.
<inserted text>
$
l.17 \fontsize{10.000000}{12.500000}{\sffamily v_
k m.c.r.}
(/opt/sw/texlive/2011/texmf-dist/tex/latex/lm/ot1lmr.fd)
(/opt/sw/texlive/2011/texmf-dist/tex/latex/lm/omllmm.fd)
(/opt/sw/texlive/2011/texmf-dist/tex/latex/lm/omslmsy.fd)
(/opt/sw/texlive/2011/texmf-dist/tex/latex/lm/omxlmex.fd)
! Extra }, or forgotten $.
l.17 ...0.000000}{12.500000}{\sffamily v_k m.c.r.}

! Missing $ inserted.
<inserted text>
$
l.18 \end{document}

[1] (./7228fe9681e47b6e5baa99245ed4b714.aux) )
(\end occurred inside a group at level 1)

### simple group (level 1) entered at line 17 ({)
### bottom level
(see the transcript file for additional information)
Output written on 7228fe9681e47b6e5baa99245ed4b714.dvi (1 page, 352
bytes).
Transcript written on 7228fe9681e47b6e5baa99245ed4b714.log.

**********************************************************************
1 items had failures:
1 of 37 in __main__.example_110
***Test Failed*** 1 failures.
For whitespace errors, see the file
/home/michael/.sage//tmp/generic_graph_22994.py

[...]

----------------------------------------------------------------------
The following tests failed:


sage -t -long "devel/sage-main/build/sage/graphs/generic_graph.py"
Total time for all tests: 22626.1 seconds
---

Thanks for all the help.

Mike

Reply all
Reply to author
Forward
0 new messages