CEA-LIST / N2D2

N2D2 is an open source CAD framework for Deep Neural Network simulation and full DNN-based applications building.
Other
146 stars 36 forks source link

Install Gnuplot but still giving this error "Could NOT find Gnuplot (missing: GNUPLOT_EXECUTABLE)" #124

Open tohidarehman1988 opened 1 year ago

tohidarehman1988 commented 1 year ago

CMake Error at /usr/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Gnuplot (missing: GNUPLOT_EXECUTABLE) Please help to resolve this.

cmoineau commented 1 year ago

Hello @tohidarehman1988,

Are you sure Gnuplot is well installed ? To test this you can try:

gnuplot --version

From what I can see, GNUPLOT_EXECUTABLE is set by: https://cmake.org/cmake/help/latest/module/FindGnuplot.html So maybe setting this variable in the CmakeList can fix your issue ?

You can find the path to the gnuplot executable using:

which gnuplot

Cheers, Cyril

tohidarehman1988 commented 1 year ago

image Name: PyGnuplot Version: 0.12.3 Summary: Python Gnuplot wrapper Home-page: https://github.com/benschneider/PyGnuplot Author: Ben Schneider Author-email: License: MIT Location: /usr/local/lib/python3.10/dist-packages Requires: Required-by:

tohidarehman1988 commented 1 year ago

Please help @cmoineau Platform is google colab: When executing !python setup.py bdist_wheel

Error is like this given below:

cmake /content/drive/MyDrive/N2D2 -- cotire 1.8.0 loaded. CMake Error at /usr/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Gnuplot (missing: GNUPLOT_EXECUTABLE) Call Stack (most recent call first): /usr/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) /usr/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.25/Modules/FindGnuplot.cmake:53 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:228 (find_package)

-- Configuring incomplete, errors occurred! See also "/content/drive/MyDrive/N2D2/CMakeFiles/CMakeOutput.log". See also "/content/drive/MyDrive/N2D2/CMakeFiles/CMakeError.log". error: command '/usr/local/bin/cmake' failed with exit code 1

cmoineau commented 1 year ago

Can you try to run the command I have send you ? CMake recquires gnuplot and it looks like pygnuplot install it in a path which is not available to Cmake.