You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ajay Kanagala (Jira)" <ji...@apache.org> on 2022/06/06 18:30:00 UTC

[jira] [Commented] (ARROW-13657) [Python] No module named 'pyarrow._flight' (MacOS)

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

Ajay Kanagala commented on ARROW-13657:
---------------------------------------

I am also facing the same issue with the following setup. 

pyarrow: 8.0.0 or 7.0.0
OS: macOS monterey 12.3.1
macBook pro (M1 chip)

 

Can someone please help on how to resolve the issue

> [Python] No module named 'pyarrow._flight' (MacOS)
> --------------------------------------------------
>
>                 Key: ARROW-13657
>                 URL: https://issues.apache.org/jira/browse/ARROW-13657
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 5.0.0
>         Environment: Device: Macbook Air M1 2020 (MacOS Big Sur 11.5.1)
> Python version: Python 3.9.4
> Arrow version: 5.0.0
>            Reporter: Dinh Long Nguyen
>            Priority: Major
>
> ModuleNotFoundError: No module named 'pyarrow._flight'
> *Error Detail:*
> Traceback (most recent call last):
>  File "arrowtest1/backend/server.py", line 4, in <module>
>  import pyarrow.flight as fl
>  File ".local/share/virtualenvs/backend-OiVOEXti/lib/python3.9/site-packages/pyarrow/flight.py", line 18, in <module>
>  from pyarrow._flight import ( # noqa:F401
>  ModuleNotFoundError: No module named 'pyarrow._flight'
> *Device*: Macbook Air M1 2020 (MacOS Big Sur 11.5.1)
> *Python version:* Python 3.9.4
> *Arrow version:* 5.0.0
> *Description*
> Pyarrow works fine, can import other component such as pyarrow.orc, but not pyarrow.flight
> Tried out several machines (intel 4790k, ubuntu), can import pyarrow.flight no problem.
> Even tried out VSCode Dev Container on the same macbook, can also import flight no problem.
> But I cant import when used pipenv directly within macos (I mean no container).
> *Replication process:*
> pipenv install pyarrow
> python
> >> import pyarrow.flight
> Then the error occured
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)