Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with flake8 running tox #36

Open
purplediane opened this issue Oct 13, 2018 · 2 comments
Open

Errors with flake8 running tox #36

purplediane opened this issue Oct 13, 2018 · 2 comments

Comments

@purplediane
Copy link
Collaborator

Location within the Course

  • Section:4
  • Lesson:2
  • Language:en

Description

When running tox, I now get errors in the flake8 configuration. They are SSL errors. Tried several things to no avail. I will tell my students to remove flake8 from the envlist in tox.ini.
Happens with local dev environment as 3.6 and 3.7. Pip is 18.1 already.

Here is the start of the error message:
flake8 inst-nodeps: /Users/diane/projects/squashem_pkg/squashem/.tox/.tmp/package/1/squashem-0.1.0.zip
ERROR: invocation failed (exit code 1), logfile: /Users/diane/projects/squashem_pkg/squashem/.tox/flake8/log/flake8-4.log
ERROR: actionid: flake8
msg: installpkg
cmdargs: '/Users/diane/projects/squashem_pkg/squashem/.tox/flake8/bin/python -m pip install --no-deps -U /Users/diane/projects/squashem_pkg/squashem/.tox/.tmp/package/1/squashem-0.1.0.zip'

Processing ./.tox/.tmp/package/1/squashem-0.1.0.zip
Complete output from command python setup.py egg_info:
Download error on https://pypi.org/simple/pytest-runner/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045) -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045) -- Some packages may not be found!
No local packages or working download links found for pytest-runner

@cosmoscalibur
Copy link

cosmoscalibur commented Oct 17, 2018

What is the OS?
Are you using Anaconda Distribution?
What mechanism was used to update pip?
Is certifi installed (and what version)?
Related with #12.

@purplediane
Copy link
Collaborator Author

purplediane commented Oct 19, 2018

Oh, you might be right - I can check on it next week. I don't remember whether I tried that. It only happened when flake8 was in the envlist in tox.ini. I simply told the students to remove flake8 from the envlist.

I believe that Cookiecutter will be moving from flake8 to black sometime soon, in which case this will become irrelevant.

Not Anaconda. Mac OS. Pip was updated in the normal manner, but I did try doing the manual get-pip or whatever it was; the way we had to get around the pip issues when pypi.org changed over. It was the same version, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants