“ImportError” cannot import name ‘PathLike’
"AttributeError: module ‘os’ has no attribute ‘PathLike’
The issue seems to be in the os library of your current python version. You can update the python version and it should resolve this error.
Follow the steps in the link below, to update your python and set all of it as default,
No sir for me, In “SETUP THE BOLT PYTHON LIBRARY”
STEP 3 : sudo pip3 install boltiot
Showing ERROR while running the above code.
As I have mentioned earlier, upgrade your python version from 3.5 to 3.7
Click on the link and follow the steps. It should be able to run after that.
Try below commands serially
apt update
sudo apt install software-properties-common
Then
sudo apt-get update
Then
sudo apt install python3.7
Let me know if you get the same result.
Yes sir, SAME ERROR IS COMING.
yes, i have.
it says 0 updates available.
the current version is 3.5.2
Try below commands serially
apt update
sudo apt install software-properties-common
Then
sudo add-apt-repository ppa:deadsnakes/ppa
Then
sudo apt-get update
Then
sudo apt install python3.7
Now test python version with
python3.7 --version
Let me know if you get the same result.
Hi @sec19ec082,
You can ignore this error.
Type the below command and send me the screenshot of the output.
sudo python --version
sudo python3 --version
sudo python3.7 --version
Try pip
instead of pip3
.
sudo pip install boltiot
Looks like you installed python3-pip. So it should work this way.