Project 6: Checking Device Status and Restarting the Device

Sir this is also not working.

@sec19ec082

It’s installed. Look. Try the device status project. Boltiot is successfully installed, look.

Same Error Sir

@sec19ec082

Run with sudo python3.7 device_status2.py

Not working sir

Hi @sec19ec082,

Run a series of codes to check which one works. I believe, your OS error was with python3 = 3.5.2, right?
Then, you installed python3.7 successfully.

Currently,
Your python version is 2.7, python3 version is 3.5 and python3.7 version is 3.7.

First check if running the code with python 2.7 gives you an error or not.

sudo python device_status2.py

If it doesn’t run, we will first install boltiot with py version 3.7. Run below code -

sudo pip3.7 install boltiot

Then run the program with,

sudo python3.7 device_status2.py

You shouldn’t get the module issue. But check if you still get the OS error.

1 Like

My problem Solved ,THANK YOU SO MUCH FOR YOUR KIND HELP SIR.

@sec19ec082

I hope you’ve understood what was wrong and the solution for it as well.

Let me know if you have any other queries.

Same problem but not solving after downloading 3.7 and tried with 3.8

Hi @adngangstergamers ,
Please run the following commands to install the Bolt Python Library:

sudo apt-get -y update
sudo apt install python3-pip
sudo pip3 install boltiot

Let me know if it doesn’t work.

Im already did this sir, it is alredy downloaded but this error araises again

@adngangstergamers try running

sudo python3.8 filename.py

Sir again same error

@adngangstergamers here’s what you need to do:
from boltiot import Bolt

Let me know if it doesn’t work, the code from bolt import bolt is incorrect.

Again same issue sir

[ image removed ]

While importing bolt, b should be small otherwise error come araises from 1st line

@adngangstergamers well it should be

from boltiot import Bolt #capital `B` only.

The error is coming because there’s no command like mybolt.response(). Check out the documentation for the library here.

Also, please regenerate your API Key as you have exposed it publicly.

Sir!
Could you please send the full code I couldn’t solve
Same error araising