https://bugzilla.redhat.com/show_bug.cgi?id=1897070
Bug ID: 1897070
Summary: javapackages-tools fails to build with Python 3.10:
undefined symbol: _PyGen_Send [patch exists]
Product: Fedora
Version: rawhide
Status: NEW
Component: javapackages-tools
Assignee: mizdebsk(a)redhat.com
Reporter: thrnciar(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: java-sig-commits(a)lists.fedoraproject.org,
mat.booth(a)redhat.com, mhroncok(a)redhat.com,
mizdebsk(a)redhat.com, msrb(a)redhat.com,
sochotni(a)redhat.com, thrnciar(a)redhat.com
Blocks: 1890881 (PYTHON3.10)
Target Milestone: ---
Classification: Fedora
javapackages-tools fails to build with Python 3.10.0a2.
ERROR: xmvn_config_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: xmvn_config_test
Traceback (most recent call last):
File "/usr/lib64/python3.10/unittest/loader.py", line 154, in
loadTestsFromName
module = __import__(module_name)
File
"/builddir/build/BUILD/javapackages-5.3.0/python/test/xmvn_config_test.py",
line 4, in <module>
import lxml.etree as ET
ImportError:
/usr/lib64/python3.10/site-packages/lxml/etree.cpython-310-x86_64-linux-gnu.so:
undefined symbol: _PyGen_Send
======================================================================
ERROR: pom_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: pom_test
Traceback (most recent call last):
File "/usr/lib64/python3.10/unittest/loader.py", line 154, in
loadTestsFromName
module = __import__(module_name)
File "/builddir/build/BUILD/javapackages-5.3.0/python/test/pom_test.py", line
5, in <module>
from javapackages.maven.pom import POM, PomLoadingException
File
"/builddir/build/BUILD/javapackages-5.3.0/python/javapackages/maven/pom.py",
line 35, in <module>
import javapackages.maven.pomreader as POMReader
File
"/builddir/build/BUILD/javapackages-5.3.0/python/javapackages/maven/pomreader.py",
line 34, in <module>
from lxml.etree import ElementTree, XMLParser
ImportError:
/usr/lib64/python3.10/site-packages/lxml/etree.cpython-310-x86_64-linux-gnu.so:
undefined symbol: _PyGen_Send
======================================================================
ERROR: metadata_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: metadata_test
Traceback (most recent call last):
File "/usr/lib64/python3.10/unittest/loader.py", line 154, in
loadTestsFromName
module = __import__(module_name)
File "/builddir/build/BUILD/javapackages-5.3.0/python/test/metadata_test.py",
line 4, in <module>
from javapackages.metadata.metadata import Metadata,
MetadataInvalidException, MetadataLoadingException
File
"/builddir/build/BUILD/javapackages-5.3.0/python/javapackages/metadata/metadata.py",
line 40, in <module>
from lxml import etree
ImportError:
/usr/lib64/python3.10/site-packages/lxml/etree.cpython-310-x86_64-linux-gnu.so:
undefined symbol: _PyGen_Send
======================================================================
ERROR: artifact_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: artifact_test
Traceback (most recent call last):
File "/usr/lib64/python3.10/unittest/loader.py", line 154, in
loadTestsFromName
module = __import__(module_name)
File "/builddir/build/BUILD/javapackages-5.3.0/python/test/artifact_test.py",
line 3, in <module>
from lxml.etree import fromstring, parse
ImportError:
/usr/lib64/python3.10/site-packages/lxml/etree.cpython-310-x86_64-linux-gnu.so:
undefined symbol: _PyGen_Send
This seem to be related to
https://github.com/cython/cython/issues/3876.
It might be fixed with this patch
https://github.com/cython/cython/pull/3877
that works for numpy. Upstream has decided to solve this differently, but until
that happens, we are using this patch in our Copr (for other packages).
For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora...
For all our attempts to build javapackages-tools with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/javap...
Testing and mass rebuild of packages is happening in copr. You can follow these
instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/
Let us know here if you have any questions.
Python 3.10 will be included in Fedora 35. To make that update smoother, we're
building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive
[Build]Requires), so if this package is required a lot, it's important for us
to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you
don't want to work on this now, let us know so we can try to work around it on
our side.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1890881
[Bug 1890881] Python 3.10 tracker
--
You are receiving this mail because:
You are on the CC list for the bug.