Giter Club home page Giter Club logo

Comments (4)

Viech avatar Viech commented on June 12, 2024

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.

Viech avatar Viech commented on June 12, 2024

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.

Viech avatar Viech commented on June 12, 2024

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.

carrascomj avatar carrascomj commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.