Bug 39865 - Не работает с python 3.9
Summary: Не работает с python 3.9
Alias: None
Product: Sisyphus
Classification: Development
Component: python3-module-Reportlab (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 major
Assignee: Vitaly Lipatov
QA Contact: qa-sisyphus
: 39885 (view as bug list)
Depends on:
Reported: 2021-04-01 16:46 MSK by Ivan A. Melnikov
Modified: 2021-04-07 17:57 MSK (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Ivan A. Melnikov 2021-04-01 16:46:59 MSK
$ python3
Python 3.9.2 (default, Feb 26 2021, 15:33:46)
[GCC 10.2.1 20201125 (ALT Sisyphus 10.2.1-alt2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from reportlab.platypus.paragraph import Paragraph
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3/site-packages/reportlab/platypus/__init__.py", line 7, in <module>
    from reportlab.platypus.flowables import Flowable, Image, Macro, PageBreak, Preformatted, Spacer, XBox, \
  File "/usr/lib64/python3/site-packages/reportlab/platypus/flowables.py", line 29, in <module>
    from reportlab.lib.colors import red, gray, lightgrey
  File "/usr/lib64/python3/site-packages/reportlab/lib/colors.py", line 45, in <module>
    from reportlab.lib.utils import asNative, isStr
  File "/usr/lib64/python3/site-packages/reportlab/lib/utils.py", line 8, in <module>
    from base64 import decodestring as base64_decodestring, encodestring as base64_encodestring
ImportError: cannot import name 'decodestring' from 'base64' (/usr/lib64/python3.9/base64.py)

Таким же образом оно, если установлено, ломает hp-toolbox.
Comment 1 Ivan A. Melnikov 2021-04-07 11:27:12 MSK
*** Bug 39885 has been marked as a duplicate of this bug. ***
Comment 2 Repository Robot 2021-04-07 17:57:22 MSK
python3-module-Reportlab-3.5.66-alt1 -> sisyphus:

 * Wed Apr 07 2021 Vitaly Lipatov <lav@altlinux> 3.5.66-alt1
 - build python3 separately
 - new version 3.5.66 (with rpmrb script) (ALT bug 39865)