El miércoles, 24 de septiembre de 2025 a las 16:51:32 UTC+2, Michael 
Orlitzky escribió:


Has anything else changed? Is it just me? (This requires sagelib to be 
installed as a python package via pip, meson, or a package manager; it 
works fine from within a sage prompt.)


Can reproduce as far back as 10.4 (that's the oldest I can test without 
downgrading Python). But 10.6 and older used to give a different (quite 
uninformative) error:

In [1]: from sage.rings.integer_ring import ZZ 
--------------------------------------------------------------------------- 
ImportError                               Traceback (most recent call last) 
Cell In[1], line 1 
----> 1 from sage.rings.integer_ring import ZZ 

File /usr/lib/python3.13/site-packages/sage/rings/integer_ring.pyx:1, in init 
sage.rings.integer_ring (build/cythonized/sage/rings/integer_ring.c:21194)() 
----> 1 r""" 
     2 Ring `\ZZ` of Integers 
     3  

File /usr/lib/python3.13/site-packages/sage/rings/integer.pyx:1, in init 
sage.rings.integer (build/cythonized/sage/rings/integer.c:62499)() 
----> 1 r""" 
     2 Elements of the ring `\ZZ` of integers 
     3  

File /usr/lib/python3.13/site-packages/sage/rings/rational.pyx:76, in init 
sage.rings.rational (build/cythonized/sage/rings/rational.cpp:45244)() 
    74 from sage.libs.gmp.pylong cimport mpz_set_pylong 
    75 from sage.rings.integer cimport Integer, smallInteger 
---> 76 from sage.rings.integer_ring import ZZ 
    77 from sage.structure.coerce cimport coercion_model, is_numpy_type 
    78 from sage.structure.element cimport Element 

ImportError: cannot import name ZZ
 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/3cd64024-1a98-488d-9f00-5bf37d43f2ean%40googlegroups.com.

Reply via email to