Letsencrypt-auto can't download pip cryptography/pycparser


#1

Im running the letsencrypt client on ubuntu server 14.04 - 64bit System and erverytime i run the script, it has problems installing the cryptography package and espacially the pycparser package.
Says something about certificate verify failed by downloading the package from https: pypi.python.org/simple/

Do i get it right that the install script buidls up a completly new python eviroment for testing? So i really don’t get the Problem and im searching for 2 days now.

Here my pip.log


/tmp/tmp.LeKbufRzpE/peep.py run on Thu Feb 18 17:07:24 2016
Unpacking /tmp/peep-UWuJfM/cryptography-1.1.2.tar.gz
Running setup.py (path:/tmp/pip-qZeNCE-build/setup.py) egg_info for package from file:///tmp/peep-UWuJfM/cryptography-1.1.2.tar.gz
running egg_info
creating pip-egg-info/cryptography.egg-info
writing dependency_links to pip-egg-info/cryptography.egg-info/dependency_links.txt
writing requirements to pip-egg-info/cryptography.egg-info/requires.txt
writing pip-egg-info/cryptography.egg-info/PKG-INFO
writing top-level names to pip-egg-info/cryptography.egg-info/top_level.txt
writing entry points to pip-egg-info/cryptography.egg-info/entry_points.txt
writing manifest file 'pip-egg-info/cryptography.egg-info/SOURCES.txt’
warning: manifest_maker: standard file ‘-c’ not found

reading manifest file 'pip-egg-info/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
writing manifest file 'pip-egg-info/cryptography.egg-info/SOURCES.txt'

Source in /tmp/pip-qZeNCE-build has version 1.1.2, which satisfies requirement cryptography==1.1.2 from file:///tmp/peep-UWuJfM/cryptography-1.1.2.tar.gz
Installing collected packages: cryptography
Running setup.py install for cryptography
Running command /home/otti/.local/share/letsencrypt/bin/python -c “import setuptools, tokenize;file=’/tmp/pip-qZeNCE-build/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-ZeBVBo-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/otti/.local/share/letsencrypt/include/site/python2.7
Download error on https: pypi.python.org/simple/pycparser/: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed – Some packages may not be found!
Couldn’t find index page for ‘pycparser’ (maybe misspelled?)
Download error on https: pypi.python.org/simple/: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed – Some packages may not be found!
No local packages or download links found for pycparser
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-qZeNCE-build/setup.py”, line 318, in
**keywords_with_side_effects(sys.argv)
File “/usr/lib/python2.7/distutils/core.py”, line 111, in setup
_setup_distribution = dist = klass(attrs)
File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/setuptools/dist.py”, line 239, in init
self.fetch_build_eggs(attrs.pop(‘setup_requires’))
File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/setuptools/dist.py”, line 264, in fetch_build_eggs
replace_conflicting=True
File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources.py”, line 580, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources.py”, line 818, in best_match
return self.obtain(req, installer) # try and download/install
File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources.py”, line 830, in obtain
return installer(requirement)
File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/setuptools/dist.py”, line 314, in fetch_build_egg
return cmd.easy_install(req)
File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 587, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse(‘pycparser’)
Complete output from command /home/otti/.local/share/letsencrypt/bin/python -c “import setuptools, tokenize;file=’/tmp/pip-qZeNCE-build/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-ZeBVBo-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/otti/.local/share/letsencrypt/include/site/python2.7:
Download error on https: pypi.python.org/simple/pycparser/: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed – Some packages may not be found!

Couldn’t find index page for ‘pycparser’ (maybe misspelled?)

Download error on https: pypi.python.org/simple/: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed – Some packages may not be found!

No local packages or download links found for pycparser

Traceback (most recent call last):

File “”, line 1, in

File “/tmp/pip-qZeNCE-build/setup.py”, line 318, in

**keywords_with_side_effects(sys.argv)

File “/usr/lib/python2.7/distutils/core.py”, line 111, in setup

_setup_distribution = dist = klass(attrs)

File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/setuptools/dist.py”, line 239, in init

self.fetch_build_eggs(attrs.pop('setup_requires'))

File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/setuptools/dist.py”, line 264, in fetch_build_eggs

replace_conflicting=True

File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources.py”, line 580, in resolve

dist = best[req.key] = env.best_match(req, ws, installer)

File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources.py”, line 818, in best_match

return self.obtain(req, installer) # try and download/install

File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources.py”, line 830, in obtain

return installer(requirement)

File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/setuptools/dist.py”, line 314, in fetch_build_egg

return cmd.easy_install(req)

File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 587, in easy_install

raise DistutilsError(msg)

distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse(‘pycparser’)


Cleaning up…
Command /home/otti/.local/share/letsencrypt/bin/python -c “import setuptools, tokenize;file=’/tmp/pip-qZeNCE-build/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-ZeBVBo-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/otti/.local/share/letsencrypt/include/site/python2.7 failed with error code 1 in /tmp/pip-qZeNCE-build
Exception information:
Traceback (most recent call last):
File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/basecommand.py”, line 122, in main
status = self.run(options, args)
File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/commands/install.py”, line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/req.py”, line 1435, in install
requirement.install(install_options, global_options, *args, **kwargs)
File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/req.py”, line 706, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File “/home/otti/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/util.py”, line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /home/otti/.local/share/letsencrypt/bin/python -c “import setuptools, tokenize;file=’/tmp/pip-qZeNCE-build/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-ZeBVBo-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/otti/.local/share/letsencrypt/include/site/python2.7 failed with error code 1 in /tmp/pip-qZeNCE-build

Thanks,
Otti