question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Download error on https://pypi.python.org/simple/setuptools_scm/: [SSL: CERTIFICATE_VERIFY_FAILED]

See original GitHub issue

Environment

  • pip version: 10.0.1
  • Python version: 2.7 & 3.6.5
  • OS: Windows 10 Pro, 1803, 17134.48

We have a requirements.txt file for pip to follow. Installation of setuptools_scm is what fails as it appears to be trying to download from the old domain - https://pypi.python.org/simple/setuptools_scm

I have tried installing pip manually via; curl https://bootstrap.pypa.io/get-pip.py -o C:\get-pip.py py -2 C:\get-pip.py py -3 C:\get-pip.py

Still fails.

Installing setuptools_scm manually via

py -2 -m pip install setuptools_scm

Works beautifully.

Expected behavior I expect setuptools_scm to install correctly through our requirements.txt . We have tried adding --extra-index-url https://pypi.org/simple to our command but same failure.

Output

Collecting _toolkit_ (from -r _http://sub.domain.com/requirements.txt_ (line 23))
  Downloading _https://sub.domain.com/page/toolkit.zip_ (1.5MB)
    Complete output from command python setup.py egg_info:
    Download error on https://pypi.python.org/simple/setuptools_scm/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726) -- Some packages may not be found!
    Download error on https://pypi.python.org/simple/setuptools-scm/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726) -- Some packages may not be found!
    Couldn't find index page for 'setuptools_scm' (maybe misspelled?)
    Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726) -- Some packages may not be found!
    No local packages or working download links found for setuptools_scm>=1.15.0
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\_$USER_\appdata\local\temp\pip-install-n94xsa\_toolkit_\setup.py", line 178, in <module>
        'fl.test = fltest:main'
      File "C:\Python27\lib\site-packages\setuptools\__init__.py", line 128, in setup
        _install_setup_requires(attrs)
      File "C:\Python27\lib\site-packages\setuptools\__init__.py", line 123, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "C:\Python27\lib\site-packages\setuptools\dist.py", line 513, in fetch_build_eggs
        replace_conflicting=True,
      File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 774, in resolve
        replace_conflicting=replace_conflicting
      File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 1057, in best_match
        return self.obtain(req, installer)
      File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 1069, in obtain
        return installer(requirement)
      File "C:\Python27\lib\site-packages\setuptools\dist.py", line 580, in fetch_build_egg
        return cmd.easy_install(req)
      File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 667, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools_scm>=1.15.0')
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\_$USER_\appdata\local\temp\pip-install-n94xsa\_toolkit_\

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
anthrotypecommented, Oct 9, 2018

@DaMa-IT you can declare setuptools_scm as a build requirement in a pyproject.toml file, like so:

[build-system]
requires = [
    "setuptools",
    "wheel",
    "setuptools_scm",
]

This should work, provided one is using pip >= 10.

@RonnyPfannschmidt note that the README file on https://github.com/pypa/setuptools_scm still recommends the setup_requires approach. Maybe it should be changed, if the easy_install method is broken now.

0reactions
lock[bot]commented, May 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip install fails with "connection error: [SSL - Stack Overflow
Using Wheel: download the Wheel of the python package and use the pip command pip install wheel_package_name.whl to install the package.
Read more >
How to fix - Python pip install connection error SSL ... - Jhooq
In this article, we are going to see the error connection error SSL CERTIFICATE_VERIFY_FAILED certificate verify failed (_ssl.c:598) which ...
Read more >
PIP connection Error : SSL CERTIFICATE VERIFY FAILED
The most common issue in installing python package in a company's network is failure of verification of SSL Certificate. Sometimes company blocks some...
Read more >
记录pip3安装报错:[SSL: CERTIFICATE_VERIFY_FAILED ...
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645) -- Some packages ...
Read more >
Plone Community
Download error on https://pypi.python.org/simple: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found