opds-reader icon indicating copy to clipboard operation
opds-reader copied to clipboard

cannot import name feedparser

Open ramon-kramer opened this issue 4 years ago • 1 comments

Hi, i get an error on calibre 3:

Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/ui.py", line 156, in __init__
    ac = self.init_iaction(action)
  File "/usr/lib/calibre/calibre/gui2/ui.py", line 170, in init_iaction
    ac = action.load_actual_plugin(self)
  File "/usr/lib/calibre/calibre/customize/__init__.py", line 614, in load_actual_plugin
    ac = getattr(importlib.import_module(mod), cls)(gui,
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 183, in load_module
    exec compiled in mod.__dict__
  File "calibre_plugins.opds_client.ui", line 9, in <module>
  File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 183, in load_module
    exec compiled in mod.__dict__
  File "calibre_plugins.opds_client.main", line 12, in <module>
  File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 183, in load_module
    exec compiled in mod.__dict__
  File "calibre_plugins.opds_client.model", line 12, in <module>
ImportError: cannot import name feedparser

I think calibre changed something. Installing python module (pip install feedparser) did not help because this is related to from calibre.web.feeds import feedparser

regards

ramon-kramer avatar May 07 '20 08:05 ramon-kramer

FWIW it works for me on calibre 4.15.

But note that I install from the official installers on both windows and GNU/linux, since the author doesn't accept bug reports against other versions.

steinarb avatar May 07 '20 16:05 steinarb