david_1234
Posts: 200
Joined: Mon Jan 01, 2018 2:14 pm

unable to downlaod from git using pip?

Mon Nov 04, 2019 2:51 pm

Hello ,
I'm having a strange problem - and maybe I'm missing something

I have install a a clean pi4 with buster
after setup finish , I have run a update&&upgrade - then reboot the pi

then I try to downlaod this

Code: Select all

sudo pip install git+git://github.com/chrisb2/pi_ina219.git
but I'm getting this error:

Code: Select all

pi@raspberrypi:~ $ sudo pip install git+git://github.com/chrisb2/pi_ina219.git
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting git+git://github.com/chrisb2/pi_ina219.git
  Cloning git://github.com/chrisb2/pi_ina219.git to /tmp/pip-req-build-cQuKEg
fatal: unable to connect to github.com:
github.com[0: 140.82.118.3]: errno=Connection timed out
Command "git clone -q git://github.com/chrisb2/pi_ina219.git /tmp/pip-req-build-cQuKEg" failed with error code 128 in None
when I enter the ptoject using the web - I can see it's online and "alive"

did I miss soemthing , do I need to allow some privileges ? to open some setting?
the network is OK , there is ping to 8.8.8.8 and also to www.cnn.com
so what am I missing?

I have open in the firewall tcp/udp 3128 , do I need to open something else?

Thanks ,

User avatar
topguy
Posts: 5959
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: unable to downlaod from git using pip?

Mon Nov 04, 2019 3:39 pm

I have open in the firewall tcp/udp 3128
Why ?

And did you ping github directly ?

Code: Select all

ping github.com
PING github.com (140.82.118.3) 56(84) bytes of data.
64 bytes from lb-140-82-118-3-ams.github.com (140.82.118.3): icmp_seq=1 ttl=53 time=33.4 ms
64 bytes from lb-140-82-118-3-ams.github.com (140.82.118.3): icmp_seq=2 ttl=53 time=33.2 ms
64 bytes from lb-140-82-118-3-ams.github.com (140.82.118.3): icmp_seq=3 ttl=53 time=33.2 ms
^C
--- github.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 33.212/33.280/33.413/0.176 ms

david_1234
Posts: 200
Joined: Mon Jan 01, 2018 2:14 pm

Re: unable to downlaod from git using pip?

Mon Nov 04, 2019 4:03 pm

because I found somewhere that this is the pip port use

and

Code: Select all

ping github.com
PING github.com (140.82.118.4) 56(84) bytes of data.
64 bytes from lb-140-82-118-4-ams.github.com (140.82.118.4): icmp_seq=1 ttl=49 time=99.4 ms
64 bytes from lb-140-82-118-4-ams.github.com (140.82.118.4): icmp_seq=2 ttl=49 time=97.3 ms
64 bytes from lb-140-82-118-4-ams.github.com (140.82.118.4): icmp_seq=3 ttl=49 time=98.7 ms


Return to “Beginners”