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

Installation error (missing file Python.h) on 2.42 #8396

Closed
zlite opened this issue Feb 20, 2021 · 6 comments
Closed

Installation error (missing file Python.h) on 2.42 #8396

zlite opened this issue Feb 20, 2021 · 6 comments

Comments

@zlite
Copy link

zlite commented Feb 20, 2021

Installing 2.42 on a Jetson Nano, the make fails with this error (missing file):

/home/chris/librealsense-2.42.0/build/third-party/pybind11/include/pybind11/detail/common.h:122:10: fatal error: Python.h: No such file or directory
 #include <Python.h>
          ^~~~~~~~~~
compilation terminated.

The previous version of librealsense (2.41) works fine

@MartyG-RealSense
Copy link
Collaborator

Hi @zlite There were changes to pybind11 in 2.42.0. Here are the details from the release notes:

[Python] Integrate pybind11 V2.6.1 + replace pybind11 files with clone action
Clone pybind11 instead of keeping pybind files inside librealsense2 repo
Update pybind version 2.2.1 -> 2.6.1

#8176

May i confirm please what you are installing: is it the entire librealsense SDK, or only the Python wrapper? And what installation process are you using?

@zlite
Copy link
Author

zlite commented Feb 20, 2021

I'm following your instructions here. This is for the entire librealsense SDK

@MartyG-RealSense
Copy link
Collaborator

Thanks very much. If the process works on 2.41.0 but not on 2.42.0 then I would recommend using 2.41.0 for the time being and see if others report the same problem in coming days.

@Nir-Az
Copy link
Collaborator

Nir-Az commented Feb 22, 2021

Hi @zlite ,

please try to install python-dev package and try building again.
for example if you work with python 3.6:

sudo apt-get install python3.6-dev

@MartyG-RealSense
Copy link
Collaborator

Hi @zlite Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

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

No branches or pull requests

3 participants