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

pybind11/eigen.h: No such file or directory #507

Open
KopiSoftware opened this issue Jun 25, 2024 · 0 comments
Open

pybind11/eigen.h: No such file or directory #507

KopiSoftware opened this issue Jun 25, 2024 · 0 comments

Comments

@KopiSoftware
Copy link

🐛 Bug

Compiling failed when run with python -m pip install -e src/home_robot. I solved it by removing relative dependency in src/home_robot/setup.py, as shown below. Then install these packages manually.

install_requires = [
    "numpy<1.24",
    "scipy==1.13.0",
    "hydra-core",
    "yacs",
    "h5py==3.11.0",
    "pybullet",
    "pygifsicle",
    "open3d",
    "numpy-quaternion",
    #"pybind11-global",          # commen this
    #"sophuspy==0.0.8",        # commen this
    "trimesh==3.23.5",
    "pin>=2.6.17",
    "torch_cluster",
    "torch_scatter",
    "pillow==9.5.0",  # For Detic compatibility
]

Then re-run python -m pip install -e src/home_robot, it will pass:

Installing collected packages: home-robot
  Attempting uninstall: home-robot
    Found existing installation: home-robot 0.1.0
    Uninstalling home-robot-0.1.0:
      Successfully uninstalled home-robot-0.1.0
  Running setup.py develop for home-robot
Successfully installed home-robot-0.1.0

Python 3.9.19 | packaged by conda-forge | (main, Mar 20 2024, 12:50:21) 
[GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import home_robot
>>> 

Steps to Reproduce

Steps to reproduce the behavior:

(home-robot) kyle@kyle-ThinkPad:~/Programs/AI/home-robot$ python -m pip install -e src/home_robot

Expected behavior

Compile success

Additional context

-- Found pybind11: /opt/ros/noetic/include (found version "2.10.3")
      -- cmake python version: 3.9.19
      -- Configuring done (0.3s)
      -- Generating done (0.0s)
      -- Build files have been written to: /tmp/pip-install-ph4h1dkq/sophuspy_55f42457cf284e2ca8de813fd905c3e5/build/temp.linux-x86_64-cpython-39
      cmake --build . --config Release -- -j4
      [ 50%] Building CXX object CMakeFiles/sophuspy.dir/sophus/sophuspy.cpp.o
      /tmp/pip-install-ph4h1dkq/sophuspy_55f42457cf284e2ca8de813fd905c3e5/sophus/sophuspy.cpp:2:10: fatal error: pybind11/eigen.h: No such file or directory
          2 | #include <pybind11/eigen.h>
            |          ^~~~~~~~~~~~~~~~~~
      compilation terminated.
      make[2]: *** [CMakeFiles/sophuspy.dir/build.make:76: CMakeFiles/sophuspy.dir/sophus/sophuspy.cpp.o] Error 1
      make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/sophuspy.dir/all] Error 2
      make: *** [Makefile:91: all] Error 2
      error: command '/home/kyle/anaconda3/envs/home-robot/bin/cmake' failed with exit code 2
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for sophuspy
  Running setup.py clean for sophuspy
Failed to build sophuspy
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

1 participant