> >> I just built sage-5.0.rc0 on FreeBSD. When I do make test, one of the
> >> test failures is puzzling me:
>
> >> sage -t -force_lib "devel/sage/sage/tests/startup.py"
> >> **********************************************************************
> >> File
> >> "/usr/home/stephen/sage-devel/work/sage-5.0.rc0/devel/sage/sage/tests/start
> >>  up.py",
>
> >> line 13:
> >> sage: sage0("'numpy' in sys.modules")
> >> Expected:
> >> False
> >> Got:
> >> True
> >> **********************************************************************
>
> >> Any ideas?
>
> >> If it helps, I installed a bunch of the optional packages. Maybe one of
> >> these causes numpy to be installed at start-up time.
>
> >> one should be able to trace this even in install.log, I think...
>
> > I can confirm that not adding any optional packages makes this test
> > work. So it is the optional packages that seem to create this problem.
>
> > Would it be fair to say that the optional packages should be considered
> > unreliable? I am having other problems with sage when the optional
> > packages are installed. Unfortunately they seem inconsistent in their
> > appearance, otherwise I would provide more details.
>
> This seems to be the optional package that creates the problem:
> gnuplotpy-1.8

Aha!   The proof is here - great work, this is an spkg or interface
bug.

new-host-2:sage-5.0.beta14 $ ./sage -ipython
Python 2.7.2 (default, May  1 2012, 10:37:32)
Type "copyright", "credits" or "license" for more information.

IPython 0.10.2 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints
more.

In [1]: import sys

In [2]: sys.modules['numpy']
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call
last)

/Users/.../sage-5.0.beta14/<ipython console> in <module>()

KeyError: 'numpy'

In [3]: import Gnuplot as GP

In [4]: sys.modules['numpy']
Out[4]: <module 'numpy' from '/Users/.../local/lib/python2.7/site-
packages/numpy/__init__.pyc'>

And since if it finds Gnuplot, Sage imports it in interfaces/
gnuplot.py, we have this once both spkgs are installed:

sage: sys.modules['numpy']
<module 'numpy' from '/Users/.../sage-5.0.beta14/local/lib/python2.7/
site-packages/numpy/__init__.pyc'>


So Gnuplot automatically imports numpy, and this interface is called
on startup.

++++

By the way, this is not really optional any more, but apparently
experimental?

Well, gnuplot is experimental, but gnuplotpy is optional.  I don't get
that...

Found gnuplot-4.0.0
http://www.sagemath.org//packages/optional/gnuplot-4.0.0.spkg -->
gnuplot-4.0.0.spkg
[ ]
http://www.sagemath.org//packages/standard/gnuplot-4.0.0.spkg -->
gnuplot-4.0.0.spkg
[ ]
http://www.sagemath.org//packages/experimental/gnuplot-4.0.0.spkg -->
gnuplot-4.0.0.spkg
[..................................................]


So that is something that should be fixed too.  Any ideas from anyone
on a proper resolution of this?

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to