Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Setup failure for pip in script #16

Closed
ghost opened this issue Jun 22, 2017 · 8 comments
Closed

Setup failure for pip in script #16

ghost opened this issue Jun 22, 2017 · 8 comments

Comments

@ghost
Copy link

ghost commented Jun 22, 2017

Description of problem:

Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581) -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581) -- Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')


Expected:


Steps to reproduce:

  1. install fresh jessie lite
  2. sudo apt-get update
  3. sudo apt-get dist-upgrade
    4.sudo apt-get install git
    5.cd /opt
    6.sudo git clone https://github.com/xtools-at/AssistantPi.git AlexaPi
    7.sudo /opt/AlexaPi/src/scripts/setup.sh

able to reproduce
sudo python -m easy_install pip

now just have to figure out how to get past ssl error :)

Traceback (if applicable):


Additional info:


if run_pip --version | grep "pip 1.5"; then
    run_pip install -r ./requirements.txt
else
    run_pip install --no-cache-dir -r ./requirements.txt

@xtools-at
Copy link
Owner

Hi there,
sorry I've been busy, got a new job a few weeks ago. Is this still an issue? From the problem description, I assume that https://pypi.python.org had SSL issues that day :(

@lvidarte
Copy link

Same problem here

@lvidarte
Copy link

Date Issue (too old):

$ date
Mon Apr 10 11:30:04 UTC 2017

Update:

$ sudo date -s "24 JUL 2017 12:00:00"
Mon Jul 24 12:00:00 UTC 2017

Now it works:

$ sudo python2 -m easy_install pip

@xtools-at
Copy link
Owner

thanks @lvidarte for verifying! any idea how I could fix this?

@lvidarte
Copy link

From ntp man page: "ntp doesn't update the time if the offset exceeds the panic threshold, which is 1000 s by default."

This is the best way I found to update time

sudo systemctl stop ntp
sudo ntpd -gq
sudo systemctl start ntp

The -gq tells the ntp daemon to correct the time regardless of the offset (g) and exit immediately (q) after setting the time.

@ghost
Copy link
Author

ghost commented Jul 25, 2017

It was the time! thanks everyone for your help!

@ghost ghost closed this as completed Jul 25, 2017
@xtools-at
Copy link
Owner

xtools-at commented Jul 26, 2017

@lvidarte thanks for pointing out, I thought it was because the certificate expired and didn't get that it was the time on the device itself which was wrong.
I'll include this in the next Release, thanks again!

xtools-at added a commit that referenced this issue Jul 28, 2017
@xtools-at
Copy link
Owner

xtools-at commented Jul 28, 2017

Version 1.2 released containing this fix, shouldn't be an issue to anyone anymore.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants