Comments (4)
With my AUR package, I get a different error message since upgrading to Python 3.9:
Exception: Could not find glpk.h! Maybe glpk or glpsol is not installed.
This is with glpk 4.65 installed and /usr/include/glpk.h
is present. The same PKGBUILD (which is doing essentially just python setup.py install --root="${pkgdir}" --optimize=1
) worked fine with Python 3.8.
from swiglpk.
I can also confirm that it does not install via pip, even if GLPK is installed locally. The error is as follows:
% pip install --user swiglpk
Collecting swiglpk
Using cached swiglpk-4.65.1.tar.gz (30 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5ne4an67/swiglpk/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5ne4an67/swiglpk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-krgimqx0
cwd: /tmp/pip-install-5ne4an67/swiglpk/
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-5ne4an67/swiglpk/setup.py", line 53, in <module>
copy_glpk_header()
File "/tmp/pip-install-5ne4an67/swiglpk/setup.py", line 44, in copy_glpk_header
raise Exception('Could not find glpk.h! Maybe glpk or glpsol is not installed.')
Exception: Could not find glpk.h! Maybe glpk or glpsol is not installed.
Trying to determine glpk.h location
glpk.h found at /include/glpk.h
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
from swiglpk.
I had some time to look into this further and my issue is in fact different from the one reported by @mcampodonico (i.e. #36). Both issues appear to be caused by the fact that no wheels are provided yet so that setupy.py install
is used by pip
. In #36, it looks like all that is missing is swig
(unable to execute 'swig': No such file or directory
), so @mcampodonico should be able to work around their issue by installing swig
. Maybe swiglpk
can somehow list swig
as a build dependency so that a more meaningful error is produced.
For my problem I'll open another issue.
from swiglpk.
swiglpk 5.0.0 now works in python3.9. Please note that the macosx wheels are not there yet due to problems with deployment.
from swiglpk.
Related Issues (20)
- swiglpk wheels should probably be compiled with GMP support (at least for OS X and Linux) HOT 2
- Set up automatic swiglpk releases that follow the GLPK version numbers HOT 2
- Create benchmarks for swiglpk and decide on a C interface
- memory allocated with `as_intArray` and `as_doubleArray` is never freed HOT 8
- Create wheels for python 3.7 HOT 2
- Mac support trouble
- pip install fails with Python 3.8.0 HOT 3
- setup.py fails to locate an existing glpk.h in /usr/include. HOT 3
- Support GLPK 5.0. HOT 4
- Update CI/CD and create a release that supports Python 3.9+ HOT 4
- Remove Python 2 support
- fails to install in python 3.10 HOT 4
- Is possible build CBC from pure python? HOT 1
- Drop i686? HOT 1
- Potential vulnerability in the C library which swiglpk depends on. Can you help upgrade to patch versions? HOT 1
- Missing SDist for 5.0.x release (x!=0) HOT 2
- Can't install swiglpk/cobrapy in Docker image HOT 4
- Should we limit builds to maintained Python versions only? HOT 1
- python3.12.0 compatibility HOT 3
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 swiglpk.