-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Test failures TestNewBufferProtocol.test_error_too_many_dims #11115
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
Comments
Hmm, I recall reporting this somewhere. In any case, the failing test came in with #10882, so this may not actually be new. @eric-wieser If you have time, could you take a look? |
Dammit - sorry - I thought I'd searched for the test name ... |
I wonder if it is a python 2.7 micro version problem. I don't know what version MacPython is running, but maybe we can upgrade it. |
I don't see anything in the cpython history of memory views that looks relevant. I'm going to guess that the problem is something else, but still Python 2.7 version related. |
FWIW, and it probably isn't worth much since memoryview support for ctypes/c-api seems incomplete, PyPy2 is also showing new test failures on NumPy HEAD |
Hmm, "ValueError" instead of "RuntimeError", message is also wrong, should be
strange, it looks like the wrong version of numpy is being run. |
Just to complete the linking, there was a comment thread about this at #10970 (comment). For whatever reason, it seems that on my machine, the PEP3118 parsing succeeds, and then the second pass of actually checking we can use the format fails. It seems that for those builds, the PEP3118 parsing fails before the ndim check is even reached. This is very strange, given that I thought that parsing was happening in pure python. Are we able to reproduce this error on anything other than that build server? |
There are some fixes for |
I haven't seen it anywhere else, and only for the manylinux1 wheel builds. |
The easy fix here might be to disable the test for python 2.7. Bit drastic. Or we could just check for an error. rather than a particular error. |
Would be great to know what the cause is here. I'll submit a PR to chain the exceptions (edit: #11119), but unfortunately that won't help python 2 |
Calling |
Interesting question. Could create a temporary numpy branch with the test and make a PR on |
Here's building and running the code in the test environment: c.f. https://github.com/scikit-image/scikit-image/wiki/Testing-in-32-bit-environment
In the docker test container:
giving output:
I get the same output if I first build the wheel in the manylinux docker container, then test in the testing container:
|
Looks like a ctypes bug. What does the following give in that docker container?
For me I get
|
|
Yeah, ctypes is wrong there. What python version? |
That was Python 2.7.6. I get the same for Python 2.7.5 on Ubuntu 14.04. I get this on Python 2.7.12 on Ubuntu 16.04:
|
I guess we should xfail the test on versions of python. I'll see if I can find the exact version |
@eric-wieser looking at that issue it seems I should have remembered that, nice detective work |
@mattip, since you've looked at ctype arrays before - could I get you to review python/cpython#5576? |
Why not use the ctypes result to decide whether to run the test?
…On Sun, 20 May 2018 2:48 AM Eric Wieser, ***@***.***> wrote:
Not sure how to find the minor version from that commit.
@mattip <https://github.com/mattip>, since you've looked at ctype arrayss
before - could I get you to review python/cpython#5576
<python/cpython#5576>?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11115 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAEIHHaYB4vWtUBKGSo0eDk8uU3O5dLkks5t0MuJgaJpZM4UE2Si>
.
|
Let's just add a |
See: https://travis-ci.org/MacPython/numpy-wheels/jobs/380655687
Only for 32-bit Unicode Python 2.7: https://travis-ci.org/MacPython/numpy-wheels/builds/380655679
Error present at commit db552b5 "Merge pull request #10996 from adeak/docfix-stringio-unicode" (23 days ago).
Not present at commit b5c1bcf "Merge pull request #10891 from eric-wieser/assert-no-cycles" (25 days ago): https://travis-ci.org/MacPython/numpy-wheels/builds/370054701
In
git log b5c1bcf1e..db552b5b6
I noticed references to #10971 and #10882 which both mention buffers - are they relevant?The text was updated successfully, but these errors were encountered: