Open bliao-jussieu opened 2 years ago
Very similar issue
alexey@lbelkov:~/some_path_to_project/den2vel/mantaflow/build$ make -j4
Scanning dependencies of target prep
[ 1%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/tokenize.cpp.o
[ 2%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/main.cpp.o
[ 2%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/parse.cpp.o
[ 2%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/code.cpp.o
[ 3%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/util.cpp.o
[ 4%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/merge.cpp.o
[ 4%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/codegen_python.cpp.o
[ 5%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/codegen_kernel.cpp.o
[ 6%] Linking CXX executable prep
[ 6%] Built target prep
[ 8%] Generating pp/source/fluidsolver.cpp
[ 8%] Generating pp/source/gitinfo.h
[ 8%] Generating pp/source/general.cpp
[ 8%] Generating pp/source/conjugategrad.cpp
/bin/sh: 1: /some_path_to_project/den2vel/mantaflow/tools/getGitVersion.py: Permission denied
make[2]: *** [CMakeFiles/manta.dir/build.make:737: pp/source/gitinfo.h] Error 126
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:77: CMakeFiles/manta.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Hello,
I tried to install on google colab but unfortunately did not succeed. The process failed during cmake.
ffmpeg is installed on colab, but I did not try to install conda.
Here is what I have done on colab:
!git clone https://github.com/RachelCmy/den2vel.git %cd den2vel !pip install -r ./requirements.txt
Output:
Requirement already satisfied: numpy>=1.16.0 in /usr/local/lib/python3.7/dist-packages (from -r ./requirements.txt (line 1)) (1.19.5) Collecting imageio>=2.6.1 Downloading imageio-2.15.0-py3-none-any.whl (3.3 MB) |████████████████████████████████| 3.3 MB 9.2 MB/s Requirement already satisfied: matplotlib>=3.1.0 in /usr/local/lib/python3.7/dist-packages (from -r ./requirements.txt (line 3)) (3.2.2) Requirement already satisfied: opencv-python>=2.4.11 in /usr/local/lib/python3.7/dist-packages (from -r ./requirements.txt (line 4)) (4.1.2.30) Requirement already satisfied: scipy>=1.1.0 in /usr/local/lib/python3.7/dist-packages (from -r ./requirements.txt (line 5)) (1.4.1) Requirement already satisfied: scikit-image>=0.16.2 in /usr/local/lib/python3.7/dist-packages (from -r ./requirements.txt (line 6)) (0.18.3) Collecting pillow>=8.3.2 Downloading Pillow-9.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB) |████████████████████████████████| 4.3 MB 48.0 MB/s Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/local/lib/python3.7/dist-packages (from matplotlib>=3.1.0->-r ./requirements.txt (line 3)) (3.0.7) Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.7/dist-packages (from matplotlib>=3.1.0->-r ./requirements.txt (line 3)) (0.11.0) Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.7/dist-packages (from matplotlib>=3.1.0->-r ./requirements.txt (line 3)) (1.3.2) Requirement already satisfied: python-dateutil>=2.1 in /usr/local/lib/python3.7/dist-packages (from matplotlib>=3.1.0->-r ./requirements.txt (line 3)) (2.8.2) Requirement already satisfied: PyWavelets>=1.1.1 in /usr/local/lib/python3.7/dist-packages (from scikit-image>=0.16.2->-r ./requirements.txt (line 6)) (1.2.0) Requirement already satisfied: networkx>=2.0 in /usr/local/lib/python3.7/dist-packages (from scikit-image>=0.16.2->-r ./requirements.txt (line 6)) (2.6.3) Requirement already satisfied: tifffile>=2019.7.26 in /usr/local/lib/python3.7/dist-packages (from scikit-image>=0.16.2->-r ./requirements.txt (line 6)) (2021.11.2) Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.7/dist-packages (from python-dateutil>=2.1->matplotlib>=3.1.0->-r ./requirements.txt (line 3)) (1.15.0) Installing collected packages: pillow, imageio Attempting uninstall: pillow Found existing installation: Pillow 7.1.2 Uninstalling Pillow-7.1.2: Successfully uninstalled Pillow-7.1.2 Attempting uninstall: imageio Found existing installation: imageio 2.4.1 Uninstalling imageio-2.4.1: Successfully uninstalled imageio-2.4.1 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. albumentations 0.1.12 requires imgaug<0.2.7,>=0.2.5, but you have imgaug 0.2.9 which is incompatible. Successfully installed imageio-2.15.0 pillow-9.0.1 WARNING: The following packages were previously imported in this runtime: [PIL] You must restart the runtime in order to use newly installed versions.
The error/warning does not seem serious so I went on:
!mkdir mantaflow/build %cd mantaflow/build !cmake .. -DGUI=OFF -DOPENMP=ON -DNUMPY=ON
Output:
/content/den2vel/mantaflow/build -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- -- Options - -DDEBUG='OFF' -DGUI='OFF' -DTBB='OFF' -DOPENMP='ON' -DPREPDEBUG='OFF' -DDOUBLEPRECISION='OFF' -DPYTHON_VERSION='OFF' -DNUMPY='ON' -DNOPYTHON='OFF' -- Multithreading type : OPENMP -- Using numpy include path '/usr/local/lib/python2.7/dist-packages/numpy/core/include' Using python include path '/usr/local/include/python2.7' and libs '/usr/lib/libpython2.7.so ' -- Git info target header /content/den2vel/mantaflow/build/pp/source/gitinfo.h -- Performing Test COMPILER_SUPPORTS_CXX11 -- Performing Test COMPILER_SUPPORTS_CXX11 - Success -- Performing Test COMPILER_SUPPORTS_CXX0X -- Performing Test COMPILER_SUPPORTS_CXX0X - Success -- Configuring done CMake Error at CMakeLists.txt:654 (add_executable): Target "manta" links to item "/usr/lib/libpython2.7.so " which has leading or trailing whitespace. This is now an error according to policy CMP0004. -- Generating done -- Build files have been written to: /content/den2vel/mantaflow/build
cmake output seems odd since it should look for python3.7 (which is the python version colab is using) instead of 2.7. I went on to make and encounter failure:
!make -j4
Output:
Scanning dependencies of target prep [ 1%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/main.cpp.o [ 1%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/code.cpp.o [ 1%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/parse.cpp.o [ 2%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/tokenize.cpp.o [ 3%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/util.cpp.o [ 4%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/merge.cpp.o [ 4%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/codegen_python.cpp.o [ 5%] Building CXX object CMakeFiles/prep.dir/source/preprocessor/codegen_kernel.cpp.o [ 6%] Linking CXX executable prep [ 6%] Built target prep [ 7%] Generating pp/source/gitinfo.h [ 8%] Generating pp/source/fluidsolver.cpp [ 8%] Generating pp/source/conjugategrad.cpp /bin/sh: 1: /content/den2vel/mantaflow/tools/getGitVersion.py: Permission denied CMakeFiles/manta.dir/build.make:736: recipe for target 'pp/source/gitinfo.h' failed make[2]: *** [pp/source/gitinfo.h] Error 126 make[2]: *** Waiting for unfinished jobs.... [ 8%] Generating pp/source/general.cpp CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/manta.dir/all' failed make[1]: *** [CMakeFiles/manta.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
Hi. This helped me, i just change first line to #!/usr/bin/python3
in mantaflow/tools/getGitVersion.py
Hello,
I tried to install on google colab but unfortunately did not succeed. The process failed during cmake.
ffmpeg is installed on colab, but I did not try to install conda.
Here is what I have done on colab:
Output:
The error/warning does not seem serious so I went on:
Output:
cmake output seems odd since it should look for python3.7 (which is the python version colab is using) instead of 2.7. I went on to make and encounter failure:
Output: