Skip to content

Installation on mac m1 #193

@abaillod

Description

@abaillod

Hi!

Has anyone successfully installed SPEC python wrappers on a mac M1 using anaconda? I get the following error message when running python setup.py bdist_wheel...

/opt/homebrew/Caskroom/miniconda/base/envs/simsopt/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer, pypa/build or
        other standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
error: unknown file type '.tbd' (from '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libpthread.tbd')
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/opt/homebrew/Caskroom/miniconda/base/envs/simsopt/lib/python3.8/site-packages/skbuild/setuptools_wrap.py", line 674, in setup
    cmkr.make(make_args, install_target=cmake_install_target, env=env)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/simsopt/lib/python3.8/site-packages/skbuild/cmaker.py", line 697, in make
    self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/simsopt/lib/python3.8/site-packages/skbuild/cmaker.py", line 742, in make_impl
    raise SKBuildError(msg)

An error occurred while building with CMake.
  Command:
    /opt/homebrew/Caskroom/miniconda/base/envs/simsopt/bin/cmake --build . --target install --config Release --
  Install target:
    install
  Source directory:
    /Users/antoinebaillod/Github/SPEC
  Working directory:
    /Users/antoinebaillod/Github/SPEC/_skbuild/macosx-14.0-arm64-3.8/cmake-build
Please check the install target is valid and see CMake's output for more information.\

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions