You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running tests with the latest sympy 1.12, I got the following error message.
======================================================================
ERROR: pysb.tests.test_bng.test_bng_boolean_multiply_number
----------------------------------------------------------------------
ValueError: Error from parse_expr with transformed code: <code object <module> at 0x7f37c5f52450, file "<string>", line 1>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/share/miniconda/envs/pysb/lib/python3.9/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/runner/work/pysb/pysb/build/lib/pysb/tests/test_bng.py", line 425, in test_bng_boolean_multiply_number
assert parse_bngl_expr('(2 > 1) * 4') == 4
File "/home/runner/work/pysb/pysb/build/lib/pysb/bng.py", line 946, in parse_bngl_expr
expr = sympy_parser.parse_expr(text, *args, transformations=trans,
File "/usr/share/miniconda/envs/pysb/lib/python3.9/site-packages/sympy/parsing/sympy_parser.py", line 1087, in parse_expr
raise e from ValueError(f"Error from parse_expr with transformed code: {code!r}")
File "/usr/share/miniconda/envs/pysb/lib/python3.9/site-packages/sympy/parsing/sympy_parser.py", line 1078, in parse_expr
rv = eval_expr(code, local_dict, global_dict)
File "/usr/share/miniconda/envs/pysb/lib/python3.9/site-packages/sympy/parsing/sympy_parser.py", line 906, in eval_expr
expr = eval(
File "<string>", line 1, in <module>
File "/usr/share/miniconda/envs/pysb/lib/python3.9/site-packages/sympy/core/cache.py", line 72, in wrapper
retval = cfunc(*args, **kwargs)
File "/usr/share/miniconda/envs/pysb/lib/python3.9/site-packages/sympy/core/operations.py", line 64, in __new__
raise TypeError("Relational cannot be used in %s" % cls.__name__)
TypeError: Relational cannot be used in Mul
If I use sympy<1.12, it threw SymPyDeprecationWarning but not TypeError.
Reproducibility:
OS: Ubuntu 22.04
Python version: 3.9
PySB version: 1.15
SymPy version: 1.12
The text was updated successfully, but these errors were encountered:
When running tests with the latest sympy 1.12, I got the following error message.
If I use
sympy<1.12
, it threw SymPyDeprecationWarning but not TypeError.Reproducibility:
The text was updated successfully, but these errors were encountered: