asexton
Posts: 2
Joined: Sat Nov 23, 2013 6:52 pm

Feedparse module on Raspbian

Sat Nov 23, 2013 7:03 pm

Hi All,

I'm a complete beginner to this and just got my Raspberry Pi today. I followed all the set up instructions available on the adafruit tutorial site, with no errors. I decided to try my first project which is the gmail notifier using LED's available here: http://learn.adafruit.com/raspberry-pi- ... are-python.

However, I'm having trouble installing the feedparser module and keep getting the error in the attached image. I have followed the instructions step by step multiple times and still get the same error. Anywhere I looked online I see people discussing feedparse errors but none of them have the same issue.

If anyone could be of any assistance I would really appreciate it as I'm excited to get my pi projects up and running and have come to a momentary stand still.

Thanks
Attachments
error.jpg
error.jpg (25.23 KiB) Viewed 2266 times

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Feedparse module on Raspbian

Sun Nov 24, 2013 12:23 am

It worked for me. I'm assuming you have a working Internet connection and can access things like http://google.com or http://news.bbc.co.uk from your RPi.

So we need to look at why you can't resolve and connect to pypi.python.org

Start with

Code: Select all

ping pypi.python.org
Which should generate something like

Code: Select all

root@pi ~ # ping pypi.python.org
PING global-ssl.fastly.net (185.31.17.184) 56(84) bytes of data.
64 bytes from 185.31.17.184: icmp_req=1 ttl=54 time=53.7 ms
64 bytes from 185.31.17.184: icmp_req=2 ttl=54 time=54.0 ms
^C64 bytes from 185.31.17.184: icmp_req=3 ttl=54 time=53.6 ms

--- global-ssl.fastly.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 10320ms
rtt min/avg/max/mdev = 53.672/53.833/54.084/0.322 ms
root@pi ~ #


Then try

Code: Select all

lynx http://pypi.python.org/simple
or

Code: Select all

curl http://pypi.python.org/simple
or

Code: Select all

wget http://pypi.python.org/simple
If those work then lets look in /root/.pip/pip.log to see if it tells you what failed.

It could be a transient error so re-running the 'sudo pip install feedparser' make work second go.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

asexton
Posts: 2
Joined: Sat Nov 23, 2013 6:52 pm

Re: Feedparse module on Raspbian

Mon Nov 25, 2013 5:54 pm

Apologies for the delay in replying, despite my best efforts I didn't get a chance to try this at work.

The issue I had in accessing the pypi website was resolved once I ran the wget command. Thank you very much. I never predicted I'd get such satisfaction out of lighting up an LED

Return to “Troubleshooting”