(sage-dev) >>> sage [develop] ./sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.9.beta8, Release Date: 2026-03-22 │
│ Using Python 3.14.3. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable. ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
sage: from sage.interfaces.mathics import mathics
sage: mathics(x^2 - 1).sage()
No module named 'pkg_resources'
Not able to load mathics.builtin.procedural. Check your installation.
mathics.builtin loads from /home/rashad/.conda/envs/sage-dev/lib/python3.14/site-packages/mathics/core/load
No module named 'pkg_resources'
Not able to load mathics.builtin.datentime. Check your installation.
mathics.builtin loads from /home/rashad/.conda/envs/sage-dev/lib/python3.14/site-packages/mathics/core/load
/home/rashad/.conda/envs/sage-dev/lib/python3.14/site-packages/requests/__init__.py:113: RequestsDependencyWarning: urllib3 (2.6.3) or chardet (7.2.0)/charset_normalizer (3.4.5) doesn't match a supported version!
warnings.warn(
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
File ~/sage/sage/src/sage/interfaces/mathics.py:430, in _mathics_sympysage_symbol(self)
429 return False
--> 430 return SR.var(name)
431 except ValueError:
432 # sympy sometimes returns dummy variables
433 # with name = 'None', str rep = '_None'
434 # in particular in inverse Laplace and inverse Mellin transforms
File sage/symbolic/ring.pyx:882, in sage.symbolic.ring.SymbolicRing.var()
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
Cell In[2], line 1
----> 1 mathics(x**Integer(2) - Integer(1)).sage()
File ~/sage/sage/src/sage/interfaces/interface.py:1104, in InterfaceElement.sage(self, *args, **kwds)
1085 def sage(self, *args, **kwds):
1086 """
1087 Attempt to return a Sage version of this object.
1088
(...) 1102 [0 0]
1103 """
-> 1104 return self._sage_(*args, **kwds)
File ~/sage/sage/src/sage/interfaces/mathics.py:1066, in MathicsElement._sage_(self, locals)
1064 if hasattr(s, '_sage_'):
1065 try:
-> 1066 return s._sage_()
1067 except NotImplementedError: # see :issue:`33584`
1068 pass
File ~/sage/sage/src/sage/interfaces/sympy.py:364, in _sympysage_add(self)
362 s = 0
363 for x in self.args:
--> 364 s += x._sage_()
365 return s
File ~/sage/sage/src/sage/interfaces/sympy.py:392, in _sympysage_pow(self)
383 def _sympysage_pow(self):
384 """
385 EXAMPLES::
386
(...) 390 sage: assert x^pi^5 == (Symbol('x')**S.Pi**5)._sage_()
391 """
--> 392 return self.args[0]._sage_()**self.args[1]._sage_()
File ~/sage/sage/src/sage/interfaces/mathics.py:435, in _mathics_sympysage_symbol(self)
430 return SR.var(name)
431 except ValueError:
432 # sympy sometimes returns dummy variables
433 # with name = 'None', str rep = '_None'
434 # in particular in inverse Laplace and inverse Mellin transforms
--> 435 return SR.var(str(self))
File sage/symbolic/ring.pyx:882, in sage.symbolic.ring.SymbolicRing.var()
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
sage: /quit
(sage-dev) >>> sage [develop] ./sage -tp 8 --long src/sage/interfaces/mathics.py
Running doctests with ID 2026-03-24-16-28-13-862cc92a.
Git branch: develop
Git ref: 31a24ce257
Running with SAGE_LOCAL='/home/rashad/.conda/envs/sage-dev'
Using --optional=conda,pip,sage
Features to be detected: 32_bit,4ti2,benzene,bliss,buckygen,conway_polynomials,coxeter3,csdp,cvxopt,cvxopt,database_cremona_ellcurve,database_cremona_mini_ellcurve,database_cubic_hecke,database_ellcurves,database_graphs,database_jones_numfield,database_knotinfo,dot2tex,dvipng,ecm,flatter,fpylll,fricas,gap_package_atlasrep,gap_package_design,gap_package_grape,gap_package_guava,gap_package_hap,gap_package_polenta,gap_package_polycyclic,gap_package_qpa,gap_package_quagroup,gfan,giac,glucose,graphviz,imagemagick,info,ipython,jmol,jupymake,jupyter_sphinx,kenzo,khoca,kissat,latte_int,lrcalc_python,lrslib,mathics,matroid_database,mcqd,meataxe,meson_editable,mpmath,msolve,nauty,networkx,numpy,palp,pandoc,pdf2svg,pdftocairo,pexpect,phitigra,pillow,plantri,polytopes_db,polytopes_db_4d,pplpy,primecountpy,ptyprocess,pycosat,pycryptosat,pynormaliz,pyparsing,python_igraph,regina,requests,rpy2,rubiks,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.groups,sage.libs.braiding,sage.libs.ecl,sage.libs.flint,sage.libs.gap,sage.libs.giac,sage.libs.homfly,sage.libs.linbox,sage.libs.m4ri,sage.libs.ntl,sage.libs.pari,sage.libs.singular,sage.misc.cython,sage.modular,sage.modules,sage.numerical.mip,sage.plot,sage.rings.complex_double,sage.rings.finite_rings,sage.rings.function_field,sage.rings.number_field,sage.rings.padics,sage.rings.polynomial.pbori,sage.rings.real_double,sage.rings.real_mpfr,sage.sat,sage.schemes,sage.symbolic,sage_numerical_backends_coin,sagemath_doc_html,scipy,singular,sirocco,sloane_database,sphinx,symengine_py,sympy,tdlib,threejs,topcom
Doctesting 1 file using 8 threads.
No module named 'pkg_resources'
Not able to load mathics.builtin.procedural. Check your installation.
mathics.builtin loads from /home/rashad/.conda/envs/sage-dev/lib/python3.14/site-packages/mathics/core/load
No module named 'pkg_resources'
Not able to load mathics.builtin.datentime. Check your installation.
mathics.builtin loads from /home/rashad/.conda/envs/sage-dev/lib/python3.14/site-packages/mathics/core/load
/home/rashad/.conda/envs/sage-dev/lib/python3.14/site-packages/requests/__init__.py:113: RequestsDependencyWarning: urllib3 (2.6.3) or chardet (7.2.0)/charset_normalizer (3.4.5) doesn't match a supported version!
warnings.warn(
src/bin/sage -t --long --warn-long 30.0 --random-seed=3414706164797258008326926394810047144 src/sage/interfaces/mathics.py
**********************************************************************
File "src/sage/interfaces/mathics.py", line 56, in sage.interfaces.mathics
Failed example:
sobj = mobj2.sage(); sobj
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 430, in _mathics_sympysage_symbol
return SR.var(name)
~~~~~~^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics[6]>", line 1, in <module>
sobj = mobj2.sage(); sobj
File "/home/rashad/sage/sage/src/sage/interfaces/interface.py", line 1104, in sage
return self._sage_(*args, **kwds)
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1066, in _sage_
return s._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 379, in _sympysage_mul
s *= x._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 364, in _sympysage_add
s += x._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 435, in _mathics_sympysage_symbol
return SR.var(str(self))
~~~~~~^^^^^^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
**********************************************************************
File "src/sage/interfaces/mathics.py", line 58, in sage.interfaces.mathics
Failed example:
sobj.parent()
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics[7]>", line 1, in <module>
sobj.parent()
^^^^
NameError: name 'sobj' is not defined
**********************************************************************
File "src/sage/interfaces/mathics.py", line 323, in sage.interfaces.mathics
Failed example:
math_bessel_K(2,I) # optional - mathics
Expected:
-2.5928861754911969782 + 0.18048997206696202663 I
Got:
CompoundExpression[2.7182818284590452354 ^ (-1.0000000000000000000 internals`bessel`u$1) / internals`bessel`u$1 ^ 1.0000000000000000000, internals`bessel`While[True, CompoundExpression[0.50000000000000000000, (-1.0000000000000000000 2.7182818284590452354 ^ (-1.0000000000000000000 internals`bessel`u$1) / internals`bessel`u$1 ^ 2.0000000000000000000 - 1.0000000000000000000 2.7182818284590452354 ^ (-1.0000000000000000000 internals`bessel`u$1) / internals`bessel`u$1 ^ 1.0000000000000000000) / internals`bessel`u$1 ^ 1.0000000000000000000]], 1.7317959997692363070 - 0.37745896303183014917 I]
**********************************************************************
File "src/sage/interfaces/mathics.py", line 337, in sage.interfaces.mathics
Failed example:
slist3 = mlist.sage(); slist3 # optional - mathics
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 430, in _mathics_sympysage_symbol
return SR.var(name)
~~~~~~^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uSystem`None" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics[77]>", line 1, in <module>
slist3 = mlist.sage(); slist3 # optional - mathics
File "/home/rashad/sage/sage/src/sage/interfaces/interface.py", line 1104, in sage
return self._sage_(*args, **kwds)
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1076, in _sage_
return tuple([conv(i) for i in p])
~~~~^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1072, in conv
return self.parent()(i).sage()
~~~~~~~~~~~~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/interface.py", line 1104, in sage
return self._sage_(*args, **kwds)
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1074, in _sage_
return [conv(i) for i in p]
~~~~^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1072, in conv
return self.parent()(i).sage()
~~~~~~~~~~~~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/interface.py", line 1104, in sage
return self._sage_(*args, **kwds)
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1066, in _sage_
return s._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 435, in _mathics_sympysage_symbol
return SR.var(str(self))
~~~~~~^^^^^^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uSystem`None" is not a valid Python identifier.
**********************************************************************
File "src/sage/interfaces/mathics.py", line 372, in sage.interfaces.mathics
Failed example:
(e^x)._mathics_().sage() # optional -- mathics
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 430, in _mathics_sympysage_symbol
return SR.var(name)
~~~~~~^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics[84]>", line 1, in <module>
(e**x)._mathics_().sage() # optional -- mathics
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/interface.py", line 1104, in sage
return self._sage_(*args, **kwds)
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1066, in _sage_
return s._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 510, in _sympysage_function
args = [arg._sage_() for arg in self.args]
~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 435, in _mathics_sympysage_symbol
return SR.var(str(self))
~~~~~~^^^^^^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
**********************************************************************
File "src/sage/interfaces/mathics.py", line 374, in sage.interfaces.mathics
Failed example:
exp(x)._mathics_().sage() # optional -- mathics
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 430, in _mathics_sympysage_symbol
return SR.var(name)
~~~~~~^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics[85]>", line 1, in <module>
exp(x)._mathics_().sage() # optional -- mathics
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/interface.py", line 1104, in sage
return self._sage_(*args, **kwds)
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1066, in _sage_
return s._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 510, in _sympysage_function
args = [arg._sage_() for arg in self.args]
~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 435, in _mathics_sympysage_symbol
return SR.var(str(self))
~~~~~~^^^^^^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
**********************************************************************
File "src/sage/interfaces/mathics.py", line 412, in sage.interfaces.mathics._mathics_sympysage_symbol
Failed example:
st = mt.to_sympy(); st
Expected:
_Mathics_User_Global`t
Got:
_uGlobal`t
**********************************************************************
File "src/sage/interfaces/mathics.py", line 414, in sage.interfaces.mathics._mathics_sympysage_symbol
Failed example:
_mathics_sympysage_symbol(st)
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 430, in _mathics_sympysage_symbol
return SR.var(name)
~~~~~~^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`t" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics._mathics_sympysage_symbol[3]>", line 1, in <module>
_mathics_sympysage_symbol(st)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 435, in _mathics_sympysage_symbol
return SR.var(str(self))
~~~~~~^^^^^^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`t" is not a valid Python identifier.
**********************************************************************
File "src/sage/interfaces/mathics.py", line 416, in sage.interfaces.mathics._mathics_sympysage_symbol
Failed example:
bool(_ == st._sage_())
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 430, in _mathics_sympysage_symbol
return SR.var(name)
~~~~~~^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`t" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics._mathics_sympysage_symbol[4]>", line 1, in <module>
bool(_ == st._sage_())
~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 435, in _mathics_sympysage_symbol
return SR.var(str(self))
~~~~~~^^^^^^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`t" is not a valid Python identifier.
**********************************************************************
File "src/sage/interfaces/mathics.py", line 418, in sage.interfaces.mathics._mathics_sympysage_symbol
Failed example:
type(st._sage_())
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 430, in _mathics_sympysage_symbol
return SR.var(name)
~~~~~~^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`t" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics._mathics_sympysage_symbol[5]>", line 1, in <module>
type(st._sage_())
~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 435, in _mathics_sympysage_symbol
return SR.var(str(self))
~~~~~~^^^^^^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`t" is not a valid Python identifier.
**********************************************************************
File "src/sage/interfaces/mathics.py", line 592, in sage.interfaces.mathics.Mathics.set
Failed example:
bool(mathics('u').sage() == 2*x+e) # optional - mathics
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 430, in _mathics_sympysage_symbol
return SR.var(name)
~~~~~~^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics.Mathics.set[1]>", line 1, in <module>
bool(mathics('u').sage() == Integer(2)*x+e) # optional - mathics
~~~~~~~~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/interface.py", line 1104, in sage
return self._sage_(*args, **kwds)
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1066, in _sage_
return s._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 364, in _sympysage_add
s += x._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 379, in _sympysage_mul
s *= x._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 435, in _mathics_sympysage_symbol
return SR.var(str(self))
~~~~~~^^^^^^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
**********************************************************************
File "src/sage/interfaces/mathics.py", line 782, in sage.interfaces.mathics.Mathics.help
Failed example:
print(mathics.help('Sin', long=True)) # optional - mathics
Expected:
sine function
<BLANKLINE>
Attributes[Sin] = {Listable, NumericFunction, Protected}
<BLANKLINE>
Got:
<BLANKLINE>
Sin[z]
returns the sine of z.
<BLANKLINE>
Attributes[Sin] = {Listable, NumericFunction, Protected}
<BLANKLINE>
**********************************************************************
File "src/sage/interfaces/mathics.py", line 788, in sage.interfaces.mathics.Mathics.help
Failed example:
print(mathics.Factorial.__doc__) # optional - mathics
Expected:
factorial
<BLANKLINE>
Got:
compute factorial of a number
<BLANKLINE>
**********************************************************************
File "src/sage/interfaces/mathics.py", line 1007, in sage.interfaces.mathics.MathicsElement._sage_
Failed example:
s = m.sage(); s
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 430, in _mathics_sympysage_symbol
return SR.var(name)
~~~~~~^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`e100" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics.MathicsElement._sage_[1]>", line 1, in <module>
s = m.sage(); s
File "/home/rashad/sage/sage/src/sage/interfaces/interface.py", line 1104, in sage
return self._sage_(*args, **kwds)
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1074, in _sage_
return [conv(i) for i in p]
~~~~^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1072, in conv
return self.parent()(i).sage()
~~~~~~~~~~~~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/interface.py", line 1104, in sage
return self._sage_(*args, **kwds)
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1066, in _sage_
return s._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 379, in _sympysage_mul
s *= x._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 435, in _mathics_sympysage_symbol
return SR.var(str(self))
~~~~~~^^^^^^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`e100" is not a valid Python identifier.
**********************************************************************
File "src/sage/interfaces/mathics.py", line 1009, in sage.interfaces.mathics.MathicsElement._sage_
Failed example:
s[1].n()
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics.MathicsElement._sage_[2]>", line 1, in <module>
s[Integer(1)].n()
^
NameError: name 's' is not defined
**********************************************************************
File "src/sage/interfaces/mathics.py", line 1011, in sage.interfaces.mathics.MathicsElement._sage_
Failed example:
s[3]^2
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics.MathicsElement._sage_[3]>", line 1, in <module>
s[Integer(3)]**Integer(2)
^
NameError: name 's' is not defined
**********************************************************************
File "src/sage/interfaces/mathics.py", line 1017, in sage.interfaces.mathics.MathicsElement._sage_
Failed example:
m.sage() # optional - mathics
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 430, in _mathics_sympysage_symbol
return SR.var(name)
~~~~~~^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics.MathicsElement._sage_[5]>", line 1, in <module>
m.sage() # optional - mathics
~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/interface.py", line 1104, in sage
return self._sage_(*args, **kwds)
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1066, in _sage_
return s._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 364, in _sympysage_add
s += x._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 392, in _sympysage_pow
return self.args[0]._sage_()**self.args[1]._sage_()
~~~~~~~~~~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 435, in _mathics_sympysage_symbol
return SR.var(str(self))
~~~~~~^^^^^^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
**********************************************************************
File "src/sage/interfaces/mathics.py", line 1023, in sage.interfaces.mathics.MathicsElement._sage_
Failed example:
m.sage() # optional - mathics
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 430, in _mathics_sympysage_symbol
return SR.var(name)
~~~~~~^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics.MathicsElement._sage_[7]>", line 1, in <module>
m.sage() # optional - mathics
~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/interface.py", line 1104, in sage
return self._sage_(*args, **kwds)
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1066, in _sage_
return s._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 379, in _sympysage_mul
s *= x._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 392, in _sympysage_pow
return self.args[0]._sage_()**self.args[1]._sage_()
~~~~~~~~~~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 364, in _sympysage_add
s += x._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 379, in _sympysage_mul
s *= x._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 510, in _sympysage_function
args = [arg._sage_() for arg in self.args]
~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 392, in _sympysage_pow
return self.args[0]._sage_()**self.args[1]._sage_()
~~~~~~~~~~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 435, in _mathics_sympysage_symbol
return SR.var(str(self))
~~~~~~^^^^^^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`x" is not a valid Python identifier.
**********************************************************************
File "src/sage/interfaces/mathics.py", line 1037, in sage.interfaces.mathics.MathicsElement._sage_
Failed example:
bla^2 - m.sage() # optional - mathics
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 430, in _mathics_sympysage_symbol
return SR.var(name)
~~~~~~^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`bla" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics.MathicsElement._sage_[12]>", line 1, in <module>
bla**Integer(2) - m.sage() # optional - mathics
~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/interface.py", line 1104, in sage
return self._sage_(*args, **kwds)
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1066, in _sage_
return s._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 392, in _sympysage_pow
return self.args[0]._sage_()**self.args[1]._sage_()
~~~~~~~~~~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 435, in _mathics_sympysage_symbol
return SR.var(str(self))
~~~~~~^^^^^^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`bla" is not a valid Python identifier.
**********************************************************************
File "src/sage/interfaces/mathics.py", line 1044, in sage.interfaces.mathics.MathicsElement._sage_
Failed example:
mb = m.sage()
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 430, in _mathics_sympysage_symbol
return SR.var(name)
~~~~~~^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`bla" is not a valid Python identifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics.MathicsElement._sage_[14]>", line 1, in <module>
mb = m.sage()
File "/home/rashad/sage/sage/src/sage/interfaces/interface.py", line 1104, in sage
return self._sage_(*args, **kwds)
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 1066, in _sage_
return s._sage_()
~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/sympy.py", line 392, in _sympysage_pow
return self.args[0]._sage_()**self.args[1]._sage_()
~~~~~~~~~~~~~~~~~~~^^
File "/home/rashad/sage/sage/src/sage/interfaces/mathics.py", line 435, in _mathics_sympysage_symbol
return SR.var(str(self))
~~~~~~^^^^^^^^^^^
File "sage/symbolic/ring.pyx", line 882, in sage.symbolic.ring.SymbolicRing.var
ValueError: The name "_uGlobal`bla" is not a valid Python identifier.
**********************************************************************
File "src/sage/interfaces/mathics.py", line 1047, in sage.interfaces.mathics.MathicsElement._sage_
Failed example:
bla^2 - mb
Exception raised:
Traceback (most recent call last):
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 734, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rashad/sage/sage/src/sage/doctest/forker.py", line 1158, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.interfaces.mathics.MathicsElement._sage_[16]>", line 1, in <module>
bla**Integer(2) - mb
^^
NameError: name 'mb' is not defined
**********************************************************************
5 items had failures:
6 of 87 in sage.interfaces.mathics
2 of 7 in sage.interfaces.mathics.Mathics.help
1 of 3 in sage.interfaces.mathics.Mathics.set
8 of 18 in sage.interfaces.mathics.MathicsElement._sage_
4 of 7 in sage.interfaces.mathics._mathics_sympysage_symbol
[221 tests, 21 failures, 4.14s wall]
----------------------------------------------------------------------
src/bin/sage -t --long --warn-long 30.0 --random-seed=3414706164797258008326926394810047144 src/sage/interfaces/mathics.py # 21 doctests failed
----------------------------------------------------------------------
Total time for all tests: 10.4 seconds
cpu time: 4.1 seconds
cumulative wall time: 4.1 seconds
Features detected for doctesting: mathics
(sage-dev) >>> sage [develop]