mechmotum / cyipopt

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

installation problem dll load failed while importing ipopt_wrapper #209

Closed AlexandreMoulti closed 1 year ago

AlexandreMoulti commented 1 year ago

Hi,

I have issues while installing cyipopt. I have the last anaconda installed and need to install from files (proxy blocking) that I download from conda website Here is the message


(base) C:\Users\Alexandre>python Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 1 2023, 18:18:15) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

exit()

(base) C:\Users\Alexandre>conda install C:\Users\Alexandre\Downloads\cyipopt-1.2.0-py310h3c1d9b9_2.conda Retrieving notices: ...working... done

Downloading and Extracting Packages

Downloading and Extracting Packages

Preparing transaction: done Verifying transaction: done Executing transaction: done

(base) C:\Users\Alexandre>python Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 1 2023, 18:18:15) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import cyipopt Traceback (most recent call last): File "", line 1, in File "C:\Temp\Anaconda\lib\site-packages\cyipopt__init__.py", line 12, in from ipopt_wrapper import * ImportError: DLL load failed while importing ipopt_wrapper: Le module spécifié est introuvable.

moorepants commented 1 year ago

Have you installed all the dependencies?

AlexandreMoulti commented 1 year ago

I have all the requirements except ipopt I thought this package installs a wrapper around ipopt + ipot itself My understanding comes from the documentation that I followed and got this :

C:\Users\Alexandre\Downloads\cyipopt-master\cyipopt-master>conda install -c conda-forge cyipopt Collecting package metadata (current_repodata.json): done Solving environment: - The environment is inconsistent, please check the package plan carefully The following packages are causing the inconsistency:

moorepants commented 1 year ago

I have all the requirements except ipopt

Ipopt is a requirement that needs to be installed.

I thought this package installs a wrapper around ipopt + ipot itself

It does not install ipopt, you should install the ipopt conda forge binary.

moorepants commented 1 year ago

The environment is inconsistent, please check the package plan carefully

If you are installing into your base conda enviroment you may have conflicts. Maybe try an isolated conda environment.

AlexandreMoulti commented 1 year ago

Indeed it works by creating an environment, thanks however on my professional pc I am behind a proxy and cannot execute the conda environment creation do you know how to proceed?

moorepants commented 1 year ago

I think that is a question for the conda forum.

AlexandreMoulti commented 1 year ago

I think I am limited in my professional laptop and cannot create another environment If I wanted to stick to the base one. Would be enough to download and install the following libraries ?


The following NEW packages will be INSTALLED:

bzip2 conda-forge/win-64::bzip2-1.0.8-h8ffe710_4 ca-certificates conda-forge/win-64::ca-certificates-2023.5.7-h56e8100_0 cyipopt conda-forge/win-64::cyipopt-1.2.0-py311hee902c8_2 intel-openmp conda-forge/win-64::intel-openmp-2023.1.0-h57928b3_46319 ipopt conda-forge/win-64::ipopt-3.14.12-ha9547d1_0 libblas conda-forge/win-64::libblas-3.9.0-16_win64_mkl libcblas conda-forge/win-64::libcblas-3.9.0-16_win64_mkl libexpat conda-forge/win-64::libexpat-2.5.0-h63175ca_1 libffi conda-forge/win-64::libffi-3.4.2-h8ffe710_5 libflang conda-forge/win-64::libflang-5.0.0-h6538335_20180525 libhwloc conda-forge/win-64::libhwloc-2.9.1-hadd60ae_3 libiconv conda-forge/win-64::libiconv-1.17-h8ffe710_0 liblapack conda-forge/win-64::liblapack-3.9.0-16_win64_mkl libsqlite conda-forge/win-64::libsqlite-3.42.0-hcfcfb64_0 libxml2 conda-forge/win-64::libxml2-2.11.4-hc3477c8_0 libzlib conda-forge/win-64::libzlib-1.2.13-hcfcfb64_4 llvm-meta conda-forge/noarch::llvm-meta-5.0.0-0 metis conda-forge/win-64::metis-5.1.0-h0e60522_1006 mkl conda-forge/win-64::mkl-2022.1.0-h6a75c08_874 mumps-seq conda-forge/win-64::mumps-seq-5.2.1-hb3f9cae_11 numpy conda-forge/win-64::numpy-1.24.3-py311h0b4df5a_0 openmp conda-forge/win-64::openmp-5.0.0-vc14_1 openssl conda-forge/win-64::openssl-3.1.1-hcfcfb64_1 pip conda-forge/noarch::pip-23.1.2-pyhd8ed1ab_0 pthreads-win32 conda-forge/win-64::pthreads-win32-2.9.1-hfa6e2cd_3 python conda-forge/win-64::python-3.11.3-h2628c8c_0_cpython python_abi conda-forge/win-64::python_abi-3.11-3_cp311 setuptools conda-forge/noarch::setuptools-67.7.2-pyhd8ed1ab_0 tbb conda-forge/win-64::tbb-2021.9.0-h91493d7_0 tk conda-forge/win-64::tk-8.6.12-h8ffe710_0 tzdata conda-forge/noarch::tzdata-2023c-h71feb2d_0 ucrt conda-forge/win-64::ucrt-10.0.22621.0-h57928b3_0 vc conda-forge/win-64::vc-14.3-hb25d44b_16 vc14_runtime conda-forge/win-64::vc14_runtime-14.34.31931-h5081d32_16 vs2015_runtime conda-forge/win-64::vs2015_runtime-14.34.31931-hed1258a_16 wheel conda-forge/noarch::wheel-0.40.0-pyhd8ed1ab_0 xz conda-forge/win-64::xz-5.2.6-h8d14728_0

moorepants commented 1 year ago

Like I said, this is a question for conda people. I am no familiar with this.

Ask here: https://conda.discourse.group/

moorepants commented 1 year ago

I'm going to close this issue, as it is out of scope now.