← All tasks
pythoncvxpy/cvxpy #1229Not a task: not reproduced

cvxpy 1.1.7 no longer compatible with numpy<1.20?

envgap__cvxpy__cvxpy-1229

01 / FAILURE SIGNATURE

As reported upstream

RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
8ac508a3214a0f7045253e27cf41189a8c9062dc
Manifest
pyproject.toml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

cvxpy/cvxpy #1229 · read the original issue
I use python 3.7.9 with cvxpy 1.1.7 and numpy 1.18.1.

However as of Sunday we get an error message that the module is compiled with a newer numpy version. Before the weekend everything was still working.



What happened on sunday 31 january that this throws an error now?

Issue is resolved by upgrading numpy to 1.20, however isnt cvxpy supposed to support numpy>1.15? I want to stay on 1.18.1 still.



import cvxpy as cp

/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/cvxpy/__init__.py:18: in <module>

    from cvxpy.atoms import *

/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/cvxpy/atoms/__init__.py:20: in <module>

    from cvxpy.atoms.geo_mean import geo_mean

/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/cvxpy/atoms/geo_mean.py:20: in <module>

    from cvxpy.utilities.power_tools import (fracify, decompose, approx_error, lower_bound,

/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/cvxpy/utilities/power_tools.py:18: in <module>

    from cvxpy.atoms.affine.reshape import reshape

/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/cvxpy/atoms/affine/reshape.py:18: in <module>

    from cvxpy.atoms.affine.hstack import hstack

/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/cvxpy/atoms/affine/hstack.py:18: in <module>

    from cvxpy.atoms.affine.affine_atom import AffAtom

/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/cvxpy/atoms/affine/affine_atom.py:22: in <module>

    from cvxpy.cvxcore.python import canonInterface

/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/cvxpy/cvxcore/python/__init__.py:3: in <module>

    import _cvxcore

E   ImportError: numpy.core.multiarray failed to import

------------------------------- Captured stderr --------------------------------

RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]