-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ValueError: cannot set WRITEABLE flag to True of this array #24839
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
@macd2 : Thanks for reporting this! A couple of things:
cc @jreback |
When using numpy=1.16.0 I get this error, when I downgrade numpy=1.15.4 problem is gone |
@gfyoung Sure here is the Versions:
unfortunately i can not share the file but i think the issues indeed comes from numpy as @vvvlc said here is an other issue on their git:
|
Is there anything pandas can do in the meantime? Or just wait for the next
pytables release?
…On Mon, Jan 21, 2019 at 5:34 AM macd2 ***@***.***> wrote:
@gfyoung <https://github.com/gfyoung> Sure here is the Versions:
'dependencies':
{'pandas': '0.23.4', 'pytest': '3.4.0', 'pip': '18.1', 'setuptools': '40.6.3', 'Cython': '0.29.3', 'numpy': '1.16.0', 'scipy': '1.2.0', 'pyarrow': None, 'xarray': None, 'IPython': '6.5.0', 'sphinx': None, 'patsy': '0.5.0', 'dateutil': '2.7.5', 'pytz': '2018.7', 'blosc': None, 'bottleneck': '1.2.1', 'tables': '3.4.4', 'numexpr': '2.6.8', 'feather': None, 'matplotlib': '3.0.2', 'openpyxl': '2.5.12', 'xlrd': '1.1.0', 'xlwt': '1.3.0', 'xlsxwriter': '0.7.3', 'lxml': '4.1.1', 'bs4': '4.4.1', 'html5lib': '1.0b8', 'sqlalchemy': '1.2.15', 'pymysql': '0.9.2', 'psycopg2': '2.7.6.1 (dt dec pq3 ext lo64)', 'jinja2': '2.10', 's3fs': None, 'fastparquet': None, 'pandas_gbq': None, 'pandas_datareader': '0.7.0'}
unfortunately i can not share the file but i think the issues indeed comes
from numpy as @vvvlc <https://github.com/vvvlc> said here is an other
issue on their git:
nipy/nibabel#697 <nipy/nibabel#697>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#24839 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQHIqiIyuE-lmMlN2Ep-4htyMrTBdefks5vFaWqgaJpZM4aJQqs>
.
|
For me @TomAugspurger this issue comes up on Google on top (at least for me it did) and it seems that the remedy is simple, so maybe it's enough to just wait for an upstream fix. Really great that you would ask :) |
However, when I downgraded numpy i kept getting this error |
you can avoid the error: This will likely solve your problem, tested with pandas 0.24 and numpy 1.16+ |
@dev72 |
I think the best way to read old hdf files is to downgrade your pandas+numpy version, read all data and write it in a new hdf store with |
@dev72 yes right im at the same point, but than i rather stick with the downgrade until this is properly fixed |
yes same came from google, thanks for filing this issue @macd2 |
So after chasing around a few issues submitted at PyTables/PyTables#719 (comment) Has anyone tried using |
I got it to work using this
Make sure cython and hdf5 are installed. |
What versions of pytables and numpy reproduce this? Is it specific to the data? with
this doesn't raise, In [8]: df = pd.DataFrame({"A": [1, 2]})
In [9]: df.to_hdf('x.hdf5', key='x')
In [10]: pd.read_hdf('x.hdf5', 'x', mode='r')
Out[10]:
A
0 1
1 2 FYI, pytables 3.5.0 and 3.5.1 are on PyPI with the fix from the pytables side. |
Upgrading to pytables 3.5.1 fixes the problem for me also with numpy 1.16.2 |
…st versions of pandas/numpy Reference: pandas-dev/pandas#24839
* Updates to analytics-host to support multiple `AnalysisGroup` - This update modifies `analytics-host` to accept multiple device/device archive slugs to create `AnalysisGroup` from them * Fixed `find_analysis_group` to accomodate list input from argparse * Updated pytables version to 3.5.1 to address incomptability with latest versions of pandas/numpy (pandas-dev/pandas#24839) * Added a new template 'multiple_source_info' to get information similar to the 'basic_info' template but for a sequence of device/block slugs input to `analytics-host`
dealing with tf 2.0.0 need numpy (at least) 1.16.0. downgrading numpy to the previous version won't work on tf 2.0.0 |
solution seems to be to downgrade from numpy 1.16: pandas-dev/pandas#24839
bug reported in related with hdf5 seems to be fixed now: pandas-dev/pandas#24839 requires pytables>3.5.1
will need to revert the xfail decorator in: #25517 when this is fixed
Code Sample, a copy-pastable example if possible
Im getting all of a sudden this Error, any idea?
Problem description
Traceback :
The text was updated successfully, but these errors were encountered: