Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during installation in Apple M1 Mac Mini with Python 3.10 #788

Closed
cksachdev opened this issue Sep 14, 2022 · 1 comment
Closed

Error during installation in Apple M1 Mac Mini with Python 3.10 #788

cksachdev opened this issue Sep 14, 2022 · 1 comment

Comments

@cksachdev
Copy link

cksachdev commented Sep 14, 2022

OS: macOS Monterey 12.5.1
Python: 3.10
Shell: zsh

Console output:

• Updating termcolor (2.0.1 /home/conda/feedstock_root/build_artifacts/termcolor_1662985294144/work -> 2.0.1): Pending...
  • Updating typed-ast (1.5.4 -> 1.4.3): Installing...
  • Updating typing-extensions (4.3.0 /home/conda/feedstock_root/build_artifacts/typing_extensions_1656706066251/work -> 4.3.0): Downloading... 0%
  • Updating wrapt (1.14.1 /Users/runner/miniforge3/conda-bld/wrapt_1651495311847/work -> 1.14.1): Pending...
  • Updating gast (0.4.0 /home/conda/feedstock_root/build_artifacts/gast_1596839682936/work -> 0.4.0): Downloading... 100%
  • Updating keras (2.9.0 /home/conda/feedstock_root/build_artifacts/keras_1652925255303/work/keras-2.9.0-py2.py3-none-any.whl -> 2.9.0): Downloading... 0%
  • Updating keras-preprocessing (1.1.2 /home/conda/feedstock_root/build_artifacts/keras-preprocessing_1610713559828/work -> 1.1.2): Downloading... 48%
  • Updating opt-einsum (3.3.0 /home/conda/feedstock_root/build_artifacts/opt_einsum_1617859230218/work -> 3.3.0): Downloading... 50%
  • Updating tensorboard (2.9.0 /home/conda/feedstock_root/build_artifacts/tensorboard_1651519171059/work/tensorboard-2.9.0-py3-none-any.whl -> 2.9.0): Installing...
  • Updating tensorflow-estimator (2.9.0 /Users/ngam/Repos/tensorflow-feedstock/miniforge3/conda-bld/tensorflow-split_1658069647533/work/tensorflow-estimator/wheel_dir/tensorflow_estimator-2.9.0-py2.py3-none-any.whl -> 2.9.0): Downloading... 0%
  • Installing tensorflow-io-gcs-filesystem (0.27.0): Failed

  RuntimeError

  Unable to find installation candidates for tensorflow-io-gcs-filesystem (0.27.0)

  at ~/opt/anaconda3/envs/test/lib/python3.10/site-packages/poetry/installation/chooser.py:103 in choose_for
       99│
      100│             links.append(link)
      101│
      102│         if not links:
    → 103│             raise RuntimeError(f"Unable to find installation candidates for {package}")
      104│
      105│         # Get the best link
      106│         chosen = max(links, key=lambda link: self._sort_key(package, link))
      107│

Sharing the logs from Terminal. Let me know if I can share logs from any other file to figure out and resolve this issue.

Another issue is with typed-ast version

 note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for typed_ast
  Running setup.py clean for typed_ast
Failed to build typed_ast
Installing collected packages: typed_ast
  Attempting uninstall: typed_ast
    Found existing installation: typed-ast 1.5.4
    Uninstalling typed-ast-1.5.4:
      Successfully uninstalled typed-ast-1.5.4
  Running setup.py install for typed_ast ... error
  error: subprocess-exited-with-error

  × Running setup.py install for typed_ast did not run successfully.
  │ exit code: 1
  ╰─> [82 lines of output]
      running install
      /Users/chetansachdev/opt/anaconda3/envs/test/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.macosx-11.0-arm64-cpython-310
      creating build/lib.macosx-11.0-arm64-cpython-310/typed_ast
      copying typed_ast/conversions.py -> build/lib.macosx-11.0-arm64-cpython-310/typed_ast
      copying typed_ast/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/typed_ast
      copying typed_ast/ast3.py -> build/lib.macosx-11.0-arm64-cpython-310/typed_ast
      copying typed_ast/ast27.py -> build/lib.macosx-11.0-arm64-cpython-310/typed_ast
      creating build/lib.macosx-11.0-arm64-cpython-310/typed_ast/tests
      copying ast3/tests/test_basics.py -> build/lib.macosx-11.0-arm64-cpython-310/typed_ast/tests
      running build_ext
      building '_ast27' extension
      creating build/temp.macosx-11.0-arm64-cpython-310
      creating build/temp.macosx-11.0-arm64-cpython-310/ast27
      creating build/temp.macosx-11.0-arm64-cpython-310/ast27/Custom
      creating build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser
      creating build/temp.macosx-11.0-arm64-cpython-310/ast27/Python
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Custom/typed_ast.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Custom/typed_ast.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Parser/acceler.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/acceler.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Parser/bitset.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/bitset.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Parser/grammar.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/grammar.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Parser/grammar1.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/grammar1.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Parser/node.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/node.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Parser/parser.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/parser.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Parser/parsetok.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/parsetok.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Parser/tokenizer.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/tokenizer.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Python/Python-ast.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/Python-ast.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Python/asdl.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/asdl.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Python/ast.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/ast.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Python/graminit.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/graminit.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast27/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast27/Python/mystrtoul.c -o build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/mystrtoul.o
      clang -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/chetansachdev/opt/anaconda3/envs/test/lib -L/Users/chetansachdev/opt/anaconda3/envs/test/lib -Wl,-rpath,/Users/chetansachdev/opt/anaconda3/envs/test/lib -L/Users/chetansachdev/opt/anaconda3/envs/test/lib build/temp.macosx-11.0-arm64-cpython-310/ast27/Custom/typed_ast.o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/acceler.o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/bitset.o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/grammar.o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/grammar1.o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/node.o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/parser.o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/parsetok.o build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/tokenizer.o build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/Python-ast.o build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/asdl.o build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/ast.o build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/graminit.o build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/mystrtoul.o -o build/lib.macosx-11.0-arm64-cpython-310/typed_ast/_ast27.cpython-310-darwin.so
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Custom/typed_ast.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/acceler.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/bitset.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/grammar.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/node.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/grammar1.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/tokenizer.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/parsetok.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Parser/parser.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/Python-ast.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/asdl.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/graminit.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/mystrtoul.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      ld: warning: ignoring file build/temp.macosx-11.0-arm64-cpython-310/ast27/Python/ast.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      building '_ast3' extension
      creating build/temp.macosx-11.0-arm64-cpython-310/ast3
      creating build/temp.macosx-11.0-arm64-cpython-310/ast3/Custom
      creating build/temp.macosx-11.0-arm64-cpython-310/ast3/Parser
      creating build/temp.macosx-11.0-arm64-cpython-310/ast3/Python
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast3/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast3/Custom/typed_ast.c -o build/temp.macosx-11.0-arm64-cpython-310/ast3/Custom/typed_ast.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast3/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast3/Parser/acceler.c -o build/temp.macosx-11.0-arm64-cpython-310/ast3/Parser/acceler.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast3/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast3/Parser/bitset.c -o build/temp.macosx-11.0-arm64-cpython-310/ast3/Parser/bitset.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast3/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast3/Parser/grammar.c -o build/temp.macosx-11.0-arm64-cpython-310/ast3/Parser/grammar.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast3/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast3/Parser/grammar1.c -o build/temp.macosx-11.0-arm64-cpython-310/ast3/Parser/grammar1.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast3/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast3/Parser/node.c -o build/temp.macosx-11.0-arm64-cpython-310/ast3/Parser/node.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast3/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast3/Parser/parser.c -o build/temp.macosx-11.0-arm64-cpython-310/ast3/Parser/parser.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast3/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast3/Parser/parsetok.c -o build/temp.macosx-11.0-arm64-cpython-310/ast3/Parser/parsetok.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast3/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast3/Parser/tokenizer.c -o build/temp.macosx-11.0-arm64-cpython-310/ast3/Parser/tokenizer.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast3/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast3/Python/Python-ast.c -o build/temp.macosx-11.0-arm64-cpython-310/ast3/Python/Python-ast.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast3/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast3/Python/asdl.c -o build/temp.macosx-11.0-arm64-cpython-310/ast3/Python/asdl.o
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -fPIC -O2 -isystem /Users/chetansachdev/opt/anaconda3/envs/test/include -arch arm64 -Iast3/Include -I/Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10 -c ast3/Python/ast.c -o build/temp.macosx-11.0-arm64-cpython-310/ast3/Python/ast.o
      ast3/Python/ast.c:844:5: warning: code will never be executed [-Wunreachable-code]
          abort();
          ^~~~~
      ast3/Python/ast.c:4514:9: error: implicit declaration of function '_PyUnicode_DecodeUnicodeEscape' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
          v = _PyUnicode_DecodeUnicodeEscape(s, len, NULL, &first_invalid_escape);
              ^
      ast3/Python/ast.c:4514:9: note: did you mean 'PyUnicode_DecodeUnicodeEscape'?
      /Users/chetansachdev/opt/anaconda3/envs/test/include/python3.10/unicodeobject.h:608:23: note: 'PyUnicode_DecodeUnicodeEscape' declared here
      PyAPI_FUNC(PyObject*) PyUnicode_DecodeUnicodeEscape(
                            ^
      ast3/Python/ast.c:4514:7: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
          v = _PyUnicode_DecodeUnicodeEscape(s, len, NULL, &first_invalid_escape);
            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      2 warnings and 1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Rolling back uninstall of typed-ast
  Moving to /Users/chetansachdev/opt/anaconda3/envs/test/lib/python3.10/site-packages/typed_ast-1.5.4.dist-info/
   from /Users/chetansachdev/opt/anaconda3/envs/test/lib/python3.10/site-packages/~yped_ast-1.5.4.dist-info
  Moving to /Users/chetansachdev/opt/anaconda3/envs/test/lib/python3.10/site-packages/typed_ast/
   from /Users/chetansachdev/opt/anaconda3/envs/test/lib/python3.10/site-packages/~yped_ast
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> typed_ast

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
@d-dawg78
Copy link
Collaborator

Hello,

For now, the only fix we have for Spleeter on Mac OS can be found here. I really really hope to tackle this issue better in the near to medium future in order to smoothen the installation process on Apple M1 chips. For now though, this fix and the others found in the comments are the only working ones. If you have any questions about any of these, feel free to drop a question in the linked issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants