Problem in device status

Hi Aarnav Kashyape here. I am facing problems in the device_status program:


Screenshot 2022-01-27 at 8.54.26 PM

Please help me @akshayan.sinha

@aarnav.kashyape

Did you install the ‘boltiot’ python library?

It is recommended to go through the course thoroughly. We have provided the instructions to install the python library, before this program.

Let me know if you have any other queries.

Thank you very much. I must have missed that part

Yes I installed the library but same error

1 Like


I’m too having the same trouble and its showing like this

On Your linux machine’s terminal
Give command python3 and then from boltiot import *
image

If the result is similar to as shown in the image, then type Bolt and then press enter
image

If not then try this,
Exit the python IDLE using exit() and then type command pip3 show boltiot, as shown
image

Copy the Location, in my case /usr/local/lib/python3.8/dist-packages somewhere in notepad.
Then in the terminal write following command.

export PYTHONPATH="$PYTHONPATH:<your copied location>"
Be cautious with the spaces

If there are no errors, then run the tests mentioned in the beginning of this post again, they should work fine.
The function import looks for files into your PYTHONPATH environment variable and your local directory, so here we copied the path to boltiot library to the python environment variable.

I installed it successfully