python3-xcbgen package not compatible with python3 package

What version of Parrot are you running? (type “cat /etc/os-release” in terminal without the quotes)

I used the parrotsec/core:latest docker image.

PRETTY_NAME="Parrot GNU/Linux 4.10"
NAME="Parrot GNU/Linux"
ID=parrot
ID_LIKE=debian
VERSION="4.10"
VERSION_ID="4.10"
HOME_URL="https://www.parrotsec.org/"
SUPPORT_URL="https://community.parrotsec.org/"
BUG_REPORT_URL="https://community.parrotsec.org/"

What hardware are you running? Not relevant

What method did you use to install Parrot? Docker: docker run -ti --network host parrotsec/core:latest

Configured to multiboot with other systems? no

If there are any similar issues or solutions, link to them below: Not that I know of

If there are any error messages or relevant logs, post them below:

We have recently got reports that our program no longer builds on parrot os. The reason seemed to be that python3-xcbgen version 1.14-2 is not compatible with python3 version 3.9.0-4

Executing the file /usr/lib/python3/dist-packages/xcbgen/align.py from the python3-xcbgen package leads to an error:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/xcbgen/align.py", line 5, in <module>
    from fractions import gcd
ImportError: cannot import name 'gcd' from 'fractions' (/usr/lib/python3.9/fractions.py)

This is because starting with python 3.9, fractions.py no longer contains gcd.
The most recent version of python3-xcbgen 1.14.1-1 (debian testing) has resolved this issue but this version is not yet in the parrot repos.

Thank you for reporting it. let me tell @palinuro to sync the packages on debian repo to our test branch

1 Like