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

qldpc does not support python version 3.13 #177

Open
perlinm opened this issue Jan 10, 2025 · 4 comments
Open

qldpc does not support python version 3.13 #177

perlinm opened this issue Jan 10, 2025 · 4 comments

Comments

@perlinm
Copy link
Collaborator

perlinm commented Jan 10, 2025

No description provided.

@qodesign
Copy link

attached is the error log when installing under python=3.13.1
error.txt

@perlinm
Copy link
Collaborator Author

perlinm commented Jan 10, 2025

Looks like the issue is that Gurobi does not yet support python 3.13. Gurobi is an optional dependency of qldpc. I wonder whether there's a way to make it so that this dependency is ignored if Gubori cannot be found...

@qodesign
Copy link

everything seems to be working fine with older versions of python...3.13 support is not at all critical to me at this point so might as well wait for support for 3.13 by other packages becomes mature

@perlinm
Copy link
Collaborator Author

perlinm commented Jan 10, 2025

Looks like the gurobi issue can be fixed with

gurobipy = { version = ">=10.0.0", optional = true, markers = "python_version < '3.13'" }

in pyproject.toml, but then I get a new error. It looks like numba does not support python 3.13:

$ pip install -e .
...
 Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
          exec(compile('''
          ~~~~^^^^^^^^^^^^
          # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          ...<31 lines>...
          exec(compile(setup_py_code, filename, "exec"))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          ''' % ('/private/var/folders/0k/q1qr0_2s4sg1vqdjwmw__m5m0000gp/T/pip-install-sl51pehm/numba_890de1f7f50f45c596c0cd89a90e864c/setup.py',), "<pip-setuptools-caller>", "exec"))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/0k/q1qr0_2s4sg1vqdjwmw__m5m0000gp/T/pip-install-sl51pehm/numba_890de1f7f50f45c596c0cd89a90e864c/setup.py", line 51, in <module>
          _guard_py_ver()
          ~~~~~~~~~~~~~^^
        File "/private/var/folders/0k/q1qr0_2s4sg1vqdjwmw__m5m0000gp/T/pip-install-sl51pehm/numba_890de1f7f50f45c596c0cd89a90e864c/setup.py", line 48, in _guard_py_ver
          raise RuntimeError(msg.format(cur_py, min_py, max_py))
      RuntimeError: Cannot install on Python version 3.13.1; only versions >=3.9,<3.13 are supported.
      [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.

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

No branches or pull requests

2 participants