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

[Python] Failed to build pyarrow on python 3.9

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • Python
    • None

    Description

      $ python3 --version
      Python 3.9.0
      $ pip3 --version
      pip 20.2.4 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
      $
      $ python3 -c 'import numpy as n; print(n._version_); print(n.get_include());'
      1.19.4
      /usr/local/lib/python3.9/site-packages/numpy/core/include
      $
      $ pip3 install pyarrow
      Collecting pyarrow
      Using cached pyarrow-1.0.1.tar.gz (1.3 MB)
      Installing build dependencies ... error
      ERROR: Command errored out with exit status 1:
      command: /usr/local/opt/python@3.9/bin/python3.9 /usr/local/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/8v/cp49sqgx5_gd1gy3tdzp5w8n3dkrj7/T/pip-build-env-ksa23hcb/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple – 'cython >= 0.29' 'numpy==1.14.5; python_version<'"'"'3.7'"'"'' 'numpy==1.16.0; python_version>='"'"'3.7'"'"'' setuptools setuptools_scm wheel
      cwd: None
      Complete output (4218 lines):
      Ignoring numpy: markers 'python_version < "3.7"' don't match your environment
      Collecting cython>=0.29
      Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
      Collecting numpy==1.16.0
      Using cached numpy-1.16.0.zip (5.1 MB)
      Collecting setuptools
      Using cached setuptools-50.3.2-py3-none-any.whl (785 kB)
      Collecting setuptools_scm
      Using cached setuptools_scm-4.1.2-py2.py3-none-any.whl (27 kB)
      Collecting wheel
      Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
      Building wheels for collected packages: numpy
      Building wheel for numpy (setup.py): started
      Building wheel for numpy (setup.py): still running...
      Building wheel for numpy (setup.py): finished with status 'error'
      ERROR: Command errored out with exit status 1:
      command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8v/cp49sqgx5_gd1gy3tdzp5w8n3dkrj7/T/pip-install-nuh76pzr/numpy/setup.py'"'"'; _file='"'"'/private/var/folders/8v/cp49sqgx5_gd1gy3tdzp5w8n3dkrj7/T/pip-install-nuh76pzr/numpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file_, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/8v/cp49sqgx5_gd1gy3tdzp5w8n3dkrj7/T/pip-wheel-nn9wiqef
      cwd: /private/var/folders/8v/cp49sqgx5_gd1gy3tdzp5w8n3dkrj7/T/pip-install-nuh76pzr/numpy/
      Complete output (3743 lines):
      Running from numpy source directory.
      /private/var/folders/8v/cp49sqgx5_gd1gy3tdzp5w8n3dkrj7/T/pip-install-nuh76pzr/numpy/numpy/distutils/misc_util.py:476: SyntaxWarning: "is" with a literal. Did you mean "=="?
      return is_string(s) and ('*' in s or '?' is s)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              atifrasheed Atif Rasheed
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: