Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array analysis failure cannot unpack non-iterable NoneType object #5439

Closed
2 tasks done
stuartarchibald opened this issue Mar 26, 2020 · 2 comments
Closed
2 tasks done

Comments

@stuartarchibald
Copy link
Contributor

Reporting a bug

This:

from numba import njit, prange
import numpy as np

@njit(parallel=True)
def f3():
    arr = np.arange(20)
    for i in prange(2):
        for j in range(20):
            idx = j

        _ = arr[:idx]

f3()

does this:

numba/numba/parfors/array_analysis.py", line 826, in plus
    (var, offset) = x
TypeError: Failed in nopython mode pipeline (step: convert to parfors)
cannot unpack non-iterable NoneType object
@stuartarchibald
Copy link
Contributor Author

CC @DrTodd13

@sklam
Copy link
Member

sklam commented May 15, 2020

Fixed by #5694

@sklam sklam closed this as completed May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants