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

Paul Ivanov edited comment on ARROW-2326 at 7/10/18 3:39 PM:
-------------------------------------------------------------

First - a ton of apologies for my user error, [~xhochy] and [~wesmckinn]: 
that's what I get for trying things at 2 in the morning. And sorry it took so 
long, I didn't have access to this machine for a while. Unfortunately, I'm 
still seeing the same behavior as before: 



{{$ pip install 
https://github.com/kszucs/crossbow/releases/download/build-163/pyarrow-0.9.1.dev325-cp36-cp36m-macosx_10_6_intel.whl
Collecting pyarrow==0.9.1.dev325 from 
https://github.com/kszucs/crossbow/releases/download/build-163/pyarrow-0.9.1.dev325-cp36-cp36m-macosx_10_6_intel.whl
Downloading 
https://github.com/kszucs/crossbow/releases/download/build-163/pyarrow-0.9.1.dev325-cp36-cp36m-macosx_10_6_intel.whl
 (8.1MB)
100% |████████████████████████████████| 8.1MB 481kB/s 
Collecting six>=1.0.0 (from pyarrow==0.9.1.dev325)
Using cached 
https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting numpy>=1.10 (from pyarrow==0.9.1.dev325)
Using cached 
https://files.pythonhosted.org/packages/f6/cd/b2c50b5190b66c711c23ef23c41d450297eb5a54d2033f8dcb3b8b13ac85/numpy-1.14.5-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Installing collected packages: six, numpy, pyarrow
Successfully installed numpy-1.14.5 pyarrow-0.9.1.dev325 six-1.11.0}}
{code:java}
$ python
Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File 
"/Users/pi/.virtualenvs/arrow-2018-07-10/lib/python3.6/site-packages/pyarrow/__init__.py",
 line 47, in <module>
from pyarrow.lib import cpu_count, set_cpu_count
ImportError: 
dlopen(/Users/pi/.virtualenvs/arrow-2018-07-10/lib/python3.6/site-packages/pyarrow/lib.cpython-36m-darwin.so,
 2): Library not loaded: @rpath/libarrow.10.dylib
Referenced from: 
/Users/pi/.virtualenvs/arrow-2018-07-10/lib/python3.6/site-packages/pyarrow/lib.cpython-36m-darwin.so
Reason: image not found
{code}
 

 

 


was (Author: pi):
First - a ton of apologies for my user error, [~xhochy] and [~wesmckinn]: 
that's what I get for trying things at 2 in the morning. And sorry it took so 
long, I didn't have access to this machine for a while. {{Unfortunately, I'm 
still seeing the same behavior as before:}}


{{$ pip install 
https://github.com/kszucs/crossbow/releases/download/build-163/pyarrow-0.9.1.dev325-cp36-cp36m-macosx_10_6_intel.whl}}
{{Collecting pyarrow==0.9.1.dev325 from 
https://github.com/kszucs/crossbow/releases/download/build-163/pyarrow-0.9.1.dev325-cp36-cp36m-macosx_10_6_intel.whl}}
{{ Downloading 
https://github.com/kszucs/crossbow/releases/download/build-163/pyarrow-0.9.1.dev325-cp36-cp36m-macosx_10_6_intel.whl
 (8.1MB)}}
{{ 100% |████████████████████████████████| 8.1MB 481kB/s }}
{{Collecting six>=1.0.0 (from pyarrow==0.9.1.dev325)}}
{{ Using cached 
https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl}}
{{Collecting numpy>=1.10 (from pyarrow==0.9.1.dev325)}}
{{ Using cached 
https://files.pythonhosted.org/packages/f6/cd/b2c50b5190b66c711c23ef23c41d450297eb5a54d2033f8dcb3b8b13ac85/numpy-1.14.5-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl}}
{{Installing collected packages: six, numpy, pyarrow}}
{{Successfully installed numpy-1.14.5 pyarrow-0.9.1.dev325 six-1.11.0}}

{{$ python}}
{{Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04) }}
{{[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin}}
{{Type "help", "copyright", "credits" or "license" for more information.}}
{{>>> import pyarrow}}
{{Traceback (most recent call last):}}
{{ File "<stdin>", line 1, in <module>}}
{{ File 
"/Users/pi/.virtualenvs/arrow-2018-07-10/lib/python3.6/site-packages/pyarrow/__init__.py",
 line 47, in <module>}}
{{ from pyarrow.lib import cpu_count, set_cpu_count}}
{{ImportError: 
dlopen(/Users/pi/.virtualenvs/arrow-2018-07-10/lib/python3.6/site-packages/pyarrow/lib.cpython-36m-darwin.so,
 2): Library not loaded: @rpath/libarrow.10.dylib}}
{{ Referenced from: 
/Users/pi/.virtualenvs/arrow-2018-07-10/lib/python3.6/site-packages/pyarrow/lib.cpython-36m-darwin.so}}
{{ Reason: image not found}}

 

 

> [Python] cannot import pip installed pyarrow on OS X (10.9)
> -----------------------------------------------------------
>
>                 Key: ARROW-2326
>                 URL: https://issues.apache.org/jira/browse/ARROW-2326
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.8.0
>         Environment: OS X (10.9), Python 3.6
>            Reporter: Paul Ivanov
>            Priority: Major
>             Fix For: 0.10.0
>
>
> {code:java}
> $ pip3 install pyarrow --user
> Collecting pyarrow
> Using cached pyarrow-0.8.0-cp36-cp36m-macosx_10_6_intel.whl
> Requirement already satisfied: six>=1.0.0 in 
> ./Library/Python/3.6/lib/python/site-packages (from pyarrow)
> Collecting numpy>=1.10 (from pyarrow)
> Using cached 
> numpy-1.14.2-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
> Installing collected packages: numpy, pyarrow
> Successfully installed numpy-1.14.2 pyarrow-0.8.0
> $ python3
> Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04) 
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pyarrow
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File 
> "/Users/pi/Library/Python/3.6/lib/python/site-packages/pyarrow/__init__.py", 
> line 32, in <module>
> from pyarrow.lib import cpu_count, set_cpu_count
> ImportError: 
> dlopen(/Users/pi/Library/Python/3.6/lib/python/site-packages/pyarrow/lib.cpython-36m-darwin.so,
>  2): Library not loaded: @rpath/libarrow.0.dylib
> Referenced from: 
> /Users/pi/Library/Python/3.6/lib/python/site-packages/pyarrow/lib.cpython-36m-darwin.so
> Reason: image not found
> {code}
> I dug into it a bit and found that in older versions of install.rst, Wes 
> mentioned that XCode 6 had trouble with rpath, so not sure if that's what's 
> going on here for me. I'm on 10.9, I know it's really old, so if these wheels 
> can't be made to run on my ancient OS, I just wanted to report this so the 
> wheels uploaded to PyPI can reflect this incompatibility, if that is indeed 
> the case. I might also try some otool / install_name_tool tomfoolery to see 
> if I can get a workaround for myself.
> Thank you!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to