Skip to content

[Python] Failed to build pyarrow on python 3.9 #26469

@asfimport

Description

@asfimport

$ 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)

Reporter: Atif Rasheed

Related issues:

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions