facebookresearch/chameleon

Compatibility issues

LandoEng opened this issue · 1 comments

xformers and Hydra
Python 3.12.4

Collecting xformers
Using cached xformers-0.0.26.post1.tar.gz (4.1 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'

error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/f7/m1kn5vn12z97ch3x_6spwstm0000gn/T/pip-build-env-9igxbtr1/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/f7/m1kn5vn12z97ch3x_6spwstm0000gn/T/pip-build-env-9igxbtr1/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 297, in _get_build_requires
self.run_setup()
File "/private/var/folders/f7/m1kn5vn12z97ch3x_6spwstm0000gn/T/pip-build-env-9igxbtr1/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 497, in run_setup
super().run_setup(setup_script=setup_script)
File "/private/var/folders/f7/m1kn5vn12z97ch3x_6spwstm0000gn/T/pip-build-env-9igxbtr1/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 313, in run_setup
exec(code, locals())
File "", line 23, in
ModuleNotFoundError: No module named 'torch'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Collecting hydra
Using cached Hydra-2.5.tar.gz (82 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: hydra
Building wheel for hydra (pyproject.toml): started
Building wheel for hydra (pyproject.toml): finished with status 'error'
Failed to build hydra

error: subprocess-exited-with-error

× Building wheel for hydra (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-cpython-312
copying src/hydra.py -> build/lib.macosx-10.9-universal2-cpython-312
running build_ext
building '_hydra' extension
creating build/temp.macosx-10.9-universal2-cpython-312
creating build/temp.macosx-10.9-universal2-cpython-312/src
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/private/var/folders/f7/m1kn5vn12z97ch3x_6spwstm0000gn/T/pip-install-iv1k0s04/hydra_1b89b2ba70534a1fb7d8dde7e07f7c00/src -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c src/MurmurHash3.c -o build/temp.macosx-10.9-universal2-cpython-312/src/MurmurHash3.o -std=gnu99 -O2 -D_LARGEFILE64_SOURCE
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/private/var/folders/f7/m1kn5vn12z97ch3x_6spwstm0000gn/T/pip-install-iv1k0s04/hydra_1b89b2ba70534a1fb7d8dde7e07f7c00/src -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c src/_hydra.c -o build/temp.macosx-10.9-universal2-cpython-312/src/_hydra.o -std=gnu99 -O2 -D_LARGEFILE64_SOURCE
src/_hydra.c:61:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"
^~~~~~~~~~~~~~~
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.
ERROR: Failed building wheel for hydra
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (hydra)

This is an issue with Hydra installation -- please open an issue in that repo.