8000 Added OSError to handle pkg-config not finding ipopt. by moorepants · Pull Request #57 · mechmotum/cyipopt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added OSError to handle pkg-config not finding ipopt. #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 24, 2020

Conversation

moorepants
Copy link
Collaborator
@moorepants moorepants commented Mar 24, 2020

Tested locally:

moorepants@agni:~/src/cyipopt$ python setup.py 
Package ipopt was not found in the pkg-config search path.
Perhaps you should add the directory containing `ipopt.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ipopt' found
Traceback (most recent call last):
  File "setup.py", line 101, in <module>
    **pkgconfig('ipopt'))]
  File "setup.py", line 57, in pkgconfig
    raise OSError(msg.format(list(packages)))
OSError: pkg-config was not able to find any of the requested packages (['ipopt']) on your system. Make sure pkg-config can discover the .pc files associated with the installed packages.

@moorepants moorepants mentioned this pull request Mar 24, 2020
@moorepants
Copy link
Collaborator Author

Getting this conda error on the 3.5 build:

%PYTHON%\\Scripts\\conda.exe install --yes numpy cython future six setuptools sphinx numpydoc mkl
Solving environment: ...working... done
==> WARNING: A newer version of conda exists. <==
  current version: 4.5.11
  latest version: 4.8.3
Please update conda by running
    $ conda update -n base -c defaults conda
certifi-2018.8.24    | 139 KB    | ########## | 100% 
sphinxcontrib-qthelp | 25 KB     | ########## | 100% 
libflang-5.0.0       | 519 KB    | ########## | 100% 
numpydoc-0.9.2       | 29 KB     | ########## | 100% 
blas-1.1             | 1 KB      | ########## | 100% 
sphinx-2.4.4         | 1.4 MB    | ########## | 100% 
numpy-1.15.2         | 4.5 MB    | ########## | 100% 
babel-2.8.0          | 6.0 MB    | ########## | 100% 
mkl-2020.0           | 156.1 MB  | ########## | 100% 
openmp-5.0.0         | 577 KB    | ########## | 100% 
snowballstemmer-2.0. | 55 KB     | ########## | 100% 
future-0.16.0        | 702 KB    | ########## | 100% 
sphinxcontrib-appleh | 28 KB     | ########## | 100% 
markupsafe-1.0       | 27 KB     | ########## | 100% 
pygments-2.6.1       | 683 KB    | ########## | 100% 
pytz-2019.3          | 237 KB    | ########## | 100% 
sphinxcontrib-htmlhe | 27 KB     | ########## | 100% 
conda-4.5.11         | 665 KB    | ########## | 100% 
sphinxcontrib-jsmath | 7 KB      | ########## | 100% 
openblas-0.2.20      | 5.7 MB    | ########## | 100% 
jinja2-2.11.1        | 94 KB     | ########## | 100% 
setuptools-40.4.3    | 597 KB    | ########## | 100% 
intel-openmp-2020.0  | 1.9 MB    | ########## | 100% 
openssl-1.0.2u       | 5.4 MB    | ########## | 100% 
docutils-0.14        | 713 KB    | ########## | 100% 
sphinxcontrib-serial | 24 KB     | ########## | 100% 
ca-certificates-2019 | 182 KB    | ########## | 100% 
llvm-meta-5.0.0      | 3 KB      | ########## | 100% 
sphinxcontrib-devhel | 22 KB     | ########## | 100% 
imagesize-1.2.0      | 8 KB      | ########## | 100% 
vc-14                | 5 KB      | ########## | 100% 
alabaster-0.7.12     | 15 KB     | ########## | 100% 
six-1.14.0           | 13 KB     | ########## | 100% 
cython-0.28.5        | 2.7 MB    | ########## | 100% 
## Package Plan ##
  environment location: C:\Miniconda35-x64
  added / updated specs: 
    - cython
    - future
    - mkl
    - numpy
    - numpydoc
    - setuptools
    - six
    - sphinx
The following packages will be downloaded:
    package                    |            build
    ---------------------------|-----------------
    certifi-2018.8.24          |        py35_1001         139 KB  conda-forge
    sphinxcontrib-qthelp-1.0.3 |             py_0          25 KB  conda-forge
    libflang-5.0.0             |h6538335_20180525         519 KB  conda-forge
    numpydoc-0.9.2             |             py_0          29 KB  conda-forge
    blas-1.1                   |         openblas           1 KB  conda-forge
    sphinx-2.4.4               |             py_0         1.4 MB  conda-forge
    numpy-1.15.2               |py35_blas_openblash8d851b4_0         4.5 MB  conda-forge
    babel-2.8.0                |             py_0         6.0 MB  conda-forge
    mkl-2020.0                 |              166       156.1 MB
    openmp-5.0.0               |           vc14_1         577 KB  conda-forge
    snowballstemmer-2.0.0      |             py_0          55 KB  conda-forge
    future-0.16.0              |           py35_2         702 KB  conda-forge
    sphinxcontrib-applehelp-1.0.2|             py_0          28 KB  conda-forge
    markupsafe-1.0             |   py35hfa6e2cd_1          27 KB  conda-forge
    pygments-2.6.1             |             py_0         683 KB  conda-forge
    pytz-2019.3                |             py_0         237 KB  conda-forge
    sphinxcontrib-htmlhelp-1.0.3|             py_0          27 KB  conda-forge
    conda-4.5.11               |           py35_0         665 KB  conda-forge
    sphinxcontrib-jsmath-1.0.1 |             py_0           7 KB  conda-forge
    openblas-0.2.20            |           vc14_8         5.7 MB  conda-forge
    jinja2-2.11.1              |             py_0          94 KB  conda-forge
    setuptools-40.4.3          |           py35_0         597 KB  conda-forge
    intel-openmp-2020.0        |              166         1.9 MB
    openssl-1.0.2u             |       hfa6e2cd_0         5.4 MB  conda-forge
    docutils-0.14              |           py35_1         713 KB  conda-forge
    sphinxcontrib-serializinghtml-1.1.4|             py_0          24 KB  conda-forge
    ca-certificates-2019.11.28 |       hecc5488_0         182 KB  conda-forge
    llvm-meta-5.0.0            |                0           3 KB  conda-forge
    sphinxcontrib-devhelp-1.0.2|             py_0          22 KB  conda-forge
    imagesize-1.2.0            |             py_0           8 KB  conda-forge
    vc-14                      |      h21ff451_11           5 KB
    alabaster-0.7.12           |             py_0          15 KB  conda-forge
    six-1.14.0                 |             py_1          13 KB  conda-forge
    cython-0.28.5              |   py35h6538335_0         2.7 MB  conda-forge
    ------------------------------------------------------------
                                           Total:       189.0 MB
The following NEW packages will be INSTALLED:
    alabaster:                     0.7.12-py_0                         conda-forge
    babel:                         2.8.0-py_0                          conda-forge
    blas:                          1.1-openblas                        conda-forge
    cython:                        0.28.5-py35h6538335_0               conda-forge
    docutils:                      0.14-py35_1                         conda-forge
    future:                        0.16.0-py35_2                       conda-forge
    imagesize:                     1.2.0-py_0                          conda-forge
    intel-openmp:                  2020.0-166                                     
    jinja2:                        2.11.1-py_0                         conda-forge
    libflang:                      5.0.0-h6538335_20180525             conda-forge
    llvm-meta:                     5.0.0-0                             conda-forge
    markupsafe:                    1.0-py35hfa6e2cd_1                  conda-forge
    mkl:                           2020.0-166                                     
    numpy:                         1.15.2-py35_blas_openblash8d851b4_0 conda-forge [blas_openblas]
    numpydoc:                      0.9.2-py_0                          conda-forge
    openblas:                      0.2.20-vc14_8                       conda-forge
    openmp:                        5.0.0-vc14_1                        conda-forge
    pygments:                      2.6.1-py_0                          conda-forge
    pytz:                          2019.3-py_0                         conda-forge
    snowballstemmer:               2.0.0-py_0                          conda-forge
    sphinx:                        2.4.4-py_0                          conda-forge
    sphinxcontrib-applehelp:       1.0.2-py_0                          conda-forge
    sphinxcontrib-devhelp:         1.0.2-py_0                          conda-forge
    sphinxcontrib-htmlhelp:        1.0.3-py_0                          conda-forge
    sphinxcontrib-jsmath:          1.0.1-py_0                          conda-forge
    sphinxcontrib-qthelp:          1.0.3-py_0                          conda-forge
    sphinxcontrib-serializinghtml: 1.1.4-py_0                          conda-forge
The following packages will be UPDATED:
    certifi:                       2018.8.24-py35_1                                --> 2018.8.24-py35_1001   conda-forge
    conda:                         4.5.11-py35_0                                   --> 4.5.11-py35_0         conda-forge
    openssl:                       1.0.2u-he774522_0                               --> 1.0.2u-hfa6e2cd_0     conda-forge
    setuptools:                    40.2.0-py35_0                                   --> 40.4.3-py35_0         conda-forge
    six:                           1.11.0-py35_1                                   --> 1.14.0-py_1           conda-forge
The following packages will be DOWNGRADED:
    ca-certificates:               2020.1.1-0                                      --> 2019.11.28-hecc5488_0 conda-forge
    vc:                            14.1-h0510ff6_4                                 --> 14-h21ff451_11                   
Downloading and Extracting Packages
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... failed
ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::pygments-2.6.1-py_0'.
CondaError: Cannot link a source that does not exist. C:\Miniconda35-x64\Scripts\conda.exe
Running `conda clean --packages` may resolve your problem.
Attempting to roll back.
Rolling back transaction: ...working... done
CondaError: Cannot link a source that does not exist. C:\Miniconda35-x64\Scripts\conda.exe
Running `conda clean --packages` may resolve your problem.
Command exited with code 1

This is an open issue conda/conda#7713

@moorepants
Copy link
Collaborator Author

Dropping Python 3.5 to solve this.

@moorepants moorepants merged commit 97d92f9 into mechmotum:master Mar 24, 2020
@moorepants moorepants deleted the pkg-config-error-handling branch March 24, 2020 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0