conda-forge / cyipopt-feedstock

A conda-smithy repository for cyipopt.
BSD 3-Clause "New" or "Revised" License
3 stars 5 forks source link

image not found #8

Closed Jvanschoubroeck closed 5 years ago

Jvanschoubroeck commented 5 years ago

After installing Cyipopt as following

MB-Pro:Python JKvanSchoubroeck$ conda install -c conda-forge cyipopt
Solving environment: done

## Package Plan ##

  environment location: /Users/JKvanSchoubroeck/anaconda

  added / updated specs:
    - cyipopt

The following NEW packages will be INSTALLED:

    cyipopt: 0.1.7-py35h7eb728f_2   conda-forge
    ipopt:   3.12.8-blas_openblas_0 conda-forge [blas_openblas]

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
MB-Pro:Python JKvanSchoubroeck$

I get the following error when trying import ipopt:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-b7ba6fc18d82> in <module>()
      7 import pandas as pd
      8 
----> 9 import compl_mech_temp
     10 import support_functions
     11 import matplotlib.pyplot as plt

/Users/JKvanSchoubroeck/path_to_test_file/test.py in <module>()
     13 import cvxopt.cholmod
     14 from pymatbridge import Matlab
---> 15 import ipopt
     16 import matplotlib.pyplot as plt
     17 import PyMMA

/Users/JKvanSchoubroeck/anaconda/lib/python3.5/site-packages/ipopt/__init__.py in <module>()
     38 from __future__ import absolute_import
     39 
---> 40 from cyipopt import *
     41 from .ipopt_wrapper import minimize_ipopt
     42 

ImportError: dlopen(/Users/JKvanSchoubroeck/anaconda/lib/python3.5/site-packages/cyipopt.cpython-35m-darwin.so, 2): Library not loaded: @rpath/libmetis.dylib
  Referenced from: /Users/JKvanSchoubroeck/anaconda/lib/libipopt.1.dylib
  Reason: image not found


Environment (conda list):

``` MB-Pro:~ JKvanSchoubroeck$ conda list # packages in environment at /Users/JKvanSchoubroeck/anaconda: # # Name Version Build Channel _nb_ext_conf 0.3.0 py35_0 abstract-rendering 0.5.1 np111py35_0 alabaster 0.7.9 py35_0 ampl-mp 3.1.0 0 conda-forge anaconda-client 1.6.0 py35_0 APMonitor 0.1 appnope 0.1.0 py35_0 appscript 1.0.1 py35_0 argcomplete 1.0.0 py35_1 argh 0.26.2 astropy 1.3 np111py35_0 autopep8 1.2.2 babel 2.3.4 py35_0 beautifulsoup4 4.5.3 py35_0 bitarray 0.8.1 py35_0 blas 1.1 openblas conda-forge blaze-core 0.9.0 py35_0 bleach 2.0.0 bokeh 0.12.4 py35_0 boto 2.45.0 py35_0 bzip2 1.0.6 3 ca-certificates 2018.8.24 ha4d7672_0 conda-forge certifi 2018.8.24 py35_1 conda-forge cffi 1.9.1 py35_0 chardet 2.3.0 py35_0 click 6.7 py35_0 cloog 0.18.0 0 clyent 1.2.2 py35_0 cmake 3.6.3 0 colorama 0.3.7 py35_0 conda 4.5.11 py35_0 conda-forge conda-build 2.1.2 py35_0 conda-env 2.6.0 0 conda-forge conda-verify 2.0.0 py35_0 configobj 5.0.6 py35_0 cryptography 1.7.1 py35_0 curl 7.52.1 0 cvxopt 1.1.8 py35_blas_openblas_204 [blas_openblas] conda-forge cycler 0.10.0 py35_0 cyipopt 0.1.7 py35h7eb728f_2 conda-forge cython 0.25.2 py35_0 cytoolz 0.8.2 py35_0 datashape 0.5.4 py35_0 decorator 4.0.11 py35_0 deepdish 0.3.4 docutils 0.13.1 py35_0 entrypoints 0.2.3 entrypoints 0.2.2 py35_0 et_xmlfile 1.0.1 py35_0 expat 2.1.0 0 fastcache 1.0.2 py35_1 fftw 3.3.7 0 conda-forge filelock 2.0.7 py35_0 flask 0.12 py35_0 freetype 2.5.5 2 future 0.16.0 py35_0 conda-forge gcc 4.8.5 7 glpk 4.65 0 conda-forge gmp 6.1.0 0 greenlet 0.4.11 py35_0 gsl 2.2.1 blas_openblas_3 [blas_openblas] conda-forge h5py 2.6.0 np111py35_2 hdf5 1.8.17 1 holoviews 1.4.2 hpc05 1.1 py35_0 basnijholt hpc05 0+unknown html5lib 0.999999999 icu 54.1 0 idna 2.2 py35_0 imagesize 0.7.1 py35_0 ipopt 3.12.8 blas_openblas_0 [blas_openblas] conda-forge ipykernel 4.5.2 py35_0 ipyparallel 5.2.0 ipyparallel 5.2.0 py35_0 ipython 5.1.0 py35_1 ipython-notebook 4.0.4 py35_0 ipython-qtconsole 4.0.1 py35_0 ipython_genutils 0.1.0 py35_0 ipywidgets 5.2.2 py35_1 isl 0.12.2 1 itsdangerous 0.24 py35_0 jbig 2.1 0 jdcal 1.3 py35_0 jedi 0.9.0 py35_1 jinja2 2.9.4 py35_0 jpeg 9b 0 jsonschema 2.5.1 py35_0 jupyter 1.0.0 py35_3 jupyter-cms 0.7.0 jupyter_client 4.4.0 py35_0 jupyter_console 5.0.0 py35_0 jupyter_core 4.2.1 py35_0 kwant 1.3.1 py35_blas_openblas_201 [blas_openblas] conda-forge launcher 1.0.0 3 libgcc 4.8.5 1 libgfortran 3.0.0 0 conda-forge libiconv 1.14 0 libpng 1.6.27 0 libtiff 4.0.6 3 libxml2 2.9.4 0 libxslt 1.1.29 0 lxml 3.7.2 py35_0 markupsafe 0.23 py35_2 matplotlib 1.5.1 np111py35_0 metis 5.1.0 1 basnijholt mistune 0.7.3 py35_1 mistune 0.7.4 mkl 2017.0.1 0 mpc 1.0.3 0 mpfr 3.1.5 0 mpi 1.0 mpich conda-forge mpich 3.2.1 1 conda-forge mpmath 0.19 py35_1 multipledispatch 0.4.9 py35_0 mumps 5.0.2 blas_openblas_205 [blas_openblas] conda-forge mumps_seq 5.0.1 11 basnijholt nb_anacondacloud 1.2.0 py35_0 nb_conda 2.0.0 py35_0 nb_conda_kernels 2.0.0 py35_0 nbconvert 4.2.0 py35_0 nbconvert 5.3.1 nbformat 4.4.0 py35_0 conda-forge nbpresent 3.0.2 py35_0 ncurses 5.9 10 networkx 1.11 py35_0 nltk 3.2.2 py35_0 node-webkit 0.10.1 0 nose 1.3.7 py35_1 notebook 4.3.1 py35_0 numexpr 2.6.1 np111py35_2 numpy 1.11.3 py35_blas_openblas_202 [blas_openblas] conda-forge odo 0.5.0 py35_1 openblas 0.2.19 2 conda-forge openpyxl 2.4.1 py35_0 openssl 1.0.2p h470a237_0 conda-forge pandas 0.19.2 np111py35_1 pandocfilters 1.4.2 param 1.3.2 paramiko 2.0.2 path.py 10.0 py35_0 pathtools 0.1.2 patsy 0.4.1 py35_0 pcre 8.39 1 pep8 1.7.0 py35_0 pexpect 4.2.1 py35_0 pickleshare 0.7.4 py35_0 pillow 4.0.0 py35_0 pip 8.1.2 pip 9.0.1 py35_1 pip 18.0 pip 9.0.1 pkginfo 1.4.1 py35_0 ply 3.9 py35_0 prompt_toolkit 1.0.9 py35_0 psutil 5.0.1 py35_0 ptscotch 6.0.4 5 conda-forge ptyprocess 0.5.1 py35_0 py 1.4.32 py35_0 pyasn1 0.1.9 py35_0 PyAudio 0.2.11 pycosat 0.6.3 py35_0 conda-forge pycparser 2.17 py35_0 pycrypto 2.6.1 py35_4 pycurl 7.43.0 py35_2 pyflakes 1.5.0 py35_0 pygame 1.9.2b6 pygments 2.1.3 py35_0 pymatbridge 0.5.2 pyopenssl 16.2.0 py35_0 pyparsing 2.1.4 py35_0 pyqt 4.11.4 py35_4 pytables 3.3.0 np111py35_0 pytest 3.0.5 py35_0 python 3.5.2 0 python-dateutil 2.6.0 py35_0 python.app 1.2 py35_4 pytz 2016.10 py35_0 pyyaml 3.12 py35_0 pyzmq 16.0.2 py35_0 qt 4.8.7 4 qtconsole 4.2.1 py35_0 readline 6.2 2 redis 3.2.0 0 redis-py 2.10.5 py35_0 requests 2.12.4 py35_0 rope 0.9.4 py35_1 ruamel_yaml 0.11.14 py35_1 scalapack 2.0.2 0 conda-forge scikit-image 0.12.3 np111py35_1 scikit-learn 0.19.1 py35_blas_openblas_200 [blas_openblas] conda-forge scipy 0.19.1 py35_blas_openblas_202 [blas_openblas] conda-forge scotch 6.0.4 4 conda-forge scotch5 5.1.12b 1 basnijholt setuptools 39.2.0 py35_0 conda-forge simplegeneric 0.8.1 py35_1 sip 4.18 py35_0 six 1.10.0 py35_0 snowballstemmer 1.2.1 py35_0 sockjs-tornado 1.0.3 py35_0 sphinx 1.5.1 py35_0 sphinx_rtd_theme 0.1.9 py35_0 spyder 2.3.8 py35_1 spyder-app 2.3.8 py35_0 sqlalchemy 1.1.5 py35_0 sqlite 3.13.0 0 sshtunnel 0.1.1 statsmodels 0.6.1 np111py35_1 suitesparse 4.5.4 blas_openblas_200 [blas_openblas] conda-forge swig 3.0.10 0 sympy 1.0 py35_0 tbb 2018_20171205 0 conda-forge terminado 0.6 py35_0 testpath 0.3.1 tinyarray 1.1.0 py35_0 basnijholt tk 8.5.18 0 toolz 0.8.2 py35_0 ToPy 0.2.1 tornado 4.4.2 py35_0 traitlets 4.3.1 py35_0 ujson 1.35 py35_0 unicodecsv 0.14.1 py35_0 wcwidth 0.1.7 py35_0 webencodings 0.5.1 werkzeug 0.11.15 py35_0 wheel 0.29.0 py35_0 Whoosh 2.7.4 widgetsnbextension 1.2.6 py35_0 xlrd 1.0.0 py35_0 xlsxwriter 0.9.6 py35_0 xlwings 0.10.2 py35_0 xlwt 1.2.0 py35_0 xz 5.2.2 1 yaml 0.1.6 0 zeromq 4.1.3 0 zlib 1.2.8 3 MB-Pro:~ JKvanSchoubroeck$ ```


Details about conda and system ( conda info ):

``` MB-Pro:~ JKvanSchoubroeck$ conda info active environment : None user config file : /Users/JKvanSchoubroeck/.condarc populated config files : /Users/JKvanSchoubroeck/.condarc conda version : 4.5.11 conda-build version : 2.1.2 python version : 3.5.2.final.0 base environment : /Users/JKvanSchoubroeck/anaconda (writable) channel URLs : https://conda.anaconda.org/conda-forge/osx-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/osx-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/free/osx-64 https://repo.anaconda.com/pkgs/free/noarch https://repo.anaconda.com/pkgs/r/osx-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/pro/osx-64 https://repo.anaconda.com/pkgs/pro/noarch package cache : /Users/JKvanSchoubroeck/anaconda/pkgs /Users/JKvanSchoubroeck/.conda/pkgs envs directories : /Users/JKvanSchoubroeck/anaconda/envs /Users/JKvanSchoubroeck/.conda/envs platform : osx-64 user-agent : conda/4.5.11 requests/2.12.4 CPython/3.5.2 Darwin/17.5.0 OSX/10.13.4 UID:GID : 501:20 netrc file : None offline mode : False MB-Pro:~ JKvanSchoubroeck$ ```
moorepants commented 5 years ago

I ran the build here: https://github.com/conda-forge/cyipopt-feedstock/pull/10 and it runs fine on Travis CI MacOSX. The only thing that I notice offhand that is different with your setup is that you have packages from sources other than conda-forge. Maybe there is a mix up there. Also, the dll that isn't loading is from libmetis which is an Ipopt dependency and you have it installed from an arbitrary user:

metis                     5.1.0                         1    basnijholt

Maybe install that from conda forge.

Jvanschoubroeck commented 5 years ago

I removed metis and installed it from conda forge and ipopt now works. Thank you!