OverflowError: Python int too large to convert to C long
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Meliae |
New
|
Undecided
|
Unassigned |
Bug Description
Meliae doesn't play nicely with PyGObject. As well as #1883514, it is trivial to produce a "Python int too large to convert to C long". Code to reproduce the problem:
=== Begin Dockerfile ===
FROM python:3.9-bullseye
RUN apt update
RUN apt install -y libgirepository
RUN pip install meliae PyGObject
COPY test.py /
ENTRYPOINT ["/usr/
=== End Dockerfile ===
=== Begin test.py ===
from gi.repository import GObject
import meliae.scanner
x = GObject.Object()
with open('tst', 'wb') as f:
meliae.
=== End test.py ===
$ docker built . -t gobject-test
$ docker run gobject-test
OverflowError: Python int too large to convert to C long
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/test.py", line 6, in <module>
meliae.
File "/usr/local/
dump_
File "/usr/local/
_scanner.
SystemError: <built-in function dump_object_info> returned a result with an error set
I've confirmed this on Python 3.6 and 3.10.