Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feedparser AttributeError in Python 3.9 #186

Open
apmarshall opened this issue Jan 28, 2021 · 1 comment
Open

Feedparser AttributeError in Python 3.9 #186

apmarshall opened this issue Jan 28, 2021 · 1 comment

Comments

@apmarshall
Copy link

Python 3.9 makes a change in how base64.decodestring works, which in particular impacts Gitsome's use of feedparser. See this issue for more information. This was fixed in later versions of feedparser, so gitsome needs to allow those later version to work on Python 3.9.

Pull request to address this forthcoming.

@kwanhur
Copy link

kwanhur commented Jul 18, 2022

Any update on this issue?

I caught base64.decodestring related problem at version 0.8.4, located at main_cli.py as beblow

➜ gitsome
Gitsome Version: 0.8.4


kwanhur at C02P57TSG3QJ in ~ on
$ gh configure
Traceback (most recent call last):
  File "/usr/local/bin/gh", line 5, in <module>
    from gitsome.main_cli import cli
  File "/usr/local/lib/python3.9/site-packages/gitsome/main_cli.py", line 20, in <module>
    from .githubcli import GitHubCli
  File "/usr/local/lib/python3.9/site-packages/gitsome/githubcli.py", line 21, in <module>
    from .github import GitHub
  File "/usr/local/lib/python3.9/site-packages/gitsome/github.py", line 29, in <module>
    import feedparser
  File "/usr/local/lib/python3.9/site-packages/feedparser.py", line 93, in <module>
    _base64decode = getattr(base64, 'decodebytes', base64.decodestring)
AttributeError: module 'base64' has no attribute 'decodestring'

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants