I am getting this error when running python script for Azure ServiceBus.
Is the file in the wrong location, or am I importing it incorrectly?
pi@raspberrypi:~/letsroll $ python mrrobot.py
Traceback (most recent call last):
File "mrrobot.py", line 6, in <module>
from azure.servicebus import ServiceBusService
ImportError: No module named servicebus
Azure SDK path: pi@raspberrypi:~/azure-sdk-for-python $
Python script path:
pi@raspberrypi:~/letsroll $ ls
mrrobot.py
mrrobot.py
import RPi.GPIO as GPIO #For Controlling the Pins
import threading #To Run On Thread
import sys
import select
from azure.servicebus import ServiceBusService
import os
# Make sure you set the following:
AZURE_SERVICEBUS_NAMESPACE='mrrobot' #Your NameSpace Should Go Here
# Note: this user should have manage rights
AZURE_SERVICEBUS_SHARED_KEY_NAME='RootManageSharedAccessKey'
AZURE_SERVICEBUS_ACCESS_KEY_VALUE='MpcCdemokey'
GPIO_BCM_PIN = 17 #Pin your LED is connected to