[GH-ISSUE #525] Base64 issue in docker image with latest Dockerfile #310

Closed
opened 2026-02-27 15:58:12 +03:00 by kerem · 1 comment
Owner

Originally created by @5he1n on GitHub (Aug 13, 2022).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/525

Due to usage of phusion/baseimage:jammy-1.0.0 for Dockerfile (de-facto Ubuntu 22.04) - default python version is 3.10 which causes problems for SSH key addition in profile page:

AttributeError at /accounts/ssh_key/create/

module 'base64' has no attribute 'decodestring'

In base64 module decodestring & encodestring functions are available for python < 3.9.

Originally created by @5he1n on GitHub (Aug 13, 2022). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/525 Due to usage of **phusion/baseimage:jammy-1.0.0** for Dockerfile (de-facto Ubuntu 22.04) - default python version is **3.10** which causes problems for SSH key addition in profile page: ``` AttributeError at /accounts/ssh_key/create/ module 'base64' has no attribute 'decodestring' ``` In base64 module decodestring & encodestring functions are available for python < 3.9.
kerem closed this issue 2026-02-27 15:58:12 +03:00
Author
Owner

@catborise commented on GitHub (Aug 22, 2022):

i convert decodestring to decodebytes because of depreciation. it should be worked. i tested. it is working.

<!-- gh-comment-id:1222357617 --> @catborise commented on GitHub (Aug 22, 2022): i convert decodestring to decodebytes because of depreciation. it should be worked. i tested. it is working.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#310
No description provided.