I'm stuck with a very annoying bug which prevent me to do any tests. Here
are the symptoms: whereas at the interactive level things are working
correctly, sage -t give my some errors. You can find below a traceback. As
magically guessed by cwitty, this seems to be due to a file named sets.py in
the category directory. Note that if I unapply the corresponding patch with a
hg qpop, the file sets.py is removed from the source but the file sets.pyc
remains an everything is broken. I have to remove by hands those two files in
various locations:
./build/lib.linux-x86_64-2.5/sage/categories/sets.py
./build/sage/categories/sets.py
./build/sage/categories/sets.pyc
./sage/categories/sets.pyc
The weird thing it that the problem appear quite deterministically but not
exactly on my machine. I've try hard to let it appear on a similar machine but
without any success. If following cwitty advice I change the patch to rename
sets.py with a different name eg sets_cat.py the problem seems to vanish.
I'm running sage-3.4.rc0. My machine is a laptop with a core2 processor
running linux x86_64. My distrib is SuSE 11.1.
tomahawk-*/sage/categories $ uname -a
Linux tomahawk 2.6.27.19-3.2-default #1 SMP 2009-02-25 15:40:44 +0100 x86_64 x86_64 x86_64 GNU/Linux
tomahawk-*/sage/categories $ gcc --version
gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Any help is very welcome.
Cheers,
Florent
========
----------------------------------------------------------------------
| Sage Version 3.4.rc0, Release Date: 2009-03-02 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
Loading Sage library. Current Mercurial branch is: combinat
sage: Groups()
Category of groups
sage: Groups().super_categories
[Category of monoids]
sage: quit
Exiting SAGE (CPU time 0m0.06s, Wall time 0m26.20s).
tomahawk-*/sage/categories $ sage -t groups.py
sage -t "devel/sage-combinat/sage/categories/groups.py"
Traceback (most recent call last):
File "/usr/local/sage/sage-3.4.rc0/tmp/groups.py", line 2, in <module>
from sage.all_cmdline import *;
File "/usr/local/sage/sage-3.4.rc0/local/lib/python/site-packages/sage/all_cmdline.py", line 14, in <module>
from sage.all import *
File "/usr/local/sage/sage-3.4.rc0/local/lib/python2.5/site-packages/sage/all.py", line 64, in <module>
from sage.misc.all import * # takes a while
File "/usr/local/sage/sage-3.4.rc0/local/lib/python2.5/site-packages/sage/misc/all.py", line 16, in <module>
from sage_timeit_class import timeit
File "sage_timeit_class.pyx", line 3, in sage.misc.sage_timeit_class (sage/misc/sage_timeit_class.c:603)
File "/usr/local/sage/sage-3.4.rc0/local/lib/python/site-packages/sage/misc/sage_timeit.py", line 12, in <module>
import timeit as timeit_, time, math, preparser, interpreter
File "/usr/local/sage/sage-3.4.rc0/local/lib/python2.5/site-packages/sage/misc/interpreter.py", line 95, in <module>
import IPython.ipapi
File "/usr/local/sage/sage-3.4.rc0/devel/sage-combinat/sage/categories/__init__.py", line 58, in <module>
File "/tmp/sage-inst/sage-3.4.rc0/local/lib/python2.5/site-packages/IPython/Shell.py", line 43, in <module>
File "/tmp/sage-inst/sage-3.4.rc0/local/lib/python2.5/site-packages/IPython/Magic.py", line 38, in <module>
File "/usr/local/sage/sage-3.4.rc0/devel/sage-combinat/sage/categories/sets.py", line 23, in <module>
from sage.categories.objects import Objects
File "/usr/local/sage/sage-3.4.rc0/local/lib/python2.5/site-packages/sage/categories/objects.py", line 21, in <module>
from sage.categories.homset import Homset
File "/usr/local/sage/sage-3.4.rc0/local/lib/python2.5/site-packages/sage/categories/homset.py", line 33, in <module>
import morphism
File "morphism.pyx", line 1, in sage.categories.morphism (sage/categories/morphism.c:4309)
"""
File "map.pyx", line 1, in sage.categories.map (sage/categories/map.c:6128)
#*****************************************************************************
File "parent.pxd", line 13, in sage.structure.element (sage/structure/element.c:23112)
File "map.pxd", line 4, in sage.structure.parent (sage/structure/parent.c:15139)
cdef class Map(Element):
AttributeError: 'module' object has no attribute 'Map'
[4.7 s]
exit code: 1024
----------------------------------------------------------------------
The following tests failed:
sage -t "devel/sage-combinat/sage/categories/groups.py"
Total time for all tests: 4.7 seconds
tomahawk-*/sage/categories $ sage