Skip to content

tox fails due to ssl #809

@BeyondEvil

Description

@BeyondEvil

Thanks for submitting an issue!

You're welcome.

Stacktrace:

Jims-MacBook-Pro:pytest-tags jimbrannlund$ tox
GLOB sdist-make: /Users/jimbrannlund/dev/pytest-tags/setup.py
py27-pytest29 inst-nodeps: /Users/jimbrannlund/dev/pytest-tags/.tox/dist/pytest-tags-1.5.dev3+gc8cf057.d20180508.zip
ERROR: invocation failed (exit code 1), logfile: /Users/jimbrannlund/dev/pytest-tags/.tox/py27-pytest29/log/py27-pytest29-4.log
ERROR: actionid: py27-pytest29
msg: installpkg
cmdargs: ['/Users/jimbrannlund/dev/pytest-tags/.tox/py27-pytest29/bin/pip', 'install', '-U', '--no-deps', '/Users/jimbrannlund/dev/pytest-tags/.tox/dist/pytest-tags-1.5.dev3+gc8cf057.d20180508.zip']

Processing ./.tox/dist/pytest-tags-1.5.dev3+gc8cf057.d20180508.zip
    Complete output from command python setup.py egg_info:
    Download error on https://pypi.org/simple/setuptools_scm/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found!
    Download error on https://pypi.org/simple/setuptools-scm/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found!
    Couldn't find index page for 'setuptools_scm' (maybe misspelled?)
    Download error on https://pypi.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found!
    No local packages or working download links found for setuptools_scm
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/8g/g0s3c_xn0d793245v_mj5khm0000gn/T/pip-req-build-QWAMDv/setup.py", line 41, in <module>
        'Programming Language :: Python :: 3.6'])
      File "/Users/jimbrannlund/dev/pytest-tags/.tox/py27-pytest29/lib/python2.7/site-packages/setuptools/__init__.py", line 128, in setup
        _install_setup_requires(attrs)
      File "/Users/jimbrannlund/dev/pytest-tags/.tox/py27-pytest29/lib/python2.7/site-packages/setuptools/__init__.py", line 123, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/Users/jimbrannlund/dev/pytest-tags/.tox/py27-pytest29/lib/python2.7/site-packages/setuptools/dist.py", line 504, in fetch_build_eggs
        replace_conflicting=True,
      File "/Users/jimbrannlund/dev/pytest-tags/.tox/py27-pytest29/lib/python2.7/site-packages/pkg_resources/__init__.py", line 774, in resolve
        replace_conflicting=replace_conflicting
      File "/Users/jimbrannlund/dev/pytest-tags/.tox/py27-pytest29/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1057, in best_match
        return self.obtain(req, installer)
      File "/Users/jimbrannlund/dev/pytest-tags/.tox/py27-pytest29/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1069, in obtain
        return installer(requirement)
      File "/Users/jimbrannlund/dev/pytest-tags/.tox/py27-pytest29/lib/python2.7/site-packages/setuptools/dist.py", line 571, in fetch_build_egg
        return cmd.easy_install(req)
      File "/Users/jimbrannlund/dev/pytest-tags/.tox/py27-pytest29/lib/python2.7/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')
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/8g/g0s3c_xn0d793245v_mj5khm0000gn/T/pip-req-build-QWAMDv/

MacOS 10.12.6

tox --version: 3.0.0 imported from /usr/local/lib/python3.6/site-packages/tox/init.py

pip3 list:

Package          Version  
---------------- ---------
certifi          2018.4.16
pip              10.0.1   
pipenv           11.10.3  
pluggy           0.6.0    
py               1.5.3    
setuptools       39.1.0   
six              1.11.0   
tox              3.0.0    
virtualenv       15.2.0   
virtualenv-clone 0.3.0    
wheel            0.31.0   

tox.ini:


# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py{27,36}-pytest{29,30,31,32,33,34,35}, flake8

[testenv]
commands = py.test -v -r a {posargs}
deps =
    pytest29: pytest==2.9.2
    pytest30: pytest==3.0.7
    pytest31: pytest==3.1.3
    pytest32: pytest==3.2.5
    pytest33: pytest==3.3.2
    pytest34: pytest==3.4.2
    pytest35: pytest==3.5.1

[testenv:flake8]
skip_install = true
basepython = python
deps = flake8
commands = flake8 {posargs:.}

[flake8]
exclude = .tox,build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions