Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-7852

[Python] 0.16.0 wheels not compatible with older numpy

    XMLWordPrintableJSON

    Details

      Description

      Using python 3.7.5 and numpy 1.14.6, I am unable to import pyarrow 0.16.0 (see below for error). Updating numpy to the most recent version fixes this, and I'm wondering if pyarrow needs update its requirements.txt.

       

      ➜  ~ ipython
      Python 3.7.5 (default, Nov  7 2019, 10:50:52)
      Type 'copyright', 'credits' or 'license' for more information
      IPython 7.9.0 -- An enhanced Interactive Python. Type '?' for help.
      
      In [1]: import numpy as npIn [2]: np.__version__
      Out[2]: '1.14.6'
      
      In [3]: import pyarrow
      ---------------------------------------------------------------------------
      ModuleNotFoundError                       Traceback (most recent call last)
      ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
      ---------------------------------------------------------------------------
      ImportError                               Traceback (most recent call last)
      <ipython-input-3-f1048abcb32d> in <module>
      ----> 1 import pyarrow~/.local/lib/python3.7/site-packages/pyarrow/__init__.py in <module>
           47 import pyarrow.compat as compat
           48
      ---> 49 from pyarrow.lib import cpu_count, set_cpu_count
           50 from pyarrow.lib import (null, bool_,
           51                          int8, int16, int32, int64,~/.local/lib/python3.7/site-packages/pyarrow/lib.pyx in init pyarrow.lib()ImportError: numpy.core.multiarray failed to import
      
      In [4]: import pyarrow
      ---------------------------------------------------------------------------
      AttributeError                            Traceback (most recent call last)
      <ipython-input-4-f1048abcb32d> in <module>
      ----> 1 import pyarrow~/.local/lib/python3.7/site-packages/pyarrow/__init__.py in <module>
           47 import pyarrow.compat as compat
           48
      ---> 49 from pyarrow.lib import cpu_count, set_cpu_count
           50 from pyarrow.lib import (null, bool_,
           51                          int8, int16, int32, int64,~/.local/lib/python3.7/site-packages/pyarrow/ipc.pxi in init pyarrow.lib()AttributeError: type object 'pyarrow.lib.Message' has no attribute '__reduce_cython__'
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kszucs Krisztian Szucs
                Reporter:
                stephanie.gott Stephanie Gott
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m