WPI-AIM / ambf

Asynchronous Multi-Body Framework
158 stars 64 forks source link

Can't import ambf_client #218

Open darthandvader opened 11 months ago

darthandvader commented 11 months ago

I've sourced the ambf/build/devel folder and can find the path in my bash file but still when I use the python script in pycharm htere's still "No module named ambf_client". I also tried switching to python 2.7 interpreter but it didn't work.

I looked at the issue #9 and #67 it seems like they can launch the client after adding the path so I'm comfused which step I missed.

Thank you!

adnanmunawar commented 11 months ago

Hello,

Are you running Pycharm via the terminal with your .bashrc file sourced?

darthandvader commented 11 months ago

Hi, I run Pycharm directly from application interface. Should I run it from terminal instead?

adnanmunawar commented 11 months ago

Yes, you should run it from a terminal with the ROS and AMBF sourced prior to launch.

darthandvader commented 11 months ago

You are right, ambf_client module can be detected when I launch pycharm from terminal. But there's a new problem is that "Cannot find reference 'Client' in 'init.py' ". I installed gym with python 3.8 and also installed ros noetic. I don't know if I missed something.

adnanmunawar commented 11 months ago

What is this init.py file? Is that from AMBF?