I solved this by switching to the recommended merged avro 1.10.1 package which supports Python 2 and 3 now vs. using the legacy avro-python package, which is being deprecated.
On Tue, Dec 29, 2020 at 2:18 PM Mark Petronic <[email protected]> wrote: > I am using an Nginx reverse proxy from our production corporate > environment to reach pypi.org. I have been using this setup for years > with no changes. When I try to install avro-python3==1.10.x, I get the > below errors. The dependency of /simple/pycodestyle/ fails. However, I can > manually install that on the same host without error like this: > > pip install --index-url http://devpi.tools.quasar.nadops.net/mpetronic/dev > --trusted-host devpi.tools.quasar.nadops.net --disable-pip-version-check > pycodestyle > > Next, I try to install avro-python3==1.10.1 again and get the same > errors, except this time the failing dependency is isort which I can > manually install that on the same host without error like this: > > pip install --index-url http://devpi.tools.quasar.nadops.net/mpetronic/dev > --trusted-host devpi.tools.quasar.nadops.net --disable-pip-version-check > isort > > Now, if I attempt to install avro-python3==1.10.1 with those two packages > already installed, avro installs successfully. > > I am fairly stumped on this as all other packages that my application > depends on do install just fine if I remove the dependency on avro-python3. > Note also that everything works just fine if I use avro-python3==1.9.1.2. > The issue appears to have come into 1.10.x. > > I am using python 3.8 and the installation is automated via Python fabric, > but that has been working fine for years, too, FWIW. The app I am trying to > install is my own (gcsuploader), that is fetched from my local devpi pip > repo that mirrors upstream pypi.org for all public packages needed. > > Thanks for any suggestions. > > > [app01] sudo: pip install --index-url > http://devpi.tools.quasar.nadops.net/mpetronic/dev --trusted-host > devpi.tools.quasar.nadops.net --disable-pip-version-check > "gcsuploader==1.0.0.0" > [app01] out: Looking in indexes: > http://devpi.tools.quasar.nadops.net/mpetronic/dev > [app01] out: Collecting gcsuploader==1.0.0.0 > [app01] out: Downloading > http://devpi.tools.quasar.nadops.net/mpetronic/dev/%2Bf/38b/c7d21d43d3905/gcsuploader-1.0.0.0-py3-none-any.whl > (18 > kB) > [app01] out: Collecting avro-python3==1.10.1 > [app01] out: Downloading > http://devpi.tools.quasar.nadops.net/root/pypi/%2Bf/902/7abeab63dd9b6/avro-python3-1.10.1.tar.gz > (38 > kB) > [app01] out: ERROR: Command errored out with exit status 1: > [app01] out: command: /usr/local/gcsuploader/bin/python3.8 -c 'import > sys, setuptools, tokenize; sys.argv[0] = > '"'"'/tmp/pip-install-n7ghrpch/avro-python3_3e959d37e9d9462d82527e00ac881052/setup.py'"'"'; > __file__='"'"'/tmp/pip-install-n7ghrpch/avro-python3_3e959d37e9d9462d82527e00ac881052/setup.py'"'"';f=getattr(tokenize, > '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', > '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' > egg_info --egg-base /tmp/pip-pip-egg-info-wkj6acse > [app01] out: cwd: > /tmp/pip-install-n7ghrpch/avro-python3_3e959d37e9d9462d82527e00ac881052/ > [app01] out: Complete output (39 lines): > [app01] out: WARNING: Retrying (Retry(total=4, connect=None, > read=None, redirect=None, status=None)) after connection broken by > 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] > certificate verify failed: self signed certificate in certificate chain > (_ssl.c:1123)'))': /simple/pycodestyle/ > [app01] out: WARNING: Retrying (Retry(total=3, connect=None, > read=None, redirect=None, status=None)) after connection broken by > 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] > certificate verify failed: self signed certificate in certificate chain > (_ssl.c:1123)'))': /simple/pycodestyle/ > [app01] out: WARNING: Retrying (Retry(total=2, connect=None, > read=None, redirect=None, status=None)) after connection broken by > 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] > certificate verify failed: self signed certificate in certificate chain > (_ssl.c:1123)'))': /simple/pycodestyle/ > [app01] out: WARNING: Retrying (Retry(total=1, connect=None, > read=None, redirect=None, status=None)) after connection broken by > 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] > certificate verify failed: self signed certificate in certificate chain > (_ssl.c:1123)'))': /simple/pycodestyle/ > [app01] out: WARNING: Retrying (Retry(total=0, connect=None, > read=None, redirect=None, status=None)) after connection broken by > 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] > certificate verify failed: self signed certificate in certificate chain > (_ssl.c:1123)'))': /simple/pycodestyle/ > [app01] out: ERROR: Could not find a version that satisfies the > requirement pycodestyle > [app01] out: ERROR: No matching distribution found for pycodestyle > [app01] out: Traceback (most recent call last): > [app01] out: File > "/usr/local/gcsuploader/lib/python3.8/site-packages/setuptools/installer.py", > line 126, in fetch_build_egg > [app01] out: subprocess.check_call(cmd) > [app01] out: File "/usr/local/lib/python3.8/subprocess.py", line > 364, in check_call > [app01] out: raise CalledProcessError(retcode, cmd) > [app01] out: subprocess.CalledProcessError: Command > '['/usr/local/gcsuploader/bin/python3.8', '-m', 'pip', > '--disable-pip-version-check', 'wheel', '--no-deps', '-w', > '/tmp/tmpgoyi14mx', '--quiet', 'pycodestyle']' returned non-zero exit > status 1. > [app01] out: > [app01] out: The above exception was the direct cause of the following > exception: > [app01] out: > [app01] out: Traceback (most recent call last): > [app01] out: File "<string>", line 1, in <module> > [app01] out: File > "/tmp/pip-install-n7ghrpch/avro-python3_3e959d37e9d9462d82527e00ac881052/setup.py", > line 172, in <module> > [app01] out: main() > [app01] out: File > "/tmp/pip-install-n7ghrpch/avro-python3_3e959d37e9d9462d82527e00ac881052/setup.py", > line 164, in main > [app01] out: setuptools.setup(cmdclass={ > [app01] out: File > "/usr/local/gcsuploader/lib/python3.8/site-packages/setuptools/__init__.py", > line 152, in setup > [app01] out: _install_setup_requires(attrs) > [app01] out: File > "/usr/local/gcsuploader/lib/python3.8/site-packages/setuptools/__init__.py", > line 147, in _install_setup_requires > [app01] out: dist.fetch_build_eggs(dist.setup_requires) > [app01] out: File > "/usr/local/gcsuploader/lib/python3.8/site-packages/setuptools/dist.py", > line 673, in fetch_build_eggs > [app01] out: resolved_dists = pkg_resources.working_set.resolve( > [app01] out: File > "/usr/local/gcsuploader/lib/python3.8/site-packages/pkg_resources/__init__.py", > line 764, in resolve > [app01] out: dist = best[req.key] = env.best_match( > [app01] out: File > "/usr/local/gcsuploader/lib/python3.8/site-packages/pkg_resources/__init__.py", > line 1049, in best_match > [app01] out: return self.obtain(req, installer) > [app01] out: File > "/usr/local/gcsuploader/lib/python3.8/site-packages/pkg_resources/__init__.py", > line 1061, in obtain > [app01] out: return installer(requirement) > [app01] out: File > "/usr/local/gcsuploader/lib/python3.8/site-packages/setuptools/dist.py", > line 732, in fetch_build_egg > [app01] out: return fetch_build_egg(self, req) > [app01] out: File > "/usr/local/gcsuploader/lib/python3.8/site-packages/setuptools/installer.py", > line 128, in fetch_build_egg > [app01] out: raise DistutilsError(str(e)) from e > [app01] out: distutils.errors.DistutilsError: Command > '['/usr/local/gcsuploader/bin/python3.8', '-m', 'pip', > '--disable-pip-version-check', 'wheel', '--no-deps', '-w', > '/tmp/tmpgoyi14mx', '--quiet', 'pycodestyle']' returned non-zero exit > status 1. > [app01] out: ---------------------------------------- > [app01] out: ERROR: Command errored out with exit status 1: python > setup.py egg_info Check the logs for full command output. > [app01] out: > > > Fatal error: sudo() received nonzero return code 1 while executing! > > Requested: pip install --index-url > http://devpi.tools.quasar.nadops.net/mpetronic/dev --trusted-host > devpi.tools.quasar.nadops.net --disable-pip-version-check > "gcsuploader==1.0.0.0" > Executed: sudo -S -p 'sudo password:' -u "root" /bin/bash -l -c "source > /usr/local/gcsuploader/bin/activate && pip install --index-url > http://devpi.tools.quasar.nadops.net/mpetronic/dev --trusted-host > devpi.tools.quasar.nadops.net --disable-pip-version-check > \"gcsuploader==1.0.0.0\"" > >
