[ 
https://issues.apache.org/jira/browse/ARROW-4561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16767896#comment-16767896
 ] 

Ganesh Bhat commented on ARROW-4561:
------------------------------------

Yes, you were right. On the anaconda promt, I did an uninstall using pip & 
conda for feather-format and pyarrow and then again installed both the packages 
using conda but I got a new error even after restarting Jupyter Notebook. Error 
highlighted in bold. Basically, the notebook is not able to locate 
feather-format. Please note I have installed the fastai packages as per the 
link - [https://forums.fast.ai/t/fastai-v0-7-install-issues-thread/24652]

Anaconda was previously installed.

 
--------------------------------------------------------------------------- 
RuntimeError Traceback (most recent call last) RuntimeError: module compiled 
against API version 0xc but this version of numpy is 0xa
 
 
--------------------------------------------------------------------------- 
ImportError Traceback (most recent call last) 
D:\Anaconda3\envs\fastai\lib\site-packages\pandas\io\feather_format.py in 
_try_import()  13 try: ---> 14 import feather  15 except ImportError: 
D:\Anaconda3\envs\fastai\lib\site-packages\feather\__init__.py in <module>  16 
---> 17 from feather.api import (read_dataframe, write_dataframe,  18 
FeatherError, FeatherReader, FeatherWriter) 
D:\Anaconda3\envs\fastai\lib\site-packages\feather\api.py in <module>  14 ---> 
15 from pyarrow.feather import (read_feather as read_dataframe, # noqa  16 
write_feather as write_dataframe, 
D:\Anaconda3\envs\fastai\lib\site-packages\pyarrow\__init__.py in <module>  53 
---> 54 from pyarrow.lib import cpu_count, set_cpu_count  55 from pyarrow.lib 
import (null, bool_, D:\Anaconda3\envs\fastai\lib\site-packages\pyarrow\lib.pyx 
in init pyarrow.lib() ImportError: numpy.core.multiarray failed to import 
During handling of the above exception, another exception occurred: ImportError 
Traceback (most recent call last) <ipython-input-22-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()  16  17 *# give a nice error message ---> 18 raise 
ImportError("the feather-format library is not installed\n"  19 "you can 
install via conda\n"  20 "conda install feather-format -c conda-forge\n" 
ImportError: the feather-format library is not installed you can install via 
conda conda install feather-format -c conda-forge or via pip pip install -U 
feather-format*

> 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)

Reply via email to