-
-
Notifications
You must be signed in to change notification settings - Fork 29.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
Python 3.11.0 ssl module configuration error on macOS #98673
Comments
I had the same problem building the code base of python 3.8.6 and also 3.8.10 on Rocky8. I traced it down and found out that the ssl module got built successfully; however, the problem was that the Python Setup.py script excluded installation of the _ssl module because it did not pass an import test. Part of the issue is that python setup.py script relied on the environment variable OPENSSL_LDFLAGS, which was not defined if openssl was installed in the default system config. I fixed this issue by applying this patch, please review and give feedback.
|
@tpham3783 Interesting thanks, I'll try this out and will post an update |
Note that the latest version of pkg-config (0.29.2) does not contain an option |
I see:
|
I am using pkgconfig version 1.4.2 on Rocky-8. and you are right, my Ubuntu-20.04 has version 0.29.1; it doesn't have that option. |
I am not familiar with Rocky-8. Is there is a modified version of pkg-config? |
Rocky-8 is a linux distribution similar to RedHat and Centos. |
No, I am not having an issue with Python-3.11.0. My concern is that is that we need to be careful if we pass platform specific options to pkg-config. |
As stated earlier, the root cause of the bug was from setup.py not being able to verify the ssl module even though it was built successfully. You can test to see if you ran into the same bug with the small patch below. Again, I am just sharing how I fixed it.
|
Okay. I do have openssl 3.0 present in my build of Python-3.11.0. |
Passing these variables to
Python 3.11.0 installed successfully! 🚀 |
Bug report
Hi, I'm having trouble getting the
configure
script to correctly detect OpenSSL for the ssl module, specifically on macOS with Python 3.11.0. Configuration of the ssl module works on Linux, with the same set of isolated dependencies. For reference, this same install script works correctly for 3.10.8.See relevant code here:
https://github.com/acidgenomics/koopa/blob/6695aac42553dadac2f75668852d318159edd3b5/lang/shell/bash/include/install/common/shared/python.sh
The configuration looks correct in the generated
Makefile.pre
file:I'm seeing these OpenSSL-related issues during configuration:
Digging into the
configure
code, it looks like these lines are relevant to the breaking changes I'm observing:Your environment
I can provide additional log files or code if that will help debug the issue further.
Best,
Mike
The text was updated successfully, but these errors were encountered: