Hello again Risi,
I encounter an error (pasted below) while installing Snob2.
The problem is a file not found:
../include/Snob2_base.cpp: No such file or directory.
It is strange, as in the setup.py the directory ../include is correctly included in the project.
This is the error:
llowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/1] /hpctmp/classicwuongo/envs/sage310/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/svu/cccales/Snob2/python/build/temp.linux-x86_64-cpython-310/bindings/Snob2_bindings.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /hpctmp/classicwuongo/envs/sage310/include -fPIC -O2 -isystem /hpctmp/classicwuongo/envs/sage310/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /hpctmp/classicwuongo/envs/sage310/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /hpctmp/classicwuongo/envs/sage310/include -fPIC -I../../cnine -I../../cnine/include -I../../cnine/modules -I../../cnine/combinatorial -I../../cnine/containers -I../../cnine/math -I../../cnine/objects/backendA -I../../cnine/objects/backendB -I../../cnine/objects/scalar -I../../cnine/objects/tensor -I../../cnine/objects/tensor_views -I../../cnine/objects/tensor_views/functions -I../include -I../combinatorial -I../Sn -I/hpctmp/classicwuongo/envs/sage310/lib/python3.10/site-packages/torch/include -I/hpctmp/classicwuongo/envs/sage310/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/hpctmp/classicwuongo/envs/sage310/lib/python3.10/site-packages/torch/include/TH -I/hpctmp/classicwuongo/envs/sage310/lib/python3.10/site-packages/torch/include/THC -I/hpctmp/classicwuongo/envs/sage310/include/python3.10 -c -c /home/svu/cccales/Snob2/python/bindings/Snob2_bindings.cpp -o /home/svu/cccales/Snob2/python/build/temp.linux-x86_64-cpython-310/bindings/Snob2_bindings.o -std=c++14 -Wno-sign-compare -Wno-deprecated-declarations -Wno-unused-variable -Wno-reorder -Wno-reorder-ctor -Wno-overloaded-virtual -D_WITH_ATEN -DCNINE_RANGE_CHECKING -DCNINE_SIZE_CHECKING -DCNINE_DEVICE_CHECKING -DWITH_FAKE_GRAD -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=snob_base -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /home/svu/cccales/Snob2/python/build/temp.linux-x86_64-cpython-310/bindings/Snob2_bindings.o
/hpctmp/classicwuongo/envs/sage310/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/svu/cccales/Snob2/python/build/temp.linux-x86_64-cpython-310/bindings/Snob2_bindings.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /hpctmp/classicwuongo/envs/sage310/include -fPIC -O2 -isystem /hpctmp/classicwuongo/envs/sage310/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /hpctmp/classicwuongo/envs/sage310/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /hpctmp/classicwuongo/envs/sage310/include -fPIC -I../../cnine -I../../cnine/include -I../../cnine/modules -I../../cnine/combinatorial -I../../cnine/containers -I../../cnine/math -I../../cnine/objects/backendA -I../../cnine/objects/backendB -I../../cnine/objects/scalar -I../../cnine/objects/tensor -I../../cnine/objects/tensor_views -I../../cnine/objects/tensor_views/functions -I../include -I../combinatorial -I../Sn -I/hpctmp/classicwuongo/envs/sage310/lib/python3.10/site-packages/torch/include -I/hpctmp/classicwuongo/envs/sage310/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/hpctmp/classicwuongo/envs/sage310/lib/python3.10/site-packages/torch/include/TH -I/hpctmp/classicwuongo/envs/sage310/lib/python3.10/site-packages/torch/include/THC -I/hpctmp/classicwuongo/envs/sage310/include/python3.10 -c -c /home/svu/cccales/Snob2/python/bindings/Snob2_bindings.cpp -o /home/svu/cccales/Snob2/python/build/temp.linux-x86_64-cpython-310/bindings/Snob2_bindings.o -std=c++14 -Wno-sign-compare -Wno-deprecated-declarations -Wno-unused-variable -Wno-reorder -Wno-reorder-ctor -Wno-overloaded-virtual -D_WITH_ATEN -DCNINE_RANGE_CHECKING -DCNINE_SIZE_CHECKING -DCNINE_DEVICE_CHECKING -DWITH_FAKE_GRAD -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=snob_base -D_GLIBCXX_USE_CXX11_ABI=0
/home/svu/cccales/Snob2/python/bindings/Snob2_bindings.cpp:17:10: fatal error: ../include/Snob2_base.cpp: No such file or directory
17 | #include "../include/Snob2_base.cpp"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/hpctmp/classicwuongo/envs/sage310/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1893, in _run_ninja_build
subprocess.run(
File "/hpctmp/classicwuongo/envs/sage310/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
I take this opportunity to signal that:
- the doc (https://risi-kondor.github.io/Snob2/) should be updated as there is no
setup.sty
file anymore, but setup.py
- there is a warning suggesting to deprecate
python setup.py install
This is the warning at about python setup.py install
python setup.py install
running install
/hpctmp/classicwuongo/envs/sage310/lib/python3.10/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 or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
/hpctmp/classicwuongo/envs/sage310/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
classic