DessimozLab / OMArk

GNU Lesser General Public License v3.0
53 stars 6 forks source link

Support python >3.11 #12

Open vkkodali opened 1 year ago

vkkodali commented 1 year ago

I am getting the following error when I try to install using the PyPI package:

$ pip install omark
...
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-7w1t_vv2/numba_98834001f5d44d129c594eaf45126ad3/setup.py", line 51, in <module>
          _guard_py_ver()
        File "/tmp/pip-install-7w1t_vv2/numba_98834001f5d44d129c594eaf45126ad3/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.11.2; only versions >=3.7,<3.11 are supported.
      [end of output]

Is there anything specific that requires the python version to be <3.11? Can the requirements be amended to include python versions above 3.11 as well?

YanNevers commented 1 year ago

Hello @vkkodali.

It appears this is due to Numba, a dependency of OMAmer, not being yet compatible with Python 3.11. It should be fixed with the release of the version 0.57 of Numba. (see https://github.com/numba/numba/issues/8304 for more details). Unfortunately, we can't amend this requirement since it inherited from a dependency. However, we will keep this issue open until the release of Numba 0.57, which is expected to be happen soon. In the meantime, we recommend using OMArk with earlier versions of Python.

vkkodali commented 1 year ago

Thank you @YanNevers For now, I am able to use python 3.9.16.

YanNevers commented 10 months ago

Now compatible with Python 3.11. Compatibility issue with Python 3.12 for the same reasons.