Skip to content

[Python] Re-enable pyarrow.orc in wheel packages #24042

Closed

Description

@asfimport

Also here is a similar issue https://stackoverflow.com/questions/58822095/no-module-named-pyarrow-orc

 

At our workplace we also see this. We don't use conda but we use pip and installs from PyPI. Since 0.15.1 the wheels from PyPI no longer has pyarrow.orc built. cudf (https://github.com/rapidsai/cudf) depends on python.orc. 

Reporter: Zhenyi Zhou
Assignee: Krisztian Szucs / @kszucs

Related issues:

Original Issue Attachments:

Note: This issue was originally created as ARROW-7811. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Feb 10, 2020

    @asfimport
    Author

    Wes McKinney / @wesm:
    We ran into some problems with Orc in the wheels and there was no volunteer willing to fix the problem, you can see more detail in

    102acc4

    If a volunteer will investigate and fix the problem then Orc can be made available again in a future release. We recommend using conda packages if you need this functionality

  2. asfimport commented on Feb 10, 2020

    @asfimport
    Author

    Uwe Korn / @xhochy:
    Note that cudf is only releasing on conda, not on PyPI anymore. So you should definitely be using conda in your case.

  3. asfimport commented on Apr 15, 2021

    @asfimport
    Author

    nero:
    In windows 10, it will raise "No module named 'pyarrow._orc'" error whether PyArrow is built from PyPI or Conda.

    It looks like  "_orc.cp37-win_amd64.pyd" was not built successfully.

    image-2021-04-15-15-38-52-637.png

  4. asfimport commented on Apr 19, 2021

    @asfimport
    Author

    Ian Alexander Joiner / @iajoiner:
    Looks like I need to do this one.

  5. asfimport commented on Apr 29, 2021

    @asfimport
    Author

    Ian Alexander Joiner / @iajoiner:
    [~zhouzhen1] I think this one has already been resolved since the ORC reader & writer are in the 4.0.0 wheels. Shall we close it?

  6. asfimport commented on Apr 29, 2021

    @asfimport
    Author

    nero:
    It doesn't seem to work on Windows.

    (myenv) C:\Users
    ero>pip install pyarrow==4
    Looking in indexes: https://pypi.douban.com/simple/
    Collecting pyarrow==4
    Downloading https://pypi.doubanio.com/packages/fb/8f/5ed45ff90c51b923e7bb35174a52f2f8cb8f12a4a158f2e924d4d3cca4bd/pyarrow-4.0.0-cp37-cp37m-win_amd64.whl (13.3 MB)
    ████████████████████████████████ 13.3 MB 3.3 MB/s
    Requirement already satisfied: numpy>=1.16.6 in d:\miniconda\envs\myenv\lib\site-packages (from pyarrow==4) (1.20.2)
    Installing collected packages: pyarrow
    Attempting uninstall: pyarrow
    Found existing installation: pyarrow 0.13.0
    Uninstalling pyarrow-0.13.0:
    Successfully uninstalled pyarrow-0.13.0
    Successfully installed pyarrow-4.0.0

    (myenv) C:\Users
    ero>ipython
    Python 3.7.10 (default, Feb 26 2021, 13:06:18) [MSC v.1916 64 bit (AMD64)]
    Type 'copyright', 'credits' or 'license' for more information
    IPython 7.22.0 – An enhanced Interactive Python. Type '?' for help.

    In [1]: import pyarrow

    In [2]: pyarrow.version
    Out[2]: '4.0.0'

    In [3]: import pyarrow.orc

    ModuleNotFoundError Traceback (most recent call last)
    in
    ----> 1 import pyarrow.orc

    d:\miniconda\envs\myenv\lib\site-packages\pyarrow\orc.py in
    22 from pyarrow import types
    23 from pyarrow.lib import Schema
    ---> 24 import pyarrow._orc as _orc
    25
    26

    ModuleNotFoundError: No module named 'pyarrow._orc'

  7. asfimport commented on Apr 29, 2021

    @asfimport
    Author
  8. asfimport commented on Apr 30, 2021

    @asfimport
    Author

    Antoine Pitrou / @pitrou:
    I have no idea why ORC is not enabled in the Windows wheels. Someone motivated will have to diagnose it and try fixing the issue.

  9. asfimport commented on May 2, 2021

    @asfimport
    Author

    Ian Alexander Joiner / @iajoiner:
    @pitrou Yeah. I never worked with a Windows-based docker image before but I'm willing to try. This is something I might be able to look into after my work quiets down a bit.

  10. asfimport commented on Apr 7, 2022

    @asfimport
    Author

    Krisztian Szucs / @kszucs:
    It has been already enabled since ddd9c6d for both the manylinux and macOS wheels. Regarding windows, ORC is not supported there: https://orc.apache.org/docs/building.html

  11. added this to the 4.0.0 milestone on Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions