robotoc icon indicating copy to clipboard operation
robotoc copied to clipboard

Python bindings installation

Open lnotspotl opened this issue 3 years ago • 3 comments

Hello,

first of all, I'd like to say that what you're doing is amazing. I really like this project a simply reading through the code teaches me a lot.

I wanted to play around with the python bindings the other day, so I followed the installation procedure and installed everything according to the installation guide. However, when I try to import robotoc, the python interpreter complains that there's no robotoc.robot.contact_status module.

Do you know, why this could be?

Thanks. image

lnotspotl avatar Jan 02 '22 18:01 lnotspotl

Hi,

Thank you for being interested in this project. This problem sometimes happens to me, too. This happens because CMake does not recognize the python bindings (shared lib files such as contact_statuc.cpython-38-x86_64-linux-gnu.so). Then make install commands ignore these python bindings. Unfortunately, I cannot get why make install commands ignore them. In my case, I can install the Python bindings by doing cmake .. again at the build directory. Then make install may install the Python bindings.

mayataka avatar Jan 02 '22 22:01 mayataka

Yep, that worked well. Thank you.

Once again, thank you for making all of this open-source, it's so much fun to learn from this project.

lnotspotl avatar Jan 03 '22 11:01 lnotspotl

I'll keep this issue open because the same problem can occur for others.

mayataka avatar Jan 04 '22 06:01 mayataka