Error during installation
What commit version of aidge do you use
The problem is the same with the main branch and the dev branch.
Problem description
The installation of the package stops after several C++ compilation errors.
Is this a regression ? Yes
Please provide logs in the form of a code block
(env_aidge) farges@WDTIS181H:/mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning$ rm -r -f build
(env_aidge) farges@WDTIS181H:/mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning$ rm -r aidge_learning.egg-info/
(env_aidge) farges@WDTIS181H:/mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning$ pip install .
Processing /mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: aidge_learning
Building wheel for aidge_learning (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for aidge_learning (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [140 lines of output]
running bdist_wheel
.... (many lines)
[ 40%] Building CXX object CMakeFiles/_aidge_learning.dir/src/optimizer/Optimizer.cpp.o
/mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning/src/loss/classification/BCE.cpp: In function ‘Aidge::Tensor Aidge::loss::BCE(std::shared_ptr<Aidge::Tensor>&, const std::shared_ptr<Aidge::Tensor>&)’:
/mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning/src/loss/classification/BCE.cpp:63:49: error: invalid initialization of reference of type ‘const string&’ {aka ‘const std::__cxx11::basic_string<char>&’} from expression of type ‘int’
63 | const std::shared_ptr<Node> add1_node = Add(2, "add1");
| ^
In file included from /mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning/src/loss/classification/BCE.cpp:24:
/mnt/d/farges/Documents/aidge/env_aidge/lib/libAidge/include/aidge/operator/Add.hpp:69:46: note: in passing argument 1 of ‘std::shared_ptr<Aidge::Node> Aidge::Add(const string&)’
69 | std::shared_ptr<Node> Add(const std::string& name = "");
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
.... (several errors of that type)
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for aidge_learning
Failed to build aidge_learning
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (aidge_learning)
(env_aidge) farges@WDTIS181H:/mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning$ git status
On branch dev
Your branch is up to date with 'origin/dev'.
nothing to commit, working tree clean
(env_aidge) farges@WDTIS181H:/mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning$ git pull
Already up to date.
(env_aidge) farges@WDTIS181H:/mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning$ git switch main
Switched to branch 'main'
Your branch is behind 'origin/main' by 52 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
(env_aidge) farges@WDTIS181H:/mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning$ git pull
Updating 035f43e..18162b4
Fast-forward
.... (several lines)
create mode 100644 unit_tests/metrics/Test_Accuracy.cpp
(env_aidge) farges@WDTIS181H:/mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning$ ls
CHANGELOG LICENSE README.md aidge_learning-config.cmake.in build include pyproject.toml setup.py unit_tests
CMakeLists.txt MANIFEST.in aidge_learning aidge_learning.egg-info cmake project_name.txt python_binding src version.txt
(env_aidge) farges@WDTIS181H:/mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning$ rm -r -f build
(env_aidge) farges@WDTIS181H:/mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning$ rm -r aidge_learning.egg-info/
(env_aidge) farges@WDTIS181H:/mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning$ pip install .
Processing /mnt/d/farges/Documents/aidge/aidge/aidge/aidge_learning
Installing build dependencies ... done
.... (many lines) -> same error than with the dev branch