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

[Python] Cannot install via pip M1 Mac on Python 3.7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.0.1
    • None
    • Packaging, Python
    • M1 Mac, Python 3.7.12 environment

    Description

      After running 

      pip install --upgrade pip setuptools wheel

      getting error

      ERROR: Command errored out with exit status 1:
         command: /Users/martin.kerr/.pyenv/versions/3.7.12/envs/arrow/bin/python3.7 /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-standalone-pip-o26otdgs/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-build-env-jv5z99dx/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://klaviyo-local:Bpdj9MBnY8MK9KdFWjZc@klaviyo.jfrog.io/artifactory/api/pypi/pypi/simple -- 'cython >= 0.29' 'numpy==1.16.6; python_version<'"'"'3.8'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"'' 'numpy==1.19.4; python_version=='"'"'3.9'"'"'' 'numpy==1.21.3; python_version>'"'"'3.9'"'"'' 'setuptools < 58.5' setuptools_scm wheel
             cwd: None
        Complete output (2423 lines):
        Looking in indexes: https://klaviyo-local:****@klaviyo.jfrog.io/artifactory/api/pypi/pypi/simple
        Ignoring numpy: markers 'python_version == "3.8"' don't match your environment
        Ignoring numpy: markers 'python_version == "3.9"' don't match your environment
        Ignoring numpy: markers 'python_version > "3.9"' don't match your environment
        Collecting cython>=0.29
          Downloading https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/15/29/2abb8975ded365d55b9e14129cabdfb977255911c80d8709028eca5829cd/Cython-0.29.26-py2.py3-none-any.whl (983 kB)
        Collecting numpy==1.16.6
          Downloading https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/b7/6f/24647f014eef9b67a24adfcbcd4f4928349b4a0f8393b3d7fe648d4d2de3/numpy-1.16.6.zip (5.1 MB)
          Preparing metadata (setup.py): started
          Preparing metadata (setup.py): finished with status 'done'
        Collecting setuptools<58.5
          Downloading https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/a8/50/76fb9cfe521b531feecd932ab920cd6e32f6838527af7b34ef78d5f39a18/setuptools-58.4.0-py3-none-any.whl (946 kB)
        Collecting setuptools_scm
          Using cached https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/e3/e5/c28b544051340e63e0d507eb893c9513d3a300e5e9183e2990518acbfe36/setuptools_scm-6.4.2-py3-none-any.whl (37 kB)
        Collecting wheel
          Using cached https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl (35 kB)
        Collecting tomli>=1.0.0
          Using cached https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/e2/9f/5e1557a57a7282f066351086e78f87289a3446c47b2cb5b8b2f614d8fe99/tomli-2.0.0-py3-none-any.whl (12 kB)
        Collecting packaging>=20.0
          Using cached https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40 kB)
        Collecting pyparsing!=3.0.5,>=2.0.2
          Using cached https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/a0/34/895006117f6fce0b4de045c87e154ee4a20c68ec0a4c9a36d900888fb6bc/pyparsing-3.0.6-py3-none-any.whl (97 kB)
        Building wheels for collected packages: numpy
          Building wheel for numpy (setup.py): started
          Building wheel for numpy (setup.py): finished with status 'error'
          ERROR: Command errored out with exit status 1:
           command: /Users/martin.kerr/.pyenv/versions/3.7.12/envs/arrow/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-install-2setjrtr/numpy_b5d5a899e4f645928719ad1b55308377/setup.py'"'"'; __file__='"'"'/private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-install-2setjrtr/numpy_b5d5a899e4f645928719ad1b55308377/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-wheel-71hon_fn
               cwd: /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-install-2setjrtr/numpy_b5d5a899e4f645928719ad1b55308377/
          Complete output (2293 lines):
          Running from numpy source directory.
          /bin/sh: svnversion: command not found
          non-existing path in 'numpy/distutils': 'site.cfg'
          /Users/martin.kerr/.pyenv/versions/3.7.12/envs/arrow/lib/python3.7/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'define_macros'
            warnings.warn(msg)
          running bdist_wheel
          running build
          running config_cc
          running config_fc
          running build_src
          creating build
          creating build/src.macosx-12.0-arm64-3.7
          creating build/src.macosx-12.0-arm64-3.7/numpy
          creating build/src.macosx-12.0-arm64-3.7/numpy/distutils
          Could not locate executable gfortran
          Could not locate executable f95
          Could not locate executable f90
          Could not locate executable f77
          Could not locate executable xlf90
          Could not locate executable xlf
          Could not locate executable ifort
          Could not locate executable ifc
          Could not locate executable g77
          Could not locate executable g95
          Could not locate executable pgfortran
          don't know how to compile Fortran code on platform 'posix'
          clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
          clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
          clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
          clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
          _configtest.c:1:5: warning: incompatible redeclaration of library function 'exp' [-Wincompatible-library-redeclaration]
          int exp (void);
              ^
          _configtest.c:1:5: note: 'exp' is a builtin with type 'double (double)'
          1 warning generated.
          creating build/src.macosx-12.0-arm64-3.7/numpy/core
          creating build/src.macosx-12.0-arm64-3.7/numpy/core/src
          creating build/src.macosx-12.0-arm64-3.7/numpy/core/src/npymath
          creating build/src.macosx-12.0-arm64-3.7/numpy/core/src/common
          creating build/src.macosx-12.0-arm64-3.7/numpy/core/src/npysort
          clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
          clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
          clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
          clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
          _configtest.c:1:10: fatal error: 'endian.h' file not found
          #include <endian.h>
                   ^~~~~~~~~~
          1 error generated.
          clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
          clang: warning: argument unused during compilation: '-maltivec' [-Wunused-command-line-argument]
          _configtest.c:1:10: fatal error: 'sys/endian.h' file not found
          #include <sys/endian.h>
                   ^~~~~~~~~~~~~~
      ...
      ...
      ...
      clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -maltivec -I/opt/homebrew/opt/mysql@5.7/include -I/opt/homebrew/opt/zlib/include -I/opt/homebrew/opt/bzip2/include -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/opt/libmemcached/include -I/opt/homebrew/opt/snappy/include -maltivec -DXMLSEC_NO_XKMS=1 -I/opt/homebrew/opt/mysql@5.7/include -I/opt/homebrew/opt/zlib/include -I/opt/homebrew/opt/bzip2/include -I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/opt/libmemcached/include -I/opt/homebrew/opt/snappy/include -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/umath -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/npymath -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/martin.kerr/.pyenv/versions/3.7.12/envs/arrow/include -I/Users/martin.kerr/.pyenv/versions/3.7.12/include/python3.7m -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/common -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/npymath -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/common -Ibuild/src.macosx-12.0-arm64-3.7/numpy/core/src/npymath -c numpy/core/src/multiarray/array_assign_scalar.c -o build/temp.macosx-12.0-arm64-3.7/numpy/core/src/multiarray/array_assign_scalar.o -MMD -MF build/temp.macosx-12.0-arm64-3.7/numpy/core/src/multiarray/array_assign_scalar.o.d -faltivec -I/System/Library/Frameworks/vecLib.framework/Headers" failed with exit status 1
            ----------------------------------------
        ERROR: Command errored out with exit status 1: /Users/martin.kerr/.pyenv/versions/3.7.12/envs/arrow/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-install-2setjrtr/numpy_b5d5a899e4f645928719ad1b55308377/setup.py'"'"'; __file__='"'"'/private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-install-2setjrtr/numpy_b5d5a899e4f645928719ad1b55308377/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-record-ap1n91pl/install-record.txt --single-version-externally-managed --prefix /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-build-env-jv5z99dx/overlay --compile --install-headers /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-build-env-jv5z99dx/overlay/include/site/python3.7/numpy Check the logs for full command output.
        ----------------------------------------
      WARNING: Discarding https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/packages/packages/38/c6/97a4133eea642155e7a73cb946d889cadc461a1e6b93f5627af9fdd7b3f3/pyarrow-6.0.1.tar.gz#sha256=423990d56cd8f12283b67367d48e142739b789085185018eb03d05087c3c8d43 (from https://klaviyo.jfrog.io/artifactory/api/pypi/pypi/simple/pyarrow/) (requires-python:>=3.6). Command errored out with exit status 1: /Users/martin.kerr/.pyenv/versions/3.7.12/envs/arrow/bin/python3.7 /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-standalone-pip-o26otdgs/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/gr/nw76z8ss4551kfv0m751skm00000gp/T/pip-build-env-jv5z99dx/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://klaviyo-local:Bpdj9MBnY8MK9KdFWjZc@klaviyo.jfrog.io/artifactory/api/pypi/pypi/simple -- 'cython >= 0.29' 'numpy==1.16.6; python_version<'"'"'3.8'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"'' 'numpy==1.19.4; python_version=='"'"'3.9'"'"'' 'numpy==1.21.3; python_version>'"'"'3.9'"'"'' 'setuptools < 58.5' setuptools_scm wheel Check the logs for full command output.
      ERROR: Could not find a version that satisfies the requirement pyarrow==6.0.1 (from versions: 0.9.0, 0.10.0, 0.11.0, 0.11.1, 0.12.0, 0.12.1, 0.13.0, 0.14.0, 0.15.1, 0.16.0, 0.17.0, 0.17.1, 1.0.0, 1.0.1, 2.0.0, 3.0.0, 4.0.0, 4.0.1, 5.0.0, 6.0.0, 6.0.1)
      ERROR: No matching distribution found for pyarrow==6.0.1

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rohitppathak Rohit Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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