Import playsound library to ROS
I was writing some code ROS Node in a python program where I wanted to use a library not in the standard library. In Pycharm (using virtualenv) however, when I run my program with, rosrun my_pkg my_node, I'm getting the import error.
The exact error --------> AttributeError: 'module' object has no attribute 'PyAudio'
Trying to use the playsound library code from here.
Not sure why ROS is not seeing the installed modules. Any advice on how to deal with installed packages like this?
Does it work for you outside of ros? I notice that link implies additional packages must be installed.
Issue resolved! It was indeed a problem out of ROS.