Hello @nakaoka -san, I am able to build the python plugin along with Choreonoid. I can test the plugin by executing the simple hello_world.py file which seems to be working fine. However, when I try to run one of the python files from sample dir. I am facing import issues. Snapshot below for reference.
Message that I see on Chorenoid -
What is “test_controller.py”?
test_controller.py is a Python file that I am writing to develop a custom controller/simulator in Choreonoid.
I created the same project as you presented in this topic.
The script is below:
print("Hello World")
import cnoid
from cnoid.Base import *
I loaded the script into Choreonoid as a Python script item and executed the script, and the result is as follows:
Execution of Python script "test_controller.py" has been started.
Hello World
The execution of Python script "test_controller.py" has been finished.
Here is a screenshot of this:
As such it is running fine and I am sorry, but I do not know why you are getting an error. Please let me know if there is any difference in what you actually executed.