Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14788

Bug#1026605: python-avro: FTBFS: AssertionError: 'reader type: null not compatible with writer type: int' not found in {'reader type: SchemaType.NULL not compatible with writer type: SchemaType.INT'}

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Scott Talbert <swt@techie.net>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#1026605: python-avro: FTBFS: AssertionError: 'reader type: null not compatible with writer type: int' not found in {'reader type: SchemaType.NULL not compatible with writer type: SchemaType.INT'}
Date Thu, 29 Dec 2022 23:10:01 +0100
Message-ID <FI9g5-ebZr-7@gated-at.bofh.it> (permalink)
References <FI8tH-ebs2-1@gated-at.bofh.it> <FI8N3-ebzh-3@gated-at.bofh.it> <FEOL1-bZMD-63@gated-at.bofh.it> <FI8N3-ebzh-3@gated-at.bofh.it>
X-Original-To Scott Kitterman <debian@kitterman.com>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Thu Dec 29 22:09:09 2022
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.751
Reply-To Scott Talbert <swt@techie.net>, 1026605@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Python Team <team+python@tracker.debian.org>
X-Debian-Pr-Message followup 1026605
X-Debian-Pr-Package src:python-avro
X-Debian-Pr-Keywords sid ftbfs bookworm pending help
X-Debian-Pr-Source python-avro
MIME-Version 1.0
Content-Type text/plain; charset=US-ASCII; format=flowed
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1750897
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 49
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc 1026605@bugs.debian.org, Debian Python <debian-python@lists.debian.org>
X-Original-Date Thu, 29 Dec 2022 17:05:42 -0500 (EST)
X-Original-Message-ID <6497c96c-e8e1-c1f6-8412-7663217d1cd7@techie.net>
X-Original-References <Y64C8HZMLlseMJyp@an3as.eu> <3515026.326zV0rrUQ@zini-1880> <Y6HvfJ86HhKXyZtj@xanadu.blop.info> <3515026.326zV0rrUQ@zini-1880>
Xref csiph.com linux.debian.bugs.dist:1130709 linux.debian.maint.python:14788

Cross-posted to 2 groups.

Show key headers only | View raw


On Thu, 29 Dec 2022, Scott Kitterman wrote:

> On Thursday, December 29, 2022 4:13:20 PM EST Andreas Tille wrote:
>> Control: tags -1 help
>>
>> Hi,
>>
>> I wonder whether someone might suggest a fix for
>>
>>
>> ======================================================================
>> FAIL: test_schema_compatibility_type_mismatch
>> (avro.test.test_compatibility.TestCompatibility.test_schema_compatibility_t
>> ype_mismatch)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/build/python-avro-1.11.1+dfsg/.pybuild/cpython3_3.11_avro/build/avro/test
>> /test_compatibility.py", line 1039, in
>> test_schema_compatibility_type_mismatch self.assertIn(message,
>> result.messages)
>> AssertionError: 'reader type: null not compatible with writer type: int' not
>> found in {'reader type: SchemaType.NULL not compatible with writer type:
>> SchemaType.INT'}
>>
>> ----------------------------------------------------------------------
>> Ran 421 tests in 8.358s
>>
>> FAILED (failures=1, skipped=3)
>>
>>
>> Otherwise I will probably exclude Python3.11 from the build to fix this bug.
>
> That's not an actual solution.  If you close the bug on this basis it will
> hide the issue and make it appear we are more ready to move to Python 3.11 as
> the default (and probably only) Python version for Bookworm.
>
> I didn't look at the actual code.  Typically when something comes up Null is
> means that something was not found.  I would look at the code where SchemaType
> is determined to see how it might come up with no SchemaType.

It looks like this has already been fixed upstream (although with a 
non-obvious commit message):

https://github.com/apache/avro/commit/432f073c3cfb8ac7edb2793b797ab855c5a978dd

I just uploaded a fix.

Scott T.

Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1026605: python-avro: FTBFS: AssertionError: 'reader type: null not compatible with writer type: int' not found in {'reader type: SchemaType.NULL not compatible with writer type: SchemaType.INT'} Scott Talbert <swt@techie.net> - 2022-12-29 23:10 +0100
  Re: python-avro: FTBFS: AssertionError: 'reader type: null not  compatible with writer type: int' not found in {'reader type:  SchemaType.NULL not compatible with writer type: SchemaType.INT'} Andreas Tille <andreas@an3as.eu> - 2022-12-30 10:40 +0100

csiph-web