kurtmckee/feedparser

SyntaxError: invalid syntax while using feedparser in python on Raspberry Pi

Closed this issue · 4 comments

I have installed feedparser on my Raspberry Pi, but when I run my python program using "import feedparser", I get this error:

Traceback (most recent call last):
File "rrsTest.py", line 1, in
import feedparser
File "/usr/local/lib/python3.5/dist-packages/feedparser/init.py", line 31, in
from .api import parse
File "/usr/local/lib/python3.5/dist-packages/feedparser/api.py", line 56, in
from . import http
File "/usr/local/lib/python3.5/dist-packages/feedparser/http.py", line 156
new_pieces[1] = f'{url_pieces.hostname}:{url_pieces.port}'
^
SyntaxError: invalid syntax

I have successfully used the same program with feedparser in python in Windows, so I don't understand why the module isn't working here.

Nicholas, no time was wasted. It looks like you picked up feedparser 6.0.0 during the window between when it was released and when I yanked it from PyPI. I'm sorry for the trouble, but I'm glad that it's working now.

Happy 2021!