question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Numpy Prerelease Failure

See original GitHub issue

Just had a build which failed with the numpy prerelease:

=================================== FAILURES ===================================

_______________________ TestUfuncCoverage.test_coverage ________________________

self = <astropy.units.tests.test_quantity_ufuncs.TestUfuncCoverage object at 0x7f53072ec2e8>

    def test_coverage(self):

        all_np_ufuncs = set([ufunc for ufunc in np.core.umath.__dict__.values()

                             if type(ufunc) == np.ufunc])

    

        from .. import quantity_helper as qh

    

        all_q_ufuncs = (qh.UNSUPPORTED_UFUNCS |

                        set(qh.UFUNC_HELPERS.keys()))

    

>       assert all_np_ufuncs - all_q_ufuncs == set([])

E       assert {<ufunc 'float_power'>} == set()

E         Extra items in the left set:

E         <ufunc 'float_power'>

E         Use -v to get the full diff

astropy/units/tests/test_quantity_ufuncs.py:25: AssertionError

= 1 failed, 8228 passed, 437 skipped, 71 xfailed, 1 xpassed in 272.09 seconds ==

Maybe that’s an upstream issue but it’s more likely they added another ufunc that should be supported with quantities.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mhvkcommented, Nov 17, 2016

This was added very late in the development cycle. PR in progress…

0reactions
MSeifert04commented, Nov 17, 2016

@bsipocz I think the main reason why this wasn’t spotted is because numpy-dev is an allowed failure. In most cases one never looks at the CI reports if the lights are green. The PR was added a 12 days ago: https://github.com/numpy/numpy/pull/8190

@mhvk Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

New pre-release of numpy breaks an old repository ... - GitHub
Since a few days ago our CI started failing for one of the 'frozen in time" repos we use to check if we...
Read more >
Releasing a version — NumPy v1.23 Manual
Note that sometimes builds, like tests, fail for unrelated reasons and you will need to rerun them. You will need to be logged...
Read more >
Cython Numpy warning about NPY_NO_DEPRECATED_API ...
It tries to acces the base field -- but I am not doing it, it's Cython's fault. I simply converted a memoryview to...
Read more >
numpy 1.13.3 - PyPI
NumPy is a general-purpose array-processing package designed to efficiently manipulate large multi-dimensional arrays of arbitrary records without ...
Read more >
Error: Could not build wheels for numpy in Python | bobbyhadz
ERROR : Failed building wheel for numpy Failed to build numpy ERROR: Could not ... The --pre option makes it so pip includes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found