Skip to content
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

python3.12.0 compatibility #95

Closed
jowodo opened this issue Nov 3, 2023 · 3 comments
Closed

python3.12.0 compatibility #95

jowodo opened this issue Nov 3, 2023 · 3 comments
Labels

Comments

@jowodo
Copy link

jowodo commented Nov 3, 2023

When I want to install swiglpk into python 3.12.0, I get these errors:

Collecting swiglpk>=5.0.8 (from -r freeze3.12.0 (line 393))
  Using cached swiglpk-5.0.8.tar.gz (21 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  _ python setup.py egg_info did not run successfully.
  _ exit code: 1
  __> [28 lines of output]
      /tmp/pip-install-0mkifbyp/swiglpk_ac7d04677ff14906b252f9cdb9631c4d/versioneer.py:467: SyntaxWarning: invalid escape sequence '\s'
        LONG_VERSION_PY['git'] = '''
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-0mkifbyp/swiglpk_ac7d04677ff14906b252f9cdb9631c4d/setup.py", line 17$, in <module>
          version=versioneer.get_version(),
                  ^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-install-0mkifbyp/swiglpk_ac7d04677ff14906b252f9cdb9631c4d/versioneer.py", li$e 1405, in get_version
          return get_versions()["version"]
                 ^^^^^^^^^^^^^^
        File "/tmp/pip-install-0mkifbyp/swiglpk_ac7d04677ff14906b252f9cdb9631c4d/versioneer.py", li$e 1339, in get_versions
          cfg = get_config_from_root(root)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-install-0mkifbyp/swiglpk_ac7d04677ff14906b252f9cdb9631c4d/versioneer.py", li$e 399, in get_config_from_root
          parser = configparser.SafeConfigParser()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'Raw$onfigParser'?
      ==============================
      BUILDING SWIGLPK FROM SOURCE.
      If you are installing SWIGLPK via pip, this means that no wheels are offered for your platfor$ or Python version yet.
      This can be the case if you adopt a new Python version early.
      A source build requires GLPK, SWIG, and GMP (Linux/Mac) to be installed!
      ==============================
      Looking for glpk.h...
      Found glpk.h in /usr/include.
      Making sure SWIG is available...
      Found the swig executable.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

_ Encountered error while generating package metadata.
__> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I'm on a OracleServer 8.8 kernel 4.18.0-477.27.1.el8_8.x86_64. I am happy to test and provide further information.

@cdiener
Copy link
Member

cdiener commented Nov 3, 2023

Hi, sorry and thanks for bringing this to our attention. Looks like the PyPI authentication in the CI is broken and new wheels are not getting uploaded. While we fix this, you can download the wheels for version 5.0.9 (includes Python 12) from here by downloading the wheels artifact on the bottom and installing the relevant one for your platform.

@cdiener cdiener added the bug label Nov 3, 2023
@jowodo
Copy link
Author

jowodo commented Nov 10, 2023

Hi, thanks for explaining the bug! I will wait for the official method to work again.

@cdiener
Copy link
Member

cdiener commented Nov 10, 2023

Okay should be fixed now in version 5.0.10. Wheels are available on PyPI.

@cdiener cdiener closed this as completed Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants