MIT-REALM/neural_clbf

Error of [type object 'spmatrix' has no attribute '__div__']

YukiCR opened this issue · 4 comments

Hi,
I'm trying to run this repo on Ubuntu 20.04 and bugs happen when trying to do pytest . or run training.
This may probably be the bug of cvxpy reported in cvxpy/cvxpy#2162 .
This bug is fixed in cvxpy 1.3.2 (cvxpy/cvxpy#2158) but update of cvxpy can't be done in this repo as environment is freezed by setuptools==59.5.0 in requirements.txt

Hi, were you able to resolve this issue? I am getting the same error on Ubuntu 20.04 as well.

Hi, Please refer to this section for resolving: issue. Hope this helps.

Unless I am mistaken.

Setting the requirements.txt to

# Standard
numpy
matplotlib
seaborn
pandas

# Code quality
mypy
pytest
flake8
brunette

# Image processing
Pillow==9.5.0

# Learning libraries
torch==1.9.1
pytorch-lightning==1.3.4
torchmetrics==0.5.1
tensorboard

# Optimization
cvxpy==1.2.1
cvxpylayers==0.1.5
gurobipy==9.1.2
osqp
ecos
scs
casadi

# Geometry
shapely

# Freeze versions to avoid bugs
setuptools==59.5.0

and testing_requirements.txt to:

coverage
codecov>=2.1
pytest>=3.0.5
pytest-cov
pytest-flake8
flake8
check-manifest
twine==1.13.0

Allows it to run on ubuntu.

You will get warnings, but I have found them save to ignore.