[
https://issues.apache.org/jira/browse/ARROW-4561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wes McKinney closed ARROW-4561.
-------------------------------
Resolution: Cannot Reproduce
I created a fresh Windows conda environment with feather-format and pyarrow and
all is working as advertised
https://gist.github.com/wesm/c5b53e5e21b7f7c467522a64eef963fe
Things can get messy in Anaconda installs if there are packages installed in
the root environment, since these can conflict with other envs. I suggest you
seek help from Anaconda forums; we aren't able to provide general conda
support. It might be worth nuking your Anaconda install and starting over
> module 'pyarrow' has no attribute 'compat'
> ------------------------------------------
>
> Key: ARROW-4561
> URL: https://issues.apache.org/jira/browse/ARROW-4561
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 0.11.0, 0.11.1
> Reporter: Ganesh Bhat
> Priority: Major
>
> Hi,
> I am trying to create feather format using pyarrow in jupyer notebook and am
> getting the error as below. I am running jupyter notebook using Anaconda on
> Windows 10.
> I have installed feather format and pyarrow version 0.10.0, 0.11.0 & 0.11.1
> and the issue still remains
> <code> df_raw.to_feather('tmp/bulldozers-raw') </code>
>
> <error>
> AttributeError Traceback (most recent call last)
> <ipython-input-31-1183c5952e65> in <module> 1 os.makedirs('tmp',
> exist_ok=True) ----> 2 df_raw.to_feather('tmp/bulldozers-raw')
> D:\Anaconda3\envs\fastai\lib\site-packages\pandas\core\frame.py in
> to_feather(self, fname) 1890 """ 1891 from pandas.io.feather_format import
> to_feather -> 1892 to_feather(self, fname) 1893 1894 def to_parquet(self,
> fname, engine='auto', compression='snappy',
> D:\Anaconda3\envs\fastai\lib\site-packages\pandas\io\feather_format.py in
> to_feather(df, path) 49 raise ValueError("feather only support IO with
> DataFrames") 50 ---> 51 feather = _try_import() 52 valid_types =
> {'string', 'unicode'}
> 53 D:\Anaconda3\envs\fastai\lib\site-packages\pandas\io\feather_format.py in
> _try_import() 12 13 try: ---> 14 import feather 15 except ImportError: 16
> D:\Anaconda3\envs\fastai\lib\site-packages\feather__init__.py in <module> 15
> # flake8: noqa 16 ---> 17 from feather.api import (read_dataframe,
> write_dataframe, 18 FeatherError, FeatherReader, FeatherWriter) 19 from
> feather.version import version as __version__
> D:\Anaconda3\envs\fastai\lib\site-packages\feather\api.py in <module> 13 #
> limitations under the License. 14 ---> 15 from pyarrow.feather import
> (read_feather as read_dataframe, # noqa 16 write_feather as write_dataframe,
> 17 FeatherError,
> D:\Anaconda3\envs\fastai\lib\site-packages\pyarrow__init__.py in <module> 43
> 44 ---> 45 import pyarrow.compat as compat 46 47 # Workaround for
> https://issues.apache.org/jira/browse/ARROW-2657 AttributeError: module
> 'pyarrow' has no attribute 'compat'
> </error>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)