Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1058290: python-kafka: FTBFS: E ModuleNotFoundError: No module named 'kafka.vendor.six.moves'

1,145 views
Skip to first unread message

Lucas Nussbaum

unread,
Dec 12, 2023, 3:50:05 AM12/12/23
to
Source: python-kafka
Version: 2.0.2-5
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20231212 ftbfs-trixie

Hi,

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


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> make[1]: pyversions: No such file or directory
> py3versions: no X-Python3-Version in control file, using supported versions
> mkdir -p kafka_python.egg-info
> cp debian/PKG-INFO kafka_python.egg-info
> ln -s kafka kafka-python
> set -e ; set -x ; for i in 3.12 3.11 ; do \
> PYTHON=python$i PYTHONPATH=. python$i -m pytest test ; \
> done
> + PYTHON=python3.12 PYTHONPATH=. python3.12 -m pytest test
> ImportError while loading conftest '/<<PKGBUILDDIR>>/test/conftest.py'.
> test/__init__.py:7: in <module>
> from kafka.future import Future
> kafka/__init__.py:23: in <module>
> from kafka.consumer import KafkaConsumer
> kafka/consumer/__init__.py:3: in <module>
> from kafka.consumer.group import KafkaConsumer
> kafka/consumer/group.py:13: in <module>
> from kafka.consumer.fetcher import Fetcher
> kafka/consumer/fetcher.py:19: in <module>
> from kafka.record import MemoryRecords
> kafka/record/__init__.py:1: in <module>
> from kafka.record.memory_records import MemoryRecords, MemoryRecordsBuilder
> kafka/record/memory_records.py:27: in <module>
> from kafka.record.legacy_records import LegacyRecordBatch, LegacyRecordBatchBuilder
> kafka/record/legacy_records.py:50: in <module>
> from kafka.codec import (
> kafka/codec.py:9: in <module>
> from kafka.vendor.six.moves import range
> E ModuleNotFoundError: No module named 'kafka.vendor.six.moves'
> make[1]: *** [debian/rules:26: override_dh_auto_test] Error 4


The full build log is available from:
http://qa-logs.debian.net/2023/12/12/python-kafka_2.0.2-5_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

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!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Alexandre Detiste

unread,
Jan 11, 2024, 5:00:05 AM1/11/24
to
This one line is a no-op under Python3 and can be removed

> from kafka.vendor.six.moves import range

I ll have a more torough look at home and use CodeSearch to locate vendored copies of six.py

Greetings
0 new messages