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

Step three #176

Open
PokeDraw opened this issue Apr 29, 2024 · 2 comments
Open

Step three #176

PokeDraw opened this issue Apr 29, 2024 · 2 comments

Comments

@PokeDraw
Copy link

Running experiment on a Mac clang might need to be updated
I finally got step three to work for the most part but ran into a couple errors

Downloading smmap-5.0.1-py3-none-any.whl (24 kB)
Building wheels for collected packages: gym, hnswlib, PySDL2, mediapy, pathtools
Building wheel for gym (pyproject.toml) ... done
Created wheel for gym: filename=gym-0.26.2-py3-none-any.whl size=827622 sha256=dd921f2ef6e95cc5f886b6db494c35484beb0f7f2ba566f008ef0cb7b3f0d6a4
Stored in directory: /Users/zacharyrose/Library/Caches/pip/wheels/1c/77/9e/9af5470201a0b0543937933ee99ba884cd237d2faefe8f4d37
Building wheel for hnswlib (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for hnswlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
running bdist_wheel
running build
running build_ext
creating var
creating var/folders
creating var/folders/mn
creating var/folders/mn/l5n3l1kj13x2m0t8pzh0jj100000gn
creating var/folders/mn/l5n3l1kj13x2m0t8pzh0jj100000gn/T
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c /var/folders/mn/l5n3l1kj13x2m0t8pzh0jj100000gn/T/tmpy1d1k1eq.cpp -o var/folders/mn/l5n3l1kj13x2m0t8pzh0jj100000gn/T/tmpy1d1k1eq.o -std=c++14
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c /var/folders/mn/l5n3l1kj13x2m0t8pzh0jj100000gn/T/tmpfvhsys6y.cpp -o var/folders/mn/l5n3l1kj13x2m0t8pzh0jj100000gn/T/tmpfvhsys6y.o -fvisibility=hidden
building 'hnswlib' extension
creating build
creating build/temp.macosx-10.9-universal2-cpython-311
creating build/temp.macosx-10.9-universal2-cpython-311/python_bindings
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/private/var/folders/mn/l5n3l1kj13x2m0t8pzh0jj100000gn/T/pip-build-env-peyrlm2d/overlay/lib/python3.11/site-packages/pybind11/include -I/private/var/folders/mn/l5n3l1kj13x2m0t8pzh0jj100000gn/T/pip-build-env-peyrlm2d/overlay/lib/python3.11/site-packages/numpy/core/include -I./hnswlib/ -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c ./python_bindings/bindings.cpp -o build/temp.macosx-10.9-universal2-cpython-311/./python_bindings/bindings.o -O3 -march=native -stdlib=libc++ -mmacosx-version-min=10.7 -DVERSION_INFO="0.7.0" -std=c++14 -fvisibility=hidden
clang: error: unsupported argument 'native' to option '-march='
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.
ERROR: Failed building wheel for hnswlib
Building wheel for PySDL2 (pyproject.toml) ... done
Created wheel for PySDL2: filename=PySDL2-0.9.15-py3-none-any.whl size=573308 sha256=2f1dcb7156ecbe931d0fa12d25bae4622a25d5bc16382f7f8f9cb46e4ad488f6
Stored in directory: /Users/zacharyrose/Library/Caches/pip/wheels/8e/c4/32/34f901467104e637e14634b2cff44053c93753f5ce52eacb0d
Building wheel for mediapy (pyproject.toml) ... done
Created wheel for mediapy: filename=mediapy-1.0.3-py3-none-any.whl size=24074 sha256=c5f7cd9f9cfac9682e1d2dfe170fb9515c67f472495a95b587938ff6c4b894c8
Stored in directory: /Users/zacharyrose/Library/Caches/pip/wheels/d4/7d/6b/971d9f470a859769dd50747d7ea1ee86353edf1cd32a323c6e
Building wheel for pathtools (pyproject.toml) ... done
Created wheel for pathtools: filename=pathtools-0.1.2-py3-none-any.whl size=8791 sha256=978e25795ff1f70c781d574b3e578fb636079f999882ef4cfb78116e44007cf0
Stored in directory: /Users/zacharyrose/Library/Caches/pip/wheels/ea/b7/8b/84e94095ea418b9442f5abeba4ca7b0ad52d3fe7b69d6238a6
Successfully built gym PySDL2 mediapy pathtools
Failed to build hnswlib
ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects

@PWhiddy
Copy link
Owner

PWhiddy commented Apr 29, 2024

(copied from PokeDraw/learning-Pokemon#1 (comment))

Based on
“clang: error: unsupported argument 'native' to option '-march=' “
it sounds like you possibly have an old version of clang, perhaps from an outdated install of xcode or llvm. see if you can update that and if it fixes it.

@PokeDraw
Copy link
Author

Apple clang version 15.0.0 (clang-1500.3.9.4) any command to install latest version

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