sfox14 / pynq-sklearn

Library for PYNQ-based ML accelerators
6 stars 0 forks source link

fatal: unable to access 'https://github.com/sfox14/pynq-sklearn.git/': Could not resolve host: github.com #2

Open meligirgin opened 5 years ago

meligirgin commented 5 years ago

I am using Pynq-Z1 and my image pynq_z1_v2.3. After errors, I change my image as a pynq_z1_v2.4. But errors were not solved. I tried to install sklearn with given command. However, below error occured: root@pynq:/home/xilinx# sudo pip3 install git+https://github.com/sfox14/pynq-sklearn.git Collecting git+https://github.com/sfox14/pynq-sklearn.git Cloning https://github.com/sfox14/pynq-sklearn.git to /tmp/pip-x1pyh05b-build fatal: unable to access 'https://github.com/sfox14/pynq-sklearn.git/': Could not resolve host: github.com Command "git clone -q https://github.com/sfox14/pynq-sklearn.git /tmp/pip-x1pyh05b-build" failed with error code 128 in None

I tried: root@pynq:/home/xilinx# git config --system --get https.proxy root@pynq:/home/xilinx# git config --system --get http.proxy root@pynq:/home/xilinx# git config --global --get https.proxy fatal: $HOME not set

I could not solve this problem. Do you know why these errors occur?

sfox14 commented 5 years ago

Looks like your board is connected to a network that uses a proxy. You will need to configure your proxy settings on the board. (but replace "my_http_proxy:8080" with your proxy settings).

set http_proxy=my_http_proxy:8080 set https_proxy=my_https_proxy:8080

If this network problem persists, it's probably worth checking the PYNQ forums. Also, this repo was built for PYNQ v2.1 image. This is now mentioned in the README. You'll run into problems later on if you're using any other version.

hwtsnana commented 4 years ago

HI @sfox14, I think I'm facing the same issue.

xilinx@pynq:~$ pip3.6 install git+https://github.com/sfox14/pynq-sklearn.git Collecting git+https://github.com/sfox14/pynq-sklearn.git Cloning https://github.com/sfox14/pynq-sklearn.git to /tmp/pip-qr4mxxd4-build fatal: unable to access 'https://github.com/sfox14/pynq-sklearn.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none Command "git clone -q https://github.com/sfox14/pynq-sklearn.git /tmp/pip-qr4mxxd4-build" failed with error code 128 in None

I'm using pynq v2.1 image. can we use pynq 2.4 or 2.5? please help.

hwtsnana commented 4 years ago

Updating data time will fix the problem.

apt-get install ntp
sudo service ntp stop
sudo ntpdate -s time.nist.gov
sudo service ntp start