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

Failing tests with numpy 1.18.0 #354

Closed
FRidh opened this issue Jan 3, 2020 · 2 comments
Closed

Failing tests with numpy 1.18.0 #354

FRidh opened this issue Jan 3, 2020 · 2 comments

Comments

@FRidh
Copy link

@FRidh FRidh commented Jan 3, 2020

  • Python 3.7.6
  • numpy 1.18.0
  • numexpr 2.7.0
======================================================================
ERROR: test_changing_nthreads_00_inc (numexpr.tests.test_numexpr.test_evaluate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/9jl7rqxx2x5y8x2nv5h6zi93x6aw97v7-python3.7-numpy-1.18.0/lib/python3.7/site-packages/numpy/core/function_base.py", line 117, in linspace
    num = operator.index(num)
TypeError: 'float' object cannot be interpreted as an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/wv4mwsc76kq7a21x7fp86k5xw9dayr07-python3.7-numexpr-2.7.0/lib/python3.7/site-packages/numexpr/tests/test_numexpr.py", line 508, in test_changing_nthreads_00_inc
    a = linspace(-1, 1, 1e6)
  File "<__array_function__ internals>", line 6, in linspace
  File "/nix/store/9jl7rqxx2x5y8x2nv5h6zi93x6aw97v7-python3.7-numpy-1.18.0/lib/python3.7/site-packages/numpy/core/function_base.py", line 121, in linspace
    .format(type(num)))
TypeError: object of type <class 'float'> cannot be safely interpreted as an integer.

======================================================================
ERROR: test_changing_nthreads_01_dec (numexpr.tests.test_numexpr.test_evaluate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/9jl7rqxx2x5y8x2nv5h6zi93x6aw97v7-python3.7-numpy-1.18.0/lib/python3.7/site-packages/numpy/core/function_base.py", line 117, in linspace
    num = operator.index(num)
TypeError: 'float' object cannot be interpreted as an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/wv4mwsc76kq7a21x7fp86k5xw9dayr07-python3.7-numexpr-2.7.0/lib/python3.7/site-packages/numexpr/tests/test_numexpr.py", line 516, in test_changing_nthreads_01_dec
    a = linspace(-1, 1, 1e6)
  File "<__array_function__ internals>", line 6, in linspace
  File "/nix/store/9jl7rqxx2x5y8x2nv5h6zi93x6aw97v7-python3.7-numpy-1.18.0/lib/python3.7/site-packages/numpy/core/function_base.py", line 121, in linspace
    .format(type(num)))
TypeError: object of type <class 'float'> cannot be safely interpreted as an integer.

----------------------------------------------------------------------
Ran 5522 tests in 4.102s
@robbmcleod
Copy link
Member

@robbmcleod robbmcleod commented Jan 3, 2020

At first glance it looks like some numpy function is returning float when it used to return int in 1.18.

@robbmcleod
Copy link
Member

@robbmcleod robbmcleod commented Jan 3, 2020

Should be fixed in 3f96a29, although Appveyor continues to fail in 3.8 for Windows. I'll look into releasing 2.7.1 today or tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.