[jira] [Comment Edited] (ARROW-11506) [Python] Pyarrow fail on install and eventual run/compilation

2021-02-07 Thread Weston Pace (Jira)


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

Weston Pace edited comment on ARROW-11506 at 2/7/21, 7:50 PM:
--

Loaded during runtime.  If you are running a normal python program the library 
would be loaded when you run `import pyarrow`.  This will cause python to load 
and interpret `pyarrow/\__init\__.py` which contains the line `from pyarrow.lib 
import ...` which will then lead Python to load `pyarrow/lib.cpython...so`.


was (Author: westonpace):
Loaded during runtime.  If you are running a normal python program the library 
would be loaded when you run `import pyarrow`.  This will cause python to load 
and interpret `pyarrow/__init__.py` which contains the line `from pyarrow.lib 
import ...` which will then lead Python to load `lib.cpython...so`.

> [Python] Pyarrow fail on install and eventual run/compilation
> -
>
> Key: ARROW-11506
> URL: https://issues.apache.org/jira/browse/ARROW-11506
> Project: Apache Arrow
>  Issue Type: Bug
>  Components: C++, Python
>Affects Versions: 3.0.0
>Reporter: Travis Smith
>Priority: Major
>
> pyarrow 3.0.0 fails on install in a clean environment created using 
> virtualenv on ubuntu 18.04
> I ran the following code inside of a brand new environment:
> {code:java}
> python3 -m pip install pyarrow{code}
> This gives the following error:
> {code:java}
> ModuleNotFoundError: No module named 'Cython'{code}
> So I run
> {code:java}
> python3 -m pip install Cython
> python3 -m pip install pyarrow{code}
> which then throws another error during the pyarrow install with the following 
> message a the end
> {code:java}
> Failed building wheel for pyarrow ... CMake Error at 
> /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 
> (message):
>  Could NOT find ArrowPython (missing: ARROW_PYTHON_INCLUDE_DIR
>  ARROW_PYTHON_LIB_DIR) (found version "3.0.0"){code}
>  
> Once I've worked my way through this and any subsequent errors, I am able to 
> succesfully compile my pyarrow/c++ code, but get the following Python runtime 
> error:
> {code:java}
> ImportError: : undefined symbol: 
> _ZN5arrow2py14import_pyarrowEv{code}
>  
> Any thoughts?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Comment Edited] (ARROW-11506) [Python] Pyarrow fail on install and eventual run/compilation

2021-02-05 Thread Travis Smith (Jira)


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

Travis Smith edited comment on ARROW-11506 at 2/5/21, 6:49 PM:
---

Thank you. The version of pip was 9.0.1 and I upgraded it to 21.0.1. Pyarrow 
installed succesfully after that. Also I did have a typo in my command as you 
pointed out, and I will correct that momentarily.

 

The second issue is still there though. I have a library coded in C++ which I 
am trying to pass a pyarrow object into using pybind11. I can compile it 
without error, but I get the following error in Python when I try to import the 
compiled code: 

 
{code:java}
ImportError: : undefined symbol: _ZN5arrow2py14import_pyarrowEv
{code}


was (Author: tsmith64):
Thank you. The version of pip was 9.0.1 and I upgraded it to 21.0.1. Pyarrow 
installed succesfully after that. Also I did have a typo in my command as you 
pointed out, and I will correct that momentarily.

 

The second issue is still there though. I have a library coded in C++ which I 
am trying to pass a pyarrow object into using pybind11. I can compile it 
without error, but I get the following error when I try to import the compiled 
code: 

 
{code:java}
ImportError: : undefined symbol: _ZN5arrow2py14import_pyarrowEv
{code}

> [Python] Pyarrow fail on install and eventual run/compilation
> -
>
> Key: ARROW-11506
> URL: https://issues.apache.org/jira/browse/ARROW-11506
> Project: Apache Arrow
>  Issue Type: Bug
>  Components: C++, Python
>Affects Versions: 3.0.0
>Reporter: Travis Smith
>Priority: Major
>
> pyarrow 3.0.0 fails on install in a clean environment created using 
> virtualenv on ubuntu 18.04
> I ran the following code inside of a brand new environment:
> {code:java}
> python3 -m pip install pyarrow{code}
> This gives the following error:
> {code:java}
> ModuleNotFoundError: No module named 'Cython'{code}
> So I run
> {code:java}
> python3 -m pip install Cython
> python3 -m pip install pyarrow{code}
> which then throws another error during the pyarrow install with the following 
> message a the end
> {code:java}
> Failed building wheel for pyarrow ... CMake Error at 
> /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 
> (message):
>  Could NOT find ArrowPython (missing: ARROW_PYTHON_INCLUDE_DIR
>  ARROW_PYTHON_LIB_DIR) (found version "3.0.0"){code}
>  
> Once I've worked my way through this and any subsequent errors, I am able to 
> succesfully compile my pyarrow/c++ code, but get the following Python runtime 
> error:
> {code:java}
> ImportError: : undefined symbol: 
> _ZN5arrow2py14import_pyarrowEv{code}
>  
> Any thoughts?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Comment Edited] (ARROW-11506) [Python] Pyarrow fail on install and eventual run/compilation

2021-02-05 Thread Travis Smith (Jira)


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

Travis Smith edited comment on ARROW-11506 at 2/5/21, 6:48 PM:
---

Thank you. The version of pip was 9.0.1 and I upgraded it to 21.0.1. Pyarrow 
installed succesfully after that. Also I did have a typo in my command as you 
pointed out, and I will correct that momentarily.

 

The second issue is still there though. I have a library coded in C++ which I 
am trying to pass a pyarrow object into using pybind11. I can compile it 
without error, but I get the following error when I try to import the compiled 
code: 

 
{code:java}
ImportError: : undefined symbol: _ZN5arrow2py14import_pyarrowEv
{code}


was (Author: tsmith64):
Thank you. The version of pip was 9.0.1 and I upgraded it to 21.0.1. Pyarrow 
installed succesfully after that. Also I did have a typo in my command as you 
pointed out, and I will correct that momentarily.

 

The second issue is still there though. I have a library coded in C++ which I 
am trying to pass a pyarrow object into using pybind11. I can compile it 
without error, but I get the following error when I try to import the compiled 
code: 

 
{code:java}
// ImportError: : undefined symbol: _ZN5arrow2py14import_pyarrowEv
{code}

> [Python] Pyarrow fail on install and eventual run/compilation
> -
>
> Key: ARROW-11506
> URL: https://issues.apache.org/jira/browse/ARROW-11506
> Project: Apache Arrow
>  Issue Type: Bug
>  Components: C++, Python
>Affects Versions: 3.0.0
>Reporter: Travis Smith
>Priority: Major
>
> pyarrow 3.0.0 fails on install in a clean environment created using 
> virtualenv on ubuntu 18.04
> I ran the following code inside of a brand new environment:
> {code:java}
> python3 -m install pyarrow{code}
> This gives the following error:
> {code:java}
> ModuleNotFoundError: No module named 'Cython'{code}
> So I run
> {code:java}
> python3 -m install Cython
> python3 -m install pyarrow{code}
> which then throws another error during the pyarrow install with the following 
> message a the end
> {code:java}
> Failed building wheel for pyarrow ... CMake Error at 
> /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 
> (message):
>  Could NOT find ArrowPython (missing: ARROW_PYTHON_INCLUDE_DIR
>  ARROW_PYTHON_LIB_DIR) (found version "3.0.0"){code}
>  
> Once I've worked my way through this and any subsequent errors, I am able to 
> succesfully compile my pyarrow/c++ code, but get the following Python runtime 
> error:
> {code:java}
> ImportError: : undefined symbol: 
> _ZN5arrow2py14import_pyarrowEv{code}
>  
> Any thoughts?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)