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

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

Note: The install using conda or pip for packages is done in the directory: 
d:\anaconda3\envs\fastai\lib\site-packages whereas as per ' 
[https://forums.fast.ai/t/fastai-v0-7-install-issues-thread/24652]' I have 
downloaded the fastai0.7 and is created at D:\fastai.

 

I removed the package installed using conda above and installed it using pip 
but the error still remain for installing the feather-format package.

(base) C:\WINDOWS\system32>D:

(base) D:\>cd fastai

(base) D:\fastai>conda activate fastai

(fastai) D:\fastai>pip uninstall feather-format
Skipping feather-format as it is not installed.

(fastai) D:\fastai>pip install feather-format
Collecting feather-format
Collecting pyarrow>=0.4.0 (from feather-format)
 Using cached 
https://files.pythonhosted.org/packages/4c/db/bfc9be0ad17a21019b1b2ab24d64c15a526589a9cfb57ed2761205926e18/pyarrow-0.12.0-cp36-cp36m-win_amd64.whl
Requirement already satisfied: numpy>=1.14 in 
d:\anaconda3\envs\fastai\lib\site-packages (from 
pyarrow>=0.4.0->feather-format) (1.15.4)
Requirement already satisfied: six>=1.0.0 in 
d:\anaconda3\envs\fastai\lib\site-packages (from 
pyarrow>=0.4.0->feather-format) (1.12.0)
Installing collected packages: pyarrow, feather-format
Successfully installed feather-format-0.4.0 pyarrow-0.12.0

ERROR in JUPYTER NOTEBOOK:

# 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