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

Error while doing catkin_make - Required exact python 3.8.10 version #80

Open
arturokkboss33 opened this issue Apr 15, 2024 · 1 comment

Comments

@arturokkboss33
Copy link

Hello,

After I install all requirements and run catkin_make. The opentera_webrtc_ros CMakeLists.txt in line 42 'add_definitions(-DWEBRTC_POSIX)' outputs the following error:

-- opentera-webrtc-native-client Version : 1.1.3 CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find Python: Found unsuitable version "3.8", but required is exact version "3.8.10" (found _Python_EXECUTABLE-NOTFOUND) Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:391 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.16/Modules/FindPython/Support.cmake:2214 (find_package_handle_standard_args) /usr/share/cmake-3.16/Modules/FindPython.cmake:304 (include) opentera-webrtc-ros/opentera_webrtc_ros/opentera-webrtc/CMakeLists.txt:42 (find_package)
Any advice how I can force to accept 3.8 which is the default in Ubuntu 20.04.

I tried installing 3.8.10 but breaks other things in ROS noetic.

Thanks

@jmnavarrete
Copy link

Hello,

I am encountering a similar issue while attempting to build the opentera_webrtc_ros package. When executing catkin_make after installing all requirements, the process fails with the following error:

-- opentera-webrtc-native-client Version : 1.1.3
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Python: Found unsuitable version "3.8", but required is
  exact version "3.8.10" (found _Python_EXECUTABLE-NOTFOUND)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:391 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.16/Modules/FindPython/Support.cmake:2214 (find_package_handle_standard_args)
  /usr/share/cmake-3.16/Modules/FindPython.cmake:304 (include)
  opentera-webrtc-ros/opentera_webrtc_ros/opentera-webrtc/CMakeLists.txt:37 (find_package)

-- Configuring incomplete, errors occurred!
See also "CMakeFiles/CMakeOutput.log".
See also "CMakeFiles/CMakeError.log".
Invoking "cmake" failed 

I have attempted to address this issue by setting the PYTHON_INCLUDE_DIR variable to '/usr/bin/python3', but the problem persists. Additionally, when I check the Python version using 'python --version' or '/usr/bin/python3 --version', it confirms that Python 3.8.10 is installed.

Do you know how to solve this problem?

Thank you very much.

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