Bug 1830943 - sympy fails to build with Python 3.9: test_V12 expected to fail but passed
Summary: sympy fails to build with Python 3.9: test_V12 expected to fail but passed
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: sympy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jerry James
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-05-04 11:52 UTC by Miro Hrončok
Modified: 2020-05-11 15:18 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-11 15:11:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2020-05-04 11:52:42 UTC
sympy fails to build with Python 3.9.0a6.

________________________________ xpassed tests _________________________________
sympy/utilities/tests/test_wester.py: test_V12

 tests finished: 1261 passed, 41 skipped, 180 expected to fail, 
1 expected to fail but passed, in 541.79 seconds 
/usr/lib64/python3.9/site-packages/numexpr/expressions.py:199: RuntimeWarning: invalid value encountered in log
  return ConstantNode(func(*[x.value for x in args]))


RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.BpgSAw (%check)

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01365644-sympy/

For all our attempts to build sympy with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/sympy/

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.9:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9.
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.

Comment 1 Jerry James 2020-05-11 15:11:43 UTC
The problem actually was not the unexpected test pass, but rather that sampling from sets is deprecated.  I submitted a fix upstream (https://github.com/sympy/sympy/pull/19291) and patched the Fedora package.  It has been built in Rawhide.

Comment 2 Miro Hrončok 2020-05-11 15:18:56 UTC
Thank You, Jerry.


Note You need to log in before you can comment on or make changes to this bug.