Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731840 - net-mail/rss2email-3.11-r1 with dev-python/feedparser-6.0.0_beta1 - AttributeError: module 'feedparser' has no attribute 'zlib'
Summary: net-mail/rss2email-3.11-r1 with dev-python/feedparser-6.0.0_beta1 - Attribute...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Sebastian Pipping
URL: https://github.com/rss2email/rss2emai...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-09 10:16 UTC by Andreas Fink
Modified: 2020-07-09 17:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Fink 2020-07-09 10:16:13 UTC
On ~amd64 dev-python/feedparser-6.0.0_beta1 will be pulled in, since it satisfies the dependency >=dev-python/feedparser-5.0.1. However rss2email fails at runtime using the command "r2e run" with an exception:
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.7/r2e", line 5, in <module>
    rss2email.main.run()
  File "/usr/lib/python3.7/site-packages/rss2email/main.py", line 171, in run
    args.func(feeds=feeds, args=args)
  File "/usr/lib/python3.7/site-packages/rss2email/command.py", line 87, in run
    feed.run(send=args.send)
  File "/usr/lib/python3.7/site-packages/rss2email/feed.py", line 849, in run
    for (guid, id_, sender, message) in self._process(parsed):
  File "/usr/lib/python3.7/site-packages/rss2email/feed.py", line 364, in _process
    self._check_for_errors(parsed)
  File "/usr/lib/python3.7/site-packages/rss2email/feed.py", line 419, in _check_for_errors
    elif isinstance(exc, _feedparser.zlib.error):
AttributeError: module 'feedparser' has no attribute 'zlib'

Workaround:
Add =dev-python/feedparser-6.0.0_beta1 to /etc/portage/package.mask
Comment 1 Sebastian Pipping gentoo-dev 2020-07-09 17:44:56 UTC
I have reported the problem upstream now at https://github.com/rss2email/rss2email/issues/123 .  I'll adjust the dependencies down here while we wait, give me a few minutes.
Comment 2 Larry the Git Cow gentoo-dev 2020-07-09 17:50:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e330813b25221d89c6e6e009d8e457d9d4fbf41

commit 5e330813b25221d89c6e6e009d8e457d9d4fbf41
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2020-07-09 17:48:23 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2020-07-09 17:48:23 +0000

    net-mail/rss2email: Prevent use with feedparser >=6
    
    Closes: https://bugs.gentoo.org/731840
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>
    Package-Manager: Portage-2.3.99, Repoman-2.3.22

 net-mail/rss2email/rss2email-3.11-r1.ebuild | 2 +-
 net-mail/rss2email/rss2email-3.11.ebuild    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)