Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import ambf_client #218

Open
darthandvader opened this issue Oct 14, 2023 · 5 comments
Open

Can't import ambf_client #218

darthandvader opened this issue Oct 14, 2023 · 5 comments

Comments

@darthandvader
Copy link

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
Copy link
Member

Hello,

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

@darthandvader
Copy link
Author

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

@adnanmunawar
Copy link
Member

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

@darthandvader
Copy link
Author

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants