Hi there, Currently with sage-4.8, there is an import loop (see below). I just pushed the following **TEMPORARY PATCH** which should fix it. By the way there are a *lot* of stuff that are imported by default in combinat and that we should lazy_import. Please fix correctly.
Florent ================ popcorn-*at/sage/combinat $ hg qpus application de TEMPORARY_IMPORT_LOOP_FIX.patch actuellement à : TEMPORARY_IMPORT_LOOP_FIX.patch popcorn-*at/sage/combinat $ hg qdiff diff --git a/sage/combinat/subword_complex.py b/sage/combinat/subword_complex.py --- a/sage/combinat/subword_complex.py +++ b/sage/combinat/subword_complex.py @@ -21,7 +21,8 @@ from sage.misc.cachefunc import cached_m from sage.modules.free_module_element import vector from sage.homology.simplicial_complex import SimplicialComplex, Simplex from sage.combinat.combination import Combinations -from sage.geometry.polyhedron.constructor import Polyhedron +from sage.misc.lazy_import import lazy_import +lazy_import('sage.geometry.polyhedron.constructor', ['Polyhedron']) from sage.geometry.cone import Cone from sage.structure.element import Element from sage.structure.parent import Parent ================ ---------------------------------------------------------------------- | Sage Version 4.8, Release Date: 2012-01-20 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/data/Sage-Install/sage-4.8/local/lib/python2.6/site-packages/IPython/ipmaker.pyc in force_import(modname, force_reload) 61 reload(sys.modules[modname]) 62 else: ---> 63 __import__(modname) 64 65 /home/data/Sage-Install/sage-4.8/local/bin/ipy_profile_sage.py in <module>() 5 preparser(True) 6 ----> 7 import sage.all_cmdline 8 sage.all_cmdline._init_cmdline(globals()) 9 /home/data/Sage-Install/sage-4.8/local/lib/python2.6/site-packages/sage/all_cmdline.py in <module>() 12 try: 13 ---> 14 from sage.all import * 15 from sage.calculus.predefined import x 16 preparser(on=True) /home/data/Sage-Install/sage-4.8/local/lib/python2.6/site-packages/sage/all.py in <module>() 108 109 from sage.coding.all import * --> 110 from sage.combinat.all import * 111 112 from sage.lfunctions.all import * /home/data/Sage-Install/sage-4.8/local/lib/python2.6/site-packages/sage/combinat/all.py in <module>() 112 113 # Cluster Algebras and Quivers --> 114 from cluster_algebra_quiver.all import * 115 116 #import lrcalc /home/data/Sage-Install/sage-4.8/local/lib/python2.6/site-packages/sage/combinat/cluster_algebra_quiver/all.py in <module>() 2 from quiver import Quiver, PathAlgebra, QuiverMorphism, GAPQuiver 3 from cluster_seed import ClusterSeed ----> 4 from cluster_complex import ClusterComplex 5 6 /home/data/Sage-Install/sage-4.8/local/lib/python2.6/site-packages/sage/combinat/cluster_algebra_quiver/cluster_complex.py in <module>() 19 from sage.combinat.root_system.coxeter_group import CoxeterGroup 20 from sage.combinat.cluster_algebra_quiver.cluster_seed import ClusterSeed ---> 21 from sage.combinat.subword_complex import SubwordComplex, SubwordComplexFacet 22 from sage.rings.semirings.non_negative_integer_semiring import NN 23 /home/data/Sage-Install/sage-4.8/local/lib/python2.6/site-packages/sage/combinat/subword_complex.py in <module>() 22 from sage.homology.simplicial_complex import SimplicialComplex, Simplex 23 from sage.combinat.combination import Combinations ---> 24 from sage.geometry.polyhedron.constructor import Polyhedron 25 from sage.geometry.cone import Cone 26 from sage.structure.element import Element ImportError: No module named polyhedron.constructor Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed. sage: -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-devel@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.