mechmotum / cyipopt

Cython interface for the interior point optimzer IPOPT
Eclipse Public License 2.0
235 stars 54 forks source link

module 'cyipopt' has no attribute 'Problem' #276

Open Nlanglet opened 17 hours ago

Nlanglet commented 17 hours ago

Hello. In order to develop a topological optimisation code, I decided to use Fenics, dolphin adjoint and cyipopt. Unfortunately when I try the tutorial I get:

line 73, in nlp = cyipopt.Problem( AttributeError: module ‘cyipopt’ has no attribute ‘Problem’.

I'm using an anaconda (anaconda/2021.05) environment and when I do conda list I get :

cyipopt 0.1.9 py37hc1659b7_1000 conda-forge ipopt 3.12.12 blas_openblash746e5da_1001 [blas_openblas] conda-forge

and all other installed modules. I also use python 3.7.16. Am I doing something wrong ?

I have also tried with miniconda 23.1.0 with cyipopt 1.5.0 and i got the same problem.

Thank you in advance

moorepants commented 16 hours ago

The latest version of cyipopt is 1.5.0, 0.1.9 is no longer supported.

moorepants commented 16 hours ago

If you install 0.1.9, Problem did not exist then.