Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tohidarehman1988 opened this issue Jun 22, 2023 · 4 comments

Comments

@tohidarehman1988
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Author

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants