On 05/02/2012 02:18 PM, Stephen Montgomery-Smith wrote:
On 05/02/12 12:46, Dima Pasechnik wrote:


On Wednesday, May 2, 2012 4:01:09 PM UTC, Stephen Montgomery-Smith wrote:

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/startup.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 is the failure that is hard to systematically reproduce. Any ideas? It comes after moving the location of the sage_root directory.

%mv work work2
%./work2/sage-5.0.rc0/sage
----------------------------------------------------------------------
| Sage Version 5.0.rc0, Release Date: 2012-05-01                     |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
**********************************************************************
*                                                                    *
* Warning: this is a prerelease version, and it may be unstable.     *
*                                                                    *
**********************************************************************
The Sage installation tree may have moved
(from /usr/home/stephen/sage-devel/work/sage-5.0.rc0 to /usr/home/stephen/sage-devel/work2/sage-5.0.rc0).
Changing various hardcoded paths...
(Please wait at most a few minutes.)
DO NOT INTERRUPT THIS.
Error: sage_location: update_pkgconfig_files():
  File "coindatasample.pc" doesn't contain a definition of SAGE_ROOT.
  Skipping it...
Error: sage_location: update_pkgconfig_files():
  File "coinutils.pc" doesn't contain a definition of SAGE_ROOT.
  Skipping it...
Error: sage_location: update_pkgconfig_files():
  File "osi.pc" doesn't contain a definition of SAGE_ROOT.
  Skipping it...
Error: sage_location: update_pkgconfig_files():
  File "osi-unittests.pc" doesn't contain a definition of SAGE_ROOT.
  Skipping it...
Error: sage_location: update_pkgconfig_files():
  File "clp.pc" doesn't contain a definition of SAGE_ROOT.
  Skipping it...
Error: sage_location: update_pkgconfig_files():
  File "osi-clp.pc" doesn't contain a definition of SAGE_ROOT.
  Skipping it...
Error: sage_location: update_pkgconfig_files():
  File "cgl.pc" doesn't contain a definition of SAGE_ROOT.
  Skipping it...
Error: sage_location: update_pkgconfig_files():
  File "cbc.pc" doesn't contain a definition of SAGE_ROOT.
  Skipping it...
Error: sage_location: update_pkgconfig_files():
  File "osi-cbc.pc" doesn't contain a definition of SAGE_ROOT.
  Skipping it...
Done resetting paths.
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/usr/home/stephen/sage-devel/work2/sage-5.0.rc0/local/bin/<string> in <module>()

/usr/home/stephen/sage-devel/work2/sage-5.0.rc0/local/lib/python2.7/site-packages/sage/misc/preparser_ipython.py in <module>() 6 ###########################################################################
      7
----> 8 import sage.misc.interpreter
      9
     10 import preparser

/usr/home/stephen/sage-devel/work2/sage-5.0.rc0/local/lib/python2.7/site-packages/sage/misc/interpreter.py in <module>()
    100
    101 import os
--> 102 import log
    103 import re
    104

/usr/home/stephen/sage-devel/work2/sage-5.0.rc0/local/lib/python2.7/site-packages/sage/misc/log.py in <module>()
     63
     64 import interpreter
---> 65 import latex
     66 import misc
     67

/usr/home/stephen/sage-devel/work2/sage-5.0.rc0/local/lib/python2.7/site-packages/sage/misc/latex.py in <module>()
     55 import types
     56
---> 57 from misc import tmp_dir, graphics_filename
     58 import sage_eval
     59 from sage.misc.sage_ostools import have_program

/usr/home/stephen/sage-devel/work2/sage-5.0.rc0/local/lib/python2.7/site-packages/sage/misc/misc.py in <module>()
   2156     return "0"*(size-len(str(s))) + str(s)
   2157
-> 2158 import sage.server.support
   2159
   2160 def embedded():

/usr/home/stephen/sage-devel/work2/sage-5.0.rc0/local/lib/python2.7/site-packages/sage/server/support.py in <module>()
     17 import sage.misc.pager
     18
---> 19 import sage.misc.sagedoc as sagedoc
     20 import sage.misc.sageinspect as sageinspect
     21

/usr/home/stephen/sage-devel/work2/sage-5.0.rc0/local/lib/python2.7/site-packages/sage/misc/sagedoc.py in <module>()
     38 from sage.misc.viewer import browser
     39 from sage.misc.misc import SAGE_DOC, tmp_dir
---> 40 from sagenb.misc.sphinxify import sphinxify
     41 import sage.version
     42

ImportError: No module named sagenb.misc.sphinxify
WARNING: Failure executing code: 'import sage.misc.preparser_ipython; sage.misc.preparser_ipython.magma_colon_equals=True'
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/usr/home/stephen/sage-devel/work2/sage-5.0.rc0/local/lib/python2.7/site-packages/IPython/ipmaker.py in force_import(modname, force_reload)
     61         reload(sys.modules[modname])
     62     else:
---> 63         __import__(modname)
     64
     65

/usr/home/stephen/sage-devel/work2/sage-5.0.rc0/local/bin/ipy_profile_sage.py in <module>()
      1 import os
      2 if 'SAGE_CLEAN' not in os.environ:
----> 3     import sage.misc.misc
      4     from sage.misc.interpreter import preparser, _ip
      5     preparser(True)

/usr/home/stephen/sage-devel/work2/sage-5.0.rc0/local/lib/python2.7/site-packages/sage/misc/misc.py in <module>()
   2156     return "0"*(size-len(str(s))) + str(s)
   2157
-> 2158 import sage.server.support
   2159
   2160 def embedded():

/usr/home/stephen/sage-devel/work2/sage-5.0.rc0/local/lib/python2.7/site-packages/sage/server/support.py in <module>()
     17 import sage.misc.pager
     18
---> 19 import sage.misc.sagedoc as sagedoc
     20 import sage.misc.sageinspect as sageinspect
     21

/usr/home/stephen/sage-devel/work2/sage-5.0.rc0/local/lib/python2.7/site-packages/sage/misc/sagedoc.py in <module>()
     38 from sage.misc.viewer import browser
     39 from sage.misc.misc import SAGE_DOC, tmp_dir
---> 40 from sagenb.misc.sphinxify import sphinxify
     41 import sage.version
     42

ImportError: No module named sagenb.misc.sphinxify
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.

<ERROR: name 'sage_prompt' is not defined>

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

Reply via email to