-
-
Notifications
You must be signed in to change notification settings - Fork 855
Updating brew install command to avoid p 8000 kg-config warning #891
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
Merged
Merged
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Allowing build of additional modules
I was getting the following message: $ The necessary bits to build these optional modules were not found: _hashlib _ssl Updating the command line with: $ brew install openssl@1.1 resolved the issue.
- Loading branch information
commit 0c8cea46a891db644361b7897360f7b13a703f7a
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which version of
openssl
gets installed if you don't specify the version number?The error you mentioned in the issue says
Python requires a OpenSSL 1.1.1 or newer
and it seems odd to me that it would install an older version by default and require a pinned version to get a newer release. I wonder if that error is wrong 🤔Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ezio-melotti that is a very good point. I uninstalled openssl
brew uninstall openssl
, and verified that I would get the same message when compiling:as well as
I then ran
brew install openssl
. This time it worked, it installs openSSL@3 the latest version. The message above didn’t show. I am sure though (I can still see it on the terminal), that installing openssl the first time, and following the instructions, lead to the message above. I believe that even though I uninstalled openssl, the uninstallation didn't remove all the files that were created when installing openssl1.1. I am therefore making this pull request purely about the warning issue and not the ssl module. I updated the related issue accordingly. If you think it is not out of the scope of the documentation, I will create a new issue and pull request, updating the documentation by adding a note saying that user might need to specify the latest version of openssl to be able to build the ssl module successfully. Let me know what you think.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you check which version of
openssl
gets installed by default (you can useopenssl version
to check)? FWIW on Linux I haveOpenSSL 3.0.2 15 Mar 2022
(1.1.1
is from 2018-09-11 and3.0.0
from 2021-09-07).You could also try to run
make clean
ormake distclean
and then run./configure
andmake
again to start fresh and see if anything changes.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python/cpython#91357 (comment) might also be relevant -- maybe you were missing the
libssl-dev
package before? (cc @tiran)Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ezio-melotti It might be related but I have no quick way to check for sure now that I can't reproduce my issue in the first place!
libssl-dev
appears nowhere in my terminal. If I do a search on my laptop, I can findlibssl.1.1.dylib
andlibssl.3.dylib
but they were created a month ago, so not related. I am usingbrew
and notpip
so the part of the documentation that needs updating would be different in any case.Once this PR is committed I will create a new issue and PR as I suggested. And yes, I did run
make clean
and./configure
beforemake
for each of my attempts. Thanks for suggesting it.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ezio-melotti regarding the
openssl version
, it returnsLibreSSL 2.8.3
. This is why I believe the documentation says to run./configure --with-pydebug --with-openssl=$(brew --prefix openssl)
.If I run
brew info openssl
, I get: