Pangolin icon indicating copy to clipboard operation
Pangolin copied to clipboard

cmake --build . --target pypangolin_pip_install creates an unknown-unknown.whl

Open RishabhChangwani opened this issue 2 years ago • 8 comments

cmake --build . --target pypangolin_pip_install Consolidate compiler generated dependencies of target pango_core [ 9%] Built target pango_core Consolidate compiler generated dependencies of target pango_image [ 21%] Built target pango_image Consolidate compiler generated dependencies of target pango_opengl [ 29%] Built target pango_opengl Consolidate compiler generated dependencies of target pango_windowing [ 36%] Built target pango_windowing Consolidate compiler generated dependencies of target pango_vars [ 37%] Built target pango_vars Consolidate compiler generated dependencies of target pango_display [ 47%] Built target pango_display Consolidate compiler generated dependencies of target pango_packetstream [ 50%] Built target pango_packetstream Consolidate compiler generated dependencies of target pango_plot [ 54%] Built target pango_plot Consolidate compiler generated dependencies of target pango_video [ 80%] Built target pango_video Consolidate compiler generated dependencies of target pypangolin [ 98%] Built target pypangolin [ 98%] Creating Wheel /home/ubuntu/Desktop/catkin_ws/src/ORB_SLAM2/Pangolin/build/unknown-unknown.whl [ 98%] Built target pypangolin_wheel [100%] Installing for selected Python '/usr/bin/python3.9' unknown-unknown.whl is not a valid wheel filename. CMakeFiles/pypangolin_pip_install.dir/build.make:70: recipe for target 'CMakeFiles/pypangolin_pip_install' failed make[3]: *** [CMakeFiles/pypangolin_pip_install] Error 1 CMakeFiles/Makefile2:956: recipe for target 'CMakeFiles/pypangolin_pip_install.dir/all' failed make[2]: *** [CMakeFiles/pypangolin_pip_install.dir/all] Error 2 CMakeFiles/Makefile2:963: recipe for target 'CMakeFiles/pypangolin_pip_install.dir/rule' failed make[1]: *** [CMakeFiles/pypangolin_pip_install.dir/rule] Error 2 Makefile:390: recipe for target 'pypangolin_pip_install' failed make: *** [pypangolin_pip_install] Error 2

RishabhChangwani avatar Apr 07 '22 03:04 RishabhChangwani

I had exactly same issue when CMake selected python2.7, but when I change the version to python3.6 (by cmake .. -DPython_EXECUTABLE=/......./python3.6, since I use CMake version 3.18.0 the variable is as so) I got no issue. Maybe I think the version of python is the reason. Try little bit low version such as 3.6 or 3.8

goldbird5 avatar Apr 13 '22 22:04 goldbird5

pip install wheel

0xTechSavvy avatar May 01 '22 09:05 0xTechSavvy

pip install wheel

it says Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.34.2)

dwindy avatar Jun 02 '22 21:06 dwindy

I cannot reproduce this with:

cmake -B build
cmake --build build --target pypangolin_pip_install

If I run these commands, I get a pypangolin-0.8-cp38-cp38-linux_x86_64.whl inside the folder build.

christian-rauch avatar Jun 06 '22 12:06 christian-rauch

Open the file ./cmake/MakePythonWheel.cmake, and you will find the code:

message(STATUS "Python module `setuptools` required for correct wheel filename generation. Please install if needed.")
        set(wheel_filename "unknown;unknown")

This is why you got unknown-unknown.whl. Fix this issue by:

python3 -m pip install --upgrade pip setuptools wheel

Coldmooon avatar Aug 02 '22 12:08 Coldmooon

cmake -B build -GNinja build with ninja works! no need to specific PYTHON_DIR or PYTHON_EXECUTABLE

Then. cmake --build build -t pypangolin_pip_install

esmeetu avatar Jan 15 '23 07:01 esmeetu

incounter an error while running $cmake --build build -t pypangolin_pip_install

ERROR: unknown-unknown.whl is not a valid wheel filename.
make[3]: *** [CMakeFiles/pypangolin_pip_install.dir/build.make:58: CMakeFiles/pypangolin_pip_install] Error 1
make[2]: *** [CMakeFiles/Makefile2:746: CMakeFiles/pypangolin_pip_install.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:753: CMakeFiles/pypangolin_pip_install.dir/rule] Error 2
make: *** [Makefile:268: pypangolin_pip_install] Error 2

Solution:

add python directory to the PATH NOTE: for python location $whereis python3, for adding to PATH $export PATH="/python_location:$PATH"

Where, /python_location = /usr/bin/pyhton3.8 (or your python3 location)

After adding directory to PATH re-run

$cmake -B build
$cmake --build build

from here and finally $cmake --build build -t pypangolin_pip_install

goku-g avatar Feb 14 '23 19:02 goku-g

incounter an error while running $cmake --build build -t pypangolin_pip_install

ERROR: unknown-unknown.whl is not a valid wheel filename.
make[3]: *** [CMakeFiles/pypangolin_pip_install.dir/build.make:58: CMakeFiles/pypangolin_pip_install] Error 1
make[2]: *** [CMakeFiles/Makefile2:746: CMakeFiles/pypangolin_pip_install.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:753: CMakeFiles/pypangolin_pip_install.dir/rule] Error 2
make: *** [Makefile:268: pypangolin_pip_install] Error 2

Solution:

add python directory to the PATH NOTE: for python location $whereis python3, for adding to PATH $export PATH="/python_location:$PATH"

Where, /python_location = /usr/bin/pyhton3.8 (or your python3 location)

After adding directory to PATH re-run

$cmake -B build
$cmake --build build

from here and finally $cmake --build build -t pypangolin_pip_install

it works, helps me a lot thx

chenmozxh avatar Jul 07 '23 02:07 chenmozxh