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

AttributeError: module 'base64' has no attribute 'encodestring' #145

Open
Zodk2 opened this issue Feb 20, 2023 · 1 comment
Open

AttributeError: module 'base64' has no attribute 'encodestring' #145

Zodk2 opened this issue Feb 20, 2023 · 1 comment

Comments

@Zodk2
Copy link

Zodk2 commented Feb 20, 2023

The encodestring() and decodestring() was removed in Python3.9

From Python bugs:

base64.encodestring() and base64.decodestring() are aliases deprecated since Python 3.1: encodebytes() and decodebytes() should be used instead.

@pascualguerrerocolmenero

Just go to /addons/custom_addons/jasper_reports/wizard/jasper_create_data_template.py and replace the following line:

base64_str = base64.encodestring(
With
base64_str = base64.encodebytes(

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