I've just pushed a change that hopefully fixes this. You'll have to
apply my patch on top of Nicolas's patch (it is the patch that
immediately follows his patch). I'm using sage-5.2.rc0.

Franco

--

On Fri, Jul 27, 2012 at 5:05 PM, Anne Schilling <[email protected]> wrote:
> Hi Andrew,
>
> Yes, I have the same problem with sage-5.2.rc0. It looks like an import loop.
> It is Nicolas' responsibility to fix his patch!
>
> Best,
>
> Anne
>
> On 7/27/12 2:02 AM, Andrew Mathas wrote:
>> Hi Anne,
>>
>> I am running into problems with 5.2. Previously I was trying to work with 
>> sage-5.2, rather than sage-5.2-rc0, but I have just installed sage-5.2-rc0 
>> and I get exactly the same problem as before.
>>
>> Namely, all of the patches in the queue apply without complaint, but when I 
>> try to run sage it starts with the error
>> /usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/site-packages/sage/rings/field.py
>>  in <module>()
>>      18 
>> #*****************************************************************************
>>      19
>> ---> 20 from sage.rings.ring import Field, is_Field
>>      21
>>      22 def is_PrimeField(R):
>>
>> (full log below).
>>
>> I have isolated the problem to the patch 
>> trac_10963-more_functorial_constructions-nt.patch. If I pop this patch off 
>> the queue the sage runs without problem, but with this patch it is broken.
>>
>> Am I the only one having this problem? I have installed sage-5.2-rc0  by 
>> downloading the complete tar file from 
>> http://boxen.math.washington.edu/home/release/, compiling from source and 
>> then
>> installing sage-combinat on top of this. Just to be sure, I see this problem 
>> on
>> Sage Version 5.2.rc0, Release Date: 2012-07-17
>>  running on a macbook pro with lion. The same problem arises using sage-5.2.
>>
>> Any ideas?
>> Andrew
>>
>> ----------------------------------------------------------------------
>> | Sage Version 5.2.rc0, Release Date: 2012-07-17                     |
>> | Type "notebook()" for the browser-based notebook interface.        |
>> | Type "help()" for help.                                            |
>> ----------------------------------------------------------------------
>> **********************************************************************
>> *                                                                    *
>> * Warning: this is a prerelease version, and it may be unstable.     *
>> *                                                                    *
>> **********************************************************************
>> ---------------------------------------------------------------------------
>> ImportError                               Traceback (most recent call last)
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/site-packages/IPython/ipmaker.pyc
>>  in force_import(modname, force_reload)
>>      61         reload(sys.modules[modname])
>>      62     else:
>> ---> 63         __import__(modname)
>>      64
>>      65
>>
>> /usr/local/src/sage/sage-5.2.rc0/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
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/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)
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/site-packages/sage/all.py
>>  in <module>()
>>      64 from time                import sleep
>>      65
>> ---> 66 from sage.misc.all       import *         # takes a while
>>      67
>>      68 from sage.misc.sh import sh
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/site-packages/sage/misc/all.py
>>  in <module>()
>>      79 from func_persist import func_persist
>>      80
>> ---> 81 from functional import (additive_order,
>>      82                         sqrt as numerical_sqrt,
>>      83                         base_ring,
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/site-packages/sage/misc/functional.py
>>  in <module>()
>>      34
>>      35
>> ---> 36 from sage.rings.complex_double import CDF
>>      37 from sage.rings.real_double import RDF, RealDoubleElement
>>      38
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/bin/complex_double.pyx in init 
>> sage.rings.complex_double (sage/rings/complex_double.c:16283)()
>> ----> 1
>>       2
>>       3
>>       4
>>       5
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/bin/ring.pyx in init sage.rings.ring 
>> (sage/rings/ring.c:18322)()
>>      85
>>      86
>> ---> 87
>>      88
>>      89
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/site-packages/sage/misc/classcall_metaclass.so
>>  in sage.misc.classcall_metaclass.ClasscallMetaclass.__call__ 
>> (sage/misc/classcall_metaclass.c:991)()
>>     323
>>     324
>> --> 325
>>     326
>>     327
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/site-packages/sage/categories/adjective_category.pyc
>>  in __classcall__(cls, *args, **options)
>>     346             True
>>     347         """
>> --> 348         base_category_class, adjectives = 
>> base_category_class_and_adjectives(cls)
>>     349         return base_category_class(*args, 
>> **options)._with_adjectives(adjectives)
>>     350
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/site-packages/sage/misc/cachefunc.so
>>  in sage.misc.cachefunc.CachedFunction.__call__ 
>> (sage/misc/cachefunc.c:2950)()
>>     644
>>     645
>> --> 646
>>     647
>>     648
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/site-packages/sage/categories/adjective_category.pyc
>>  in base_category_class_and_adjectives(cls)
>>     142             name = name[len(adjective):]
>>     143         adjectives.append(adjective)
>> --> 144     import sage.categories.basic
>>     145     if name in sage.categories.basic.__dict__:
>>     146         base_category_class = getattr(sage.categories.basic, name)
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/site-packages/sage/categories/basic.py
>>  in <module>()
>>      45 from unique_factorization_domains import UniqueFactorizationDomains
>>      46
>> ---> 47 from fields import Fields
>>      48 from quotient_fields import QuotientFields
>>      49 from finite_fields import FiniteFields
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/site-packages/sage/categories/fields.py
>>  in <module>()
>>      21 from sage.misc.lazy_attribute import lazy_class_attribute
>>      22 from sage.misc.lazy_import import LazyImport
>> ---> 23 from sage.rings.field import is_Field
>>      24
>>      25 class Fields(Category_singleton):
>>
>> /usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/site-packages/sage/rings/field.py
>>  in <module>()
>>      18 
>> #*****************************************************************************
>>      19
>> ---> 20 from sage.rings.ring import Field, is_Field
>>      21
>>      22 def is_PrimeField(R):
>>
>> ImportError: cannot import name is_Field
>> Error importing ipy_profile_sage - perhaps you should run %upgrade?
>> WARNING: Loading of ipy_profile_sage failed.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-combinat-devel" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/sage-combinat-devel?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to