import error no module named _bluetooth

asked 2017-10-12 22:45:21 -0600

nada2bnm gravatar image

hello I'm studying ros with raspberry ,ubuntu mate 16.04

I want to ask about blue tooth problem.

I'm already installed bluez,pybluez,python-bluez etc.

I run the bluetooth code in terminal,('sudo python')

it has not error,

but create ros package (bluetooth) pkg files , and run same code ,

it had errors,

error named : import error: no module named "_.bluetooth"

I'm studying with this source :

edit retag flag offensive close merge delete


ROS uses Python 2 for everything, so any module you want to use should be installed for Python 2.

Is python on your system perhaps pointing to Python 3?

gvdhoorn gravatar image gvdhoorn  ( 2017-10-13 04:31:08 -0600 )edit

in terminal, python -v , I checked version 2.7 ,

nada2bnm gravatar image nada2bnm  ( 2017-10-20 03:52:21 -0600 )edit