Comments (4)
You can build a wheel locally with source code that works on your machine (if you have all the dependencies installed). It may not be portable to other machines.
from cyipopt.
Changed to yum install -y openblas-devel
, which works.
from cyipopt.
It seems to build on py 3.11 and py 3.10 but pip and wheel don't seem to be installed for python 3.9:
Processing /tmp/cyipopt
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [49 lines of output]
<string>:27: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
WARNING: The wheel package is not available.
/opt/_internal/cpython-3.9.18/bin/python: No module named pip
Traceback (most recent call last):
File "/tmp/pip-build-env-3xhumvy9/overlay/lib/python3.9/site-packages/setuptools/installer.py", line 101, in _fetch_build_egg_no_warn
subprocess.check_call(cmd)
File "/opt/_internal/cpython-3.9.18/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/opt/_internal/cpython-3.9.18/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmptxze3_6y', '--quiet', 'numpy>=1.21.5']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/_internal/cpython-3.9.18/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/opt/_internal/cpython-3.9.18/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/opt/_internal/cpython-3.9.18/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-3xhumvy9/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-3xhumvy9/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-3xhumvy9/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 27, in <module>
File "/tmp/pip-build-env-3xhumvy9/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 662, in fetch_build_eggs
return _fetch_build_eggs(self, requires)
File "/tmp/pip-build-env-3xhumvy9/overlay/lib/python3.9/site-packages/setuptools/installer.py", line 38, in _fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/tmp/pip-build-env-3xhumvy9/overlay/lib/python3.9/site-packages/pkg_resources/__init__.py", line 829, in resolve
dist = self._resolve_dist(
File "/tmp/pip-build-env-3xhumvy9/overlay/lib/python3.9/site-packages/pkg_resources/__init__.py", line 865, in _resolve_dist
dist = best[req.key] = env.best_match(
File "/tmp/pip-build-env-3xhumvy9/overlay/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1135, in best_match
return self.obtain(req, installer)
File "/tmp/pip-build-env-3xhumvy9/overlay/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1147, in obtain
return installer(requirement)
File "/tmp/pip-build-env-3xhumvy9/overlay/lib/python3.9/site-packages/setuptools/installer.py", line 103, in _fetch_build_egg_no_warn
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/opt/_internal/cpython-3.9.18/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmptxze3_6y', '--quiet', 'numpy>=1.21.5']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
from cyipopt.
Is there a build environment solution to this issue I could apply locally for python version lower than 3.10, without changing the source code?
from cyipopt.
Related Issues (20)
- Maintenance status of cyipopt HOT 4
- Is the linear solver in cyipopt MUMPS? HOT 1
- When installing on Windows without the Ipopt dir env var set, it does not look for the files adjacent to setup.py HOT 1
- setuptools warning: Package 'cyipopt.cython' is absent from the `packages` configuration. HOT 3
- ENH: support `keep_feasible=True` like `scipy.optimize.minimize` with `method='trust-constr'`? HOT 2
- Cyipopt gives weird solution on simple optimization problem HOT 3
- is it possible to include ma27 and spral in conda? HOT 12
- `print_level` doesn't seem to work correctly for `minimize_ipopt` HOT 3
- minimize_ipopt raises TypeError for `tol` argument HOT 4
- Arch-dependent failures of test_minimize_ipopt_jac_with_scipy_methods[cobyla] HOT 6
- Flaky failure of TestSLSQP::test_minimize_unbounded_approximated on x86_64 HOT 2
- Add secondary licenses? HOT 2
- Missing cyipopt executable with conda osx-arm64 HOT 5
- Returning `False` from `intermediate` no longer halts ipopt HOT 6
- Ubuntu 22.04 - libipopt.so.3 wrong location HOT 8
- Whether integer or discrete variables are supported HOT 2
- Changes for the upcoming NumPy 2.0 HOT 1
- SciPy 1.13 breaks something with sparse matrices HOT 7
- SyntaxWarning in Python 3.12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyipopt.