Why can't pycharm detect ros modules ? [closed]

asked 2019-06-22 09:00:47 -0500

microbot gravatar image

I have been working on my project and have been writing a custom control plugin using python interpreter. When I tried to import any ros modules such as roslib, sensor_msgs or rospy, pycharm is unable to detect them and its showing, no module error. Can anyone help me point out whats the problem with it ? I am fairly new to the ROS. Thank you.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by microbot
close date 2019-06-22 14:17:05.347283

Comments

This would seem to be a duplicate of #q204326. Be sure to also check the linked IDEs page.

If it is a duplicate, please close as a duplicate.

And related: #q304101.

gvdhoorn gravatar image gvdhoorn  ( 2019-06-22 09:52:26 -0500 )edit

Thanks that helps, apparently the problem is all my environments are sourced and installed through bash and recently I have changed it to zsh and hence any of my IDE's are not able to recognize the modules that are installed and sourced during the bash. getting back to bash helped to resolve the problem.

microbot gravatar image microbot  ( 2019-06-22 10:02:34 -0500 )edit