Skip to content

Error converting between sympy and symengine matrices #365

@oscarbenjamin

Description

@oscarbenjamin

Broken CI in sympy after 0.8.0 release of symengine. I'm not sure what changed but there are now many fails like this in sympy CI:

__ sympy/physics/mechanics/tests/test_joint.py:test_pin_joint_double_pendulum __
Traceback (most recent call last):
  File "/home/runner/work/sympy/sympy/sympy/physics/mechanics/tests/test_joint.py", line 70, in test_pin_joint_double_pendulum
    J1 = PinJoint('J1', C, PartP, speeds=u1, coordinates=q1,
  File "/home/runner/work/sympy/sympy/sympy/physics/mechanics/joint.py", line 494, in __init__
    super().__init__(name, parent, child, coordinates, speeds,
  File "/home/runner/work/sympy/sympy/sympy/physics/mechanics/joint.py", line 145, in __init__
    self._parent_axis = self._axis(parent, parent_axis)
  File "/home/runner/work/sympy/sympy/sympy/physics/mechanics/joint.py", line 246, in _axis
    if not ax.dt(body.frame) == 0:
  File "/home/runner/work/sympy/sympy/sympy/physics/vector/vector.py", line 650, in dt
    return time_derivative(self, otherframe)
  File "/home/runner/work/sympy/sympy/sympy/physics/vector/functions.py", line 198, in time_derivative
    outlist += [(express(v[0], frame,
  File "symengine_wrapper.pyx", line 3690, in symengine.lib.symengine_wrapper.DenseMatrixBase.diff
  File "symengine_wrapper.pyx", line 4067, in symengine.lib.symengine_wrapper.diff
TypeError: Cannot convert symengine.lib.symengine_wrapper.ImmutableDenseMatrix to symengine.lib.symengine_wrapper.Basic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions