-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 python3.11 #810
Comments
Binary wheel packages are now built with github actions (actions/setup-python@v3), which don't support python3.11 now. When running pip on 3.11, binary packages are built from source. If you have the proper build environment on Ubuntu, this fallback build will work, but otherwise, e.g., WIndows, it will likely not work as is. You might want to build the wheel packages manually. There is an instruction page. |
@taku910 I get a file not found error but
|
string_view support (C++17 or later) is required to build sentencepiece. |
so I've upgraded the build environment (actually removed mingw and used cygwin) and managed to build sentencepiece but the output is:
Note there is no |
Looking at the latest build wheels workflow it looks like it is already using python 3.11. Looks like there just needs to be a new release for pip. |
As far as I can tell, while 3.11 is used, only 3.6 to 3.10 wheels are built. |
Got it. It looks like cibuildwheel package needs to be updated to support 3.11 |
I created a PR to update cibuildwheel: #819 |
The lastest CI build succeeded: https://github.com/google/sentencepiece/actions/runs/4228494807 @taku910 Do you know when the next release is planned to upload to pypi? |
@juliusfrost the package won't build because of error: "Cannot open include file: 'sentencepiece_processor.h'" python 3.11 on win11 :( |
@billkiddo I was able to build on windows.
|
can we please get a pypi release of sentencepiece with 3.11 / Windows ? |
Looks like GH runners support 3.11 now: We've got a project blocked on this not existing as well. EDIT: Sorry, I missed #810 (comment) previously. Looks like that's known to be resolved. |
I had a similar problem with building a docker image and running |
I can confirm that the master branch works with python 3.11 |
Thanks @ZeroBomb this bit was the last piece of the puzzle to finally be able to install sentencepiece |
I built sentencepiece on windows 11 for python 3.11 and created a pre-compiled whl file for version 0.1.98. |
You legend. This fixed it. Thanks! |
Awesome, this saved me a lot of trouble! Thanks! |
Still does not build on MinGW (x64) |
i got this error
|
The first error occurs because the specified Python package file cannot be found. Please check if the current working directory is pointing to the location where the downloaded and extracted .whl file is located. The second error may be due to an incompatible system. This .whl file is only supported on Windows x64 systems, and cannot be used on MacOS or Linux. You may need to build it by yourself. |
After hours of trying to get this installed, this is what worked for me on Windows 10, thanks a lot! |
Fixed in v0.1.98 |
Win10. Solved it with python 11.6. Refer : #945 |
Any idea when the support for python3.11 will be out?
The text was updated successfully, but these errors were encountered: