-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ValueError: buffer source array is read-only #11502
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
yep looks like the same issue why do you have the read only flag set in the first place? |
I have no idea. I have a pipeline of like 20 munging steps, but I haven't actually debugged why things end up read-only. Presumably, the issue is related to the usual "copy versus view" slicing stuff that always trips people up. |
@kyleabeauchamp ok. would love to see a pull-request to fix (along the same lines as the issue you mentioned above). should be straightforward to do. |
This error appears in 0.17.1 and 0.17.0 when trying to aggregate large tables. This error does not appear in 0.16.2. Something broke between 0.16.2 and 0.17.0. |
Glad I stumbled upon this issue. I am running into issue training a pipeline in sklearn, and found this error "ValueError: buffer source array is read-only". It seems to only occur under sklearn 0.17.0. When I downgrade to 0.15.2 (the version I was using when I built the pipeline originally), the issue doesn't occur. I assume it's related to whatever this bug is. |
+1 |
closed by #12033 |
After upgrading to 0.17 (anaconda 2.7 + OSX), I'm finding that some previously working code is failing with
ValueError: buffer source array is read-only
. Driver code is below. The issue is basically the series version of #10043. I think the problem is that the patch for #10043 (#10070) only fixed thetake_2d
templates, leaving thetake_1d
(Series) versions with the old behavior. Based on my naive understanding, it might be straightforward to extend #10070 for the 1D cases.Stacktrace is below.
The text was updated successfully, but these errors were encountered: