Skip to content

ImportError: cannot import name _orc #2100

Closed

Description

@linxabc

Meeting error import orc in RedHat 7, could you give some insights on how to solve it. thanks!

Traceback (most recent call last):
File "train.py", line 14, in
from pyarrow import orc
File "~/virtualenv-2.7/lib/python2.7/site-packages/pyarrow/orc.py", line 21, in
from pyarrow import _orc
ImportError: cannot import name _orc

Activity

  1. xhochy commented on Jun 3, 2018

    @xhochy
    Member

    How have you installed pyarrow?

  2. linxabc commented on Jun 4, 2018

    @linxabc
    Author

    installed via pip.
    there's no error if just import pyarrow

  3. wesm commented on Jun 4, 2018

    @wesm
    Member

    It doesn't look like the ORC extension is being built in the manylinux1 wheels. I opened a JIRA, let's track the issue there https://issues.apache.org/jira/browse/ARROW-2672

  4. wesm commented on Jun 4, 2018

    @wesm
    Member

    @ishare you can obtain this functionality in the meantime by installing with conda

  5. leferrad commented on Mar 25, 2020

    @leferrad

    Why was this issue closed? From version 0.15, I still have the same error, so I cannot use newer versions of pyarrow until ORC is available for usage.
    Here the very simple snippet to reproduce error (tested with pyarrow==0.16.0):

    from pyarrow import orc 
    # Throws:
    #     23 from pyarrow import types
    #     24 from pyarrow.lib import Schema
    # ---> 25 import pyarrow._orc as _orc
    #      26 
    #      27 
    # 
    # ModuleNotFoundError: No module named 'pyarrow._orc'
  6. xhochy commented on Mar 25, 2020

    @xhochy
    Member

    The issue is tracked in JIRA, please comment there (obviously the issue is clear, all we need is someone to implement it).

  7. locked and limited conversation to collaborators on Mar 25, 2020
  8. wesm commented on Mar 25, 2020

    @wesm
    Member

    If anyone comes across this while searching the internet, the latest JIRA issue about having pyarrow.orc in the wheels is https://issues.apache.org/jira/browse/ARROW-7811. We had to disable it a while ago due to a packaging issue and no one has volunteered to fix it yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions