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.