davidcaron / pclpy

Python bindings for the Point Cloud Library (PCL)
MIT License
428 stars 59 forks source link

importError:cannot import name "generators" on running generate_pybind11_bindings.py #47

Open MichaleWong opened 5 years ago

MichaleWong commented 5 years ago

Hi, david. your job is doing greate, many people need it. I am compiling it on centos, if it is finished, I hope contribute my work on your repo. now I suffered a problem, running command "python generate_pybind11_bindings.py", a ImportError happened, ImportError: cannot import name "generators" how to fix it.

MichaleWong commented 5 years ago

by the way , I used python3.5

marcoesposito1988 commented 5 years ago

I solved this by adding the parent directory to the PYTHONPATH: PYTHONPATH=.. python generate_pybind11_bindings.py

I guess that the author's setup automatically added the project directory to the interpreter's PYTHONPATH.