[ad_1]
I’ll must ask my query within the type of elevating a problem on the pyenv github subject tracker at this level however I determine it’s price placing this right here to hyperlink to and monitor in case anyone finds themselves in my state of affairs sooner or later.
I’ve spent hours studying the problems and options posted right here by others and sadly I haven’t discovered something particularly associated to the issue I’m encountering until you take away pyenv from the equation and manually set up an official python launch, which might then assist you to run the included script titled “Set up Certificates.command”.
When you use pyenv you already know that it’s purported to deal with the identical duties that script performs in the course of the automated set up of a python model. Being that each model of python I set up utilizing pyenv I putting in efficiently and I’m in a position to set my international or native model simply wonderful after it’s put in, I’m of the impression that that is happening, so one thing else should be unsuitable right here.. or pyenv isn’t correctly reporting set up errors for any of the 6-8 official variations of python I’ve had it set up, uninstall, and reinstall a number of instances now.
I’ve principally been centered on having the next 3 variations of python put in in digital environments:
3.10.0
3.9.8
3.8.12
system
Motive being that I’m migrating a number of packages to three.10.0 and updating a number of the ones I am personally engaged on to ensure my required site-packages are all there for every model.
I’ve had no bother engaging in this process underneath Ubuntu 20.04, however underneath MacOS Catalina 10.15.7 I’m unable to make this occur with working outcomes.
I used brew to put in each pyenv and pyenv virtualenv. Each set up with zero errors.
I’ve adopted probably the most present MacOS particular set up directions on the respective github repository web page for every merchandise (pyenv and pyenv-virtual).
I’ve learn by means of the Troubleshooting/FAQ and README’s for every undertaking. I’ve additionally reviewed the pretty conclusive set up information posted right here: https://wilsonmar.github.io/pyenv/
Lastly, I’ve eliminated all variations of python I efficiently put in with pyenv (pyenv uninstall) after which uninstalled pyenv/pyenv-virtual with brew. Reinstalled each openssl@1.1 and openssl@3 (The one two required casks for pyenv and pyenv-virtual, relying on the python model, as of this writing in response to brew)
Even after reinstalling every little thing and looking out over my .bashrc/.zshrc/.bash_profile, it doesn’t matter what I do, I’m unable to do even probably the most staple items that make the most of ssl/certs.
If I exploit the system model of python (2.7.16), the identical issues that fail on my pyenv variations work wonderful.
Right here is an instance of the failure I get on any of the put in python variations I’ve aside from system
catalina10_15_7:~ consumer$ pyenv --version
pyenv 2.2.0
catalina10_15_7:~ consumer$ pyenv virtualenv --version
pyenv-virtualenv 1.1.5 (virtualenv unknown)
catalina10_15_7:~ consumer$ pyenv variations
* system (set by /Customers/consumer/.pyenv/model)
catalina10_15_7:~ consumer$ pyenv set up 3.10.0
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.10.0.tar.xz...
-> https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tar.xz
Putting in Python-3.10.0...
patching file aclocal.m4
patching file configure
Hunk #5 succeeded at 10537 (offset -15 strains).
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
Put in Python-3.10.0 to /Customers/consumer/.pyenv/variations/3.10.0
catalina10_15_7:~ consumer$ pyenv rehash
catalina10_15_7:~ consumer$ pyenv variations
* system (set by /Customers/consumer/.pyenv/model)
3.10.0
catalina10_15_7:~ consumer$ pyenv international 3.10.0
catalina10_15_7:~ consumer$ python --version
Python 3.10.0
catalina10_15_7:~ consumer$ cd dev/somegit
catalina10_15_7:somegit consumer$ ./obtain.py
Traceback (most up-to-date name final):
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/urllib/request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.knowledge, headers,
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/http/consumer.py", line 1276, in request
self._send_request(technique, url, physique, headers, encode_chunked)
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/http/consumer.py", line 1322, in _send_request
self.endheaders(physique, encode_chunked=encode_chunked)
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/http/consumer.py", line 1271, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/http/consumer.py", line 1031, in _send_output
self.ship(msg)
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/http/consumer.py", line 969, in ship
self.join()
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/http/consumer.py", line 1448, in join
self.sock = self._context.wrap_socket(self.sock,
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/ssl.py", line 512, in wrap_socket
return self.sslsocket_class._create(
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/ssl.py", line 1070, in _create
self.do_handshake()
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/ssl.py", line 1341, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificates confirm failed: unable to get native issuer certificates (_ssl.c:997)
Throughout dealing with of the above exception, one other exception occurred:
Traceback (most up-to-date name final):
File "/Customers/consumer/dev/somegit/./obtain.py", line 56, in <module>
r = urlopen(manifest)
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, knowledge, timeout)
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/urllib/request.py", line 519, in open
response = self._open(req, knowledge)
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/urllib/request.py", line 536, in _open
outcome = self._call_chain(self.handle_open, protocol, protocol +
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/urllib/request.py", line 496, in _call_chain
outcome = func(*args)
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/urllib/request.py", line 1391, in https_open
return self.do_open(http.consumer.HTTPSConnection, req,
File "/Customers/consumer/.pyenv/variations/3.10.0/lib/python3.10/urllib/request.py", line 1351, in do_open
elevate URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificates confirm failed: unable to get native issuer certificates (_ssl.c:997)>
catalina10_15_7:somegit consumer$
catalina10_15_7:somegit consumer$
catalina10_15_7:somegit consumer$
catalina10_15_7:somegit consumer$ cat ~/.bashrc
# .bashrc
# PATH
export PATH="$(brew --prefix sqlite)/bin:
$(brew --prefix openssl@1.1)/bin:
$(brew --prefix openssl@3)/bin:
$(brew --prefix bison)/bin:
$HOME/Library/Android/sdk/platform-tools:
$HOME/.pyenv/bin:
$PATH"
# Exports
export PATH="$HOME/Library/Android/sdk/platform-tools:$PATH"
export LDFLAGS="-L/usr/native/decide/openssl@1.1/lib"
export CPPFLAGS="-I/usr/native/decide/openssl@1.1/embody"
export PKG_CONFIG_PATH="/usr/native/decide/openssl@1.1/lib/pkgconfig"
export LDFLAGS="-L/usr/native/decide/openssl@3/lib"
export CPPFLAGS="-I/usr/native/decide/openssl@3/embody"
export LDFLAGS="-L/usr/native/decide/readline/lib"
export CPPFLAGS="-I/usr/native/decide/readline/embody"
export LDFLAGS="-L/usr/native/decide/sqlite/lib"
export CPPFLAGS="-I/usr/native/decide/sqlite/embody"
export LDFLAGS="-L/usr/native/decide/zlib/lib"
export CPPFLAGS="-I/usr/native/decide/zlib/embody"
export LDFLAGS="-L/usr/native/decide/bison/lib"
# pyenv
eval "$(pyenv virtualenv-init -)"
export PYENV_ROOT="$HOME/.pyenv"
# gpip
gpip() {
PIP_REQUIRE_VIRTUALENV=false pip "$@"
}
# Aliases
alias ls="ls -G"
alias ll="ls -laG"
catalina10_15_7:somegit consumer$
catalina10_15_7:somegit consumer$ brew listing
==> Formulae
autoconf dmg2img libidn2 m4 pcre2 readline xz
autossh gettext libunistring ntfs-3g-mac pkg-config sqlite zlib
bash git libusb openjdk pv squashfs zstd
bison gzip lz4 openssl@1.1 pyenv tree
ca-certificates javacc lzo openssl@3 pyenv-virtualenv wget
==> Casks
font-hack-nerd-font
catalina10_15_7:somegit consumer$
[ad_2]
