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.

Multiple scipy import errors in wheel build

See original GitHub issue

The wheel builds are all currently failing:

https://travis-ci.org/MacPython/astropy-wheels/builds/297157553

I think the failures are all of form:

________________________ test_kuiper_two_uniform[5-5] _________________________

N = 5, M = 5

    @pytest.mark.skipif('not HAS_SCIPY')
    @pytest.mark.parametrize('N,M', [(100, 100),
                                     (20, 100),
                                     (100, 20),
                                     (10, 20),
                                     (5, 5),
                                     (1000, 100)])
    def test_kuiper_two_uniform(N, M):
        with NumpyRNGContext(12345):
>           assert funcs.kuiper_two(np.random.random(N),
                                    np.random.random(M))[1] > 0.01

/venv/lib/python3.5/site-packages/astropy/stats/tests/test_funcs.py:649: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/venv/lib/python3.5/site-packages/astropy/stats/funcs.py:1432: in kuiper_two
    return D, kuiper_false_positive_probability(D, Ne)
/venv/lib/python3.5/site-packages/astropy/stats/funcs.py:1288: in kuiper_false_positive_probability
    a**(N - 1.) * (1. - b)) / float(N)**(N - 2) * (b - a)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (1.5,), kwds = {}

    def newfunc(*args,**kwds):
        """`arrayrange` is deprecated, use `arange` instead!"""
>       warnings.warn(depdoc, DeprecationWarning)
E       DeprecationWarning: `factorial` is deprecated!
E       Importing `factorial` from scipy.misc is deprecated in scipy 1.0.0. Use `scipy.special.factorial` instead.

The builds started failing on 25 October.

https://travis-ci.org/MacPython/astropy-wheels/builds

I think this corresponds to Scipy 1.0, which was released on the 25th October.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bsipoczcommented, Nov 8, 2017

Well, they were fixed, but the last one is failing again due to missing pytest-astropy. I’ll try to address that in the wheel and keep in mind to close this issue.

0reactions
bsipoczcommented, May 1, 2018

Thanks @crawfordsm pointing out that this can be closed, apparently I didn’t keep it in mind 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build multiple wheels at runtime - python - Stack Overflow
So my main question: Is there a way to build a wheel without any side effects? Or is there a way to reset...
Read more >
Knowledge Bits — Common Python Packaging Mistakes
An overview of common mistakes made in creating & building a Python package and how to avoid them.
Read more >
[pypy3.8] wheel build failure for scipy>=1.7.0 - PyPy - Heptapod
scipy -1.6.3 builds wheel and installs ok. ... installing scipy works and I no longer see this error. $ pip3 install scipy Collecting...
Read more >
BUG: Failed to build with setuptools 61.3.1 #21288 - GitHub
Describe the issue: This could be related: pypa/setuptools#3197 (comment) Latest numpy release (1.22.3) cannot build from source when using ...
Read more >
Python import: Advanced Techniques and Tips
The Python import system is as powerful as it is useful. In this in-depth tutorial, you'll learn how to harness this power to...
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