I’m getting this error and I’m not sure what to do next
Hi @pruthvisalian,
Please type the below command and then attach the screenshot of the output
sudo pip3 freeze
and then run the below command to install boltiot package.
sudo pip3 install boltiot
Again type the below command and attach the screenshot
sudo pip3 freeze
Do let me know in case you need any other information.
Hi @pruthvisalian,
I think this is a version conflict between python version 3.5 and pip.
Let’s remove the pip from your system.
sudo apt-get remove --purge python3-pip python-pip
sudo apt-get autoremove
rm -r /usr/local/bin/pip3
rm -r /usr/local/bin/pip
rm -r /home/$USER/.local/bin/pip3
Then try the below command one by one.
sudo apt-get update
sudo apt-get update python3-pip
sudo pip3 install boltiot
Also, send me the screenshot of the output.
Do let me know in case you need any other information.
Hi @pruthvisalian,
Use the sudo with the rm command.
Can you share the ubuntu version with me? You can use the below command -
python3 --version
lsb_release -a
There are some issues with pip for python3.5. We will upgrade it to at least python3.7 once you share the ubuntu version.
Do let me know in case you need any other information.
Hi @pruthvisalian,
Use this link to update your python https://medium.com/@jeethu.samsani/upgrade-python-3-5-to-3-7-in-ubuntu-a1d4347b6a3
Let me know after updating to python3.7.
Hello Sir @rahul.singh1, I’m Done With The Updating My Python To 3.7.10. Now What Should be My Next Steps?
Hi @pruthvisalian,
Now run all the commands as instructed in the training.
Do let me know in case you need you are facing any other issues.
hello sir @rahul.singh1, I did do all the steps and I’m confused if the download was done properly or not. ss of the warning I’m getting
@pruthvisalian
Continue with the steps provided in the training. Let us know if you face any errors and cannot move ahead.
@akshayan.sinha Sir, I Did Do all The Steps And This Is The Warning that I Got. So Should I Ignore It?
@akshayan.sinha @rahul.singh1, For some reason I’m not able to complete it. I did upgrade my pip before and it showed it was installed but I can’t see it now.
@pruthvisalian
Continue with the training module as of now. Ignore the warnings. Write programs and run them.
Let us know if you face any problems during that.
@pruthvisalian
You have written half of the code. Your API key and DEVICE ID is missing in the code.
from boltiot import Bolt
api_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
device_id = "BOLTXXXXX"
mybolt = Bolt(api_key, device_id)
response = mybolt.restart()
print (response)
@pruthvisalian
Go through the module, you’ll find it written over there clearly. Make sure not to skip the course training.
Visit https://cloud.boltiot.com/api to find your API key and cloud.boltiot.com for your device ID.
Both the links are provided in the course as well.