kurtmckee/feedparser

No module named 'sgmllib' (when trying to use with the .whl file directly)

sahils-crest opened this issue · 1 comments

Hi,
I have recently upgraded my feedparser lib from 5.2.1 to 6.0.2, I uses the .whl file directly in my project.
but when i tried to run it, I got the error of no module named sgmllib.

File "/opt/test/apps/rss_9ef9419c-a4c0-411d-974a-af391eed6bfc/rss_connector.py", line 21, in <module> import feedparser File "/opt/test/apps/rss_9ef9419c-a4c0-411d-974a-af391eed6bfc/dependencies/feedparser/__init__.py", line 28, in <module> from .api import parse File "/opt/test/apps/rss_9ef9419c-a4c0-411d-974a-af391eed6bfc/dependencies/feedparser/api.py", line 36, in <module> from .html import _BaseHTMLProcessor File "/opt/test/apps/rss_9ef9419c-a4c0-411d-974a-af391eed6bfc/dependencies/feedparser/html.py", line 31, in <module> from .sgml import * File "/opt/test/apps/rss_9ef9419c-a4c0-411d-974a-af391eed6bfc/dependencies/feedparser/sgml.py", line 30, in <module> import sgmllib ModuleNotFoundError: No module named 'sgmllib'

@sahils-crest, it looks like feedparser was installed but its dependencies were ignored during install (perhaps this is a pip option or something). feedparser requires sgmllib3k to be installed.

Please install sgmllib3k, which will resolve this issue.