Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

module 'base64' has no attribute 'encodestring' on Python 3.9 #26

Closed
laanwj opened this issue Feb 20, 2022 · 2 comments
Closed

module 'base64' has no attribute 'encodestring' on Python 3.9 #26

laanwj opened this issue Feb 20, 2022 · 2 comments

Comments

@laanwj
Copy link
Contributor

laanwj commented Feb 20, 2022

Sending to IRC fails with this message:

Feb 20 14:03:09 … python3[399]: IRC - Connecting to irc.libera.chat:6697 with nick bitcoin-git and channels: #bitcoin-commits,#bitcoin-core-dev
Feb 20 14:03:09 … python3[399]: IRC - There was a problem sending messages to IRC
Feb 20 14:03:09 … python3[399]: IRC - module 'base64' has no attribute 'encodestring'

According to upstream issue 39351, this function was deprecated since Python 3.1 in favor of base64.encodebytes and decodebytes.

@laanwj
Copy link
Contributor Author

laanwj commented Feb 20, 2022

Edit: oh, already fixed in 8ab6343 / #15, just needed to pull 😄

@laanwj laanwj closed this as completed Feb 20, 2022
@gkrizek
Copy link
Owner

gkrizek commented Feb 20, 2022

@laanwj That's correct! And I just cut a new release with these fixes:

https://github.com/gkrizek/ghi/releases/tag/v0.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants