pclpy icon indicating copy to clipboard operation
pclpy copied to clipboard

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

Open MichaleWong opened this issue 5 years ago • 2 comments

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 avatar Aug 15 '19 15:08 MichaleWong

by the way , I used python3.5

MichaleWong avatar Aug 16 '19 01:08 MichaleWong

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.

marcoesposito1988 avatar Nov 22 '19 15:11 marcoesposito1988