[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#975800: libxcb: FTBFS: ImportError: cannot import name 'gcd' from 'fractions' (/usr/lib/python3.9/fractions.py)



Source: libxcb
Version: 1.14-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201125 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> make[2]: Entering directory '/<<PKGBUILDDIR>>/build/src'
> python3 ../../src/c_client.py	-c "libxcb 1.14" -l "X Version 11" \
> 	-s "3" -p //usr/lib/python3.8/site-packages \
> 	 \
> 	//usr/share/xcb/xproto.xml
> python3 ../../src/c_client.py	-c "libxcb 1.14" -l "X Version 11" \
> 	-s "3" -p //usr/lib/python3.8/site-packages \
> 	 \
> 	//usr/share/xcb/bigreq.xml
> python3 ../../src/c_client.py	-c "libxcb 1.14" -l "X Version 11" \
> 	-s "3" -p //usr/lib/python3.8/site-packages \
> 	 \
> 	//usr/share/xcb/xc_misc.xml
> python3 ../../src/c_client.py	-c "libxcb 1.14" -l "X Version 11" \
> 	-s "3" -p //usr/lib/python3.8/site-packages \
> 	 \
> 	//usr/share/xcb/composite.xml
> 
> Failed to load the xcbgen Python package!
> Make sure that xcb/proto installed it on your Python path.
> If not, you will need to create a .pth file or define $PYTHONPATH
> to extend the path.
> Refer to the README file in xcb/proto for more info.
> 
> 
> Failed to load the xcbgen Python package!
> Make sure that xcb/proto installed it on your Python path.
> If not, you will need to create a .pth file or define $PYTHONPATH
> to extend the path.
> Refer to the README file in xcb/proto for more info.
> 
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/build/src/../../src/c_client.py", line 3338, in <module>
> 
> Failed to load the xcbgen Python package!
> Make sure that xcb/proto installed it on your Python path.
> If not, you will need to create a .pth file or define $PYTHONPATH
> to extend the path.
> Refer to the README file in xcb/proto for more info.
> 
> 
> Failed to load the xcbgen Python package!
> Make sure that xcb/proto installed it on your Python path.
> If not, you will need to create a .pth file or define $PYTHONPATH
> to extend the path.
> Refer to the README file in xcb/proto for more info.
> 
> Traceback (most recent call last):
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/build/src/../../src/c_client.py", line 3338, in <module>
>   File "/<<PKGBUILDDIR>>/build/src/../../src/c_client.py", line 3338, in <module>
>     from xcbgen.state import Module
>   File "/usr/lib/python3/dist-packages/xcbgen/state.py", line 7, in <module>
>     from xcbgen.state import Module
>     from xcbgen.state import Module
>   File "/usr/lib/python3/dist-packages/xcbgen/state.py", line 7, in <module>
>   File "/usr/lib/python3/dist-packages/xcbgen/state.py", line 7, in <module>
>     from xcbgen import matcher
>     from xcbgen import matcher
>   File "/usr/lib/python3/dist-packages/xcbgen/matcher.py", line 12, in <module>
>     from xcbgen import matcher
>   File "/usr/lib/python3/dist-packages/xcbgen/matcher.py", line 12, in <module>
>     from xcbgen.xtypes import *
>   File "/usr/lib/python3/dist-packages/xcbgen/xtypes.py", line 5, in <module>
>     from xcbgen.xtypes import *
>   File "/usr/lib/python3/dist-packages/xcbgen/matcher.py", line 12, in <module>
>     from xcbgen.align import Alignment, AlignmentLog
>   File "/usr/lib/python3/dist-packages/xcbgen/align.py", line 5, in <module>
>   File "/usr/lib/python3/dist-packages/xcbgen/xtypes.py", line 5, in <module>
>     from fractions import gcd
>     from xcbgen.xtypes import *
>   File "/usr/lib/python3/dist-packages/xcbgen/xtypes.py", line 5, in <module>
>     from xcbgen.align import Alignment, AlignmentLog
>     from xcbgen.align import Alignment, AlignmentLog
>   File "/usr/lib/python3/dist-packages/xcbgen/align.py", line 5, in <module>
> ImportError: cannot import name 'gcd' from 'fractions' (/usr/lib/python3.9/fractions.py)
>   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)
>     from fractions import gcd
> ImportError: cannot import name 'gcd' from 'fractions' (/usr/lib/python3.9/fractions.py)
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/build/src/../../src/c_client.py", line 3338, in <module>
>     from xcbgen.state import Module
>   File "/usr/lib/python3/dist-packages/xcbgen/state.py", line 7, in <module>
>     from xcbgen import matcher
>   File "/usr/lib/python3/dist-packages/xcbgen/matcher.py", line 12, in <module>
>     from xcbgen.xtypes import *
>   File "/usr/lib/python3/dist-packages/xcbgen/xtypes.py", line 5, in <module>
>     from xcbgen.align import Alignment, AlignmentLog
>   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)
> make[2]: *** [Makefile:1407: xproto.c] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/11/25/libxcb_1.14-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.


Reply to: