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

Support for python 3.10 #64

Closed
sshankar619 opened this issue Feb 6, 2023 · 10 comments
Closed

Support for python 3.10 #64

sshankar619 opened this issue Feb 6, 2023 · 10 comments

Comments

@sshankar619
Copy link

pip install fails for python 3.10
Is python 3.10 supported?

why 3.10 is not supported in docker file

RUN rm -rd /opt/python/cp310-cp310

Can wheel file be provided for python 3.10

@kylebgorman
Copy link
Owner

I'll test it on next release. It wasn't working out of the box and I didn't feel like debugging at the time.

You can always just use Conda instead: it supports Python 3.7-3.10 on MacOS (x86 and the new ARM family), Windows, and Linux (x86).

In contrast, the Dockerfile just generates an alternative wheel for Linux x86_64.

Finally, you can edit and run the Dockerfile yourself if you absolutely need Python 3.10 + Linux + x86_64 support but can't use Conda.

@gayu-thri
Copy link

Do we have any update on this?

I have got a similar requirement of higher Python version support for 3.11.

For this case, I understand we can use Conda, but if it could be provided as a pip package for Python 3.11, that would be great as one of the projects I'm working on requires Pynini and it is a poetry-based project with PyPI configured as the default package source, and the existing dependencies are also mostly pip packages.​

@kylebgorman
Copy link
Owner

kylebgorman commented Mar 16, 2023 via email

@gayu-thri
Copy link

gayu-thri commented Mar 28, 2023

I tried building wheels using the Dockerfile by commenting the below line.

RUN rm -rd /opt/python/cp310-cp310

  • For pynini 2.1.5, the tests seems to be running fine in both python 3.10 and 3.11.
  • For pynini 2.1.4, it looks like some tests are failing with some errors like failing to compile a string as shared in the image. Tests failed mostly under Python 3.10.10 and 3.11.2 versions.

image

However, when I try to install the respective generated cp wheel file (Ex: pynini-2.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl) for Python 3.10 and 3.11 (for both 2.1.5 and 2.1.4 pynini) in an environment and test working of pynini, it's working fine. The latest version of pynini in pypi also has only the cp wheel file for Python 3.9 and it's working.

If cp wheel files are usable, would it be okay for us to have this support for 3.10 and 3.11 as well? Please let me know otherwise if I am missing something here.

@kylebgorman
Copy link
Owner

Okay, I will try to generate the manylinux wheel for Pynini 2.1.5 on Python 3.10 and Python 3.11. May need some time to get it done.

I am not really interested in maintaining Pynini 2.1.4, which is quite out of date now.

I think you may be misreading the test output there: at the bottom it says all 146 tests passed. Some tests deliberately raise error messages and catch the resulting exceptions, but that doesn't mean the test failed...

@gayu-thri
Copy link

I think you may be misreading the test output there: at the bottom it says all 146 tests passed. Some tests deliberately raise error messages and catch the resulting exceptions, but that doesn't mean the test failed...

Thanks for clarifying. If I understand correctly, those tests are some kind of negative testing and hence raising errors.

Okay, I will try to generate the manylinux wheel for Pynini 2.1.5 on Python 3.10 and Python 3.11. May need some time to get it done.

Sure. That shouldn't be a problem, please try it at your earliest convenience.

@kylebgorman
Copy link
Owner

I just uploaded the cp310 (CPython 3.10) x86_64 manylinux wheel for Pynini 2.1.5. I'll support Python 3.10 on the next release too. The dockerfile setup we have now doesn't seem to pull in Python 3.11 so that may be some additional work in the future.

@gayu-thri
Copy link

The dockerfile setup we have now doesn't seem to pull in Python 3.11 so that may be some additional work in the future.

Just wanted to clarify on this point.

When I was trying to generate wheel files using the Dockerfile, I was able to get Python 3.11 pulled (cp311) and the above message that I shared earlier stating that it's working fine in Python 3.11 also was by making use of this wheel file.

image

@kylebgorman
Copy link
Owner

kylebgorman commented Apr 5, 2023 via email

@gayu-thri
Copy link

I have opened a new issue #65 and replied there (#65 (comment)), we could have the further discussion there as this issue is already closed and is pertaining to Python 3.10 support.

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

3 participants