-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Python 3.10 configure error #12045
Comments
edit: Hm, I may have been looking at the wrong conditional, nevermind, I'll wait and get back to you when I have a working fix. |
On my git master clone (7457b02), on Ubuntu 21.04, with Python 3.10.0a7-3, invoked by ./configure --enable-pyzfs --with-python=`which python3.10` the check you're lamenting correctly reports 3.10. (A later check fails, but that's not your current problem.) Can you share what |
Here you go: |
That log seems to be spitting out the message I'm working on #12073 to solve, not the one you opened this bug about? |
It seems like I copied the same text twice in my initial comment, I updated the second one now. Sorry for that |
Okay, well, if you want, you can grab my PR in #12073 in the meantime to get this working with git master for you. I'll take a look at why 2.1-rc5 is behaving differently when I get a second, because I'm pretty sure the logic it should be using hasn't changed in years at this point. |
@rincebrain your patch does not fix the issue. Configuration fails because https://github.com/openzfs/zfs/blob/master/config/ax_python_devel.m4#L227 relies on '.'.join(sys.version.split('.')[:2]) Making this change in |
(Nit: not automake, but autoconf-archive). |
Huh. I swear I did test that this not only ran but that the check succeeded. Wonder where I went wrong. I'll go look. |
...what environment are you on that you got to that codepath? Because on my Fedora Rawhide system, for example, that codepath doesn't get hit. |
The issue is the version of the automake package that pulls this macro. Apparently this is fixed in v1.16.4 (not sure about 1.16.3). The package I'm using, in Void, is 1.16.2. Looks like I can couple an automake update with py3.10 and resolve this problem. |
There was a fallback case I overlooked in the initial patch, with a similarly imperfect version extractor. Closes: openzfs#12045 Signed-off-by: Rich Ercolani <[email protected]>
There was a fallback case I overlooked in the initial patch, with a similarly imperfect version extractor. Closes: openzfs#12045 Signed-off-by: Rich Ercolani <[email protected]>
There was a fallback case I overlooked in the initial patch, with a similarly imperfect version extractor. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rich Ercolani <[email protected]> Closes openzfs#12045 Closes openzfs#12673
There was a fallback case I overlooked in the initial patch, with a similarly imperfect version extractor. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rich Ercolani <[email protected]> Closes #12045 Closes #12673
@ahesford : Hi, I have still the problem of wrong detection of the installed python version on my host. I tried zfs version 2.1.9, I installed python-3.11 on my system. Do you have any suggestions what I can do, to solve this python version problem? Update: |
All works well after changing the line: am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` to: am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:4])"` in If your python version is >= 3.10, you can try this. |
Hello,
I was trying to build ZFS 2.1.0_rc5 on Gentoo with Python 3.10 installed but configure detects it as <= Python 3.4. When running configure through the ebuild, I get the following:
So it somehow turns 3.10 into 3.1. If I clone the repo and run configure there, it prints 3.10 but the check for >= '3.4.0' still prints no:
The text was updated successfully, but these errors were encountered: