admin管理员组文章数量:1125546
I have the following versions installed:
Name: pygooglenews
Version: 0.1.3
Name: feedparser
Version: 6.0.11
Nevertheless, when I try to import pygooglenews, I get the following error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-6-7a5a1e5c2c1c> in <module>
----> 1 from pygooglenews import GoogleNews
~/venv/lib/python3.9/site-packages/pygooglenews/__init__.py in <module>
----> 1 import feedparser
2 from bs4 import BeautifulSoup
3 import urllib
4 from dateparser import parse as parse_date
5 import requests
~/venv/lib/python3.9/site-packages/feedparser.py in <module>
91 else:
92 # Python 3.1 deprecates decodestring in favor of decodebytes
---> 93 _base64decode = getattr(base64, 'decodebytes', base64.decodestring)
94
95 # _s2bytes: convert a UTF-8 str to bytes if the interpreter is Python 3
AttributeError: module 'base64' has no attribute 'decodestring'
Is there a workaround for this?
本文标签: pythonPygooglenews import failureStack Overflow
版权声明:本文标题:python - Pygooglenews import failure - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736625130a1945658.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论