Trouble with platformio and python version 3.6 and above

1,057 views
Skip to first unread message

Mohammed Sherief

unread,
Feb 24, 2021, 2:03:44 AM2/24/21
to LINOROBOT
Hello guys ,

I am facing the issue as described in the screenshot while running platformio commands .
Robot computer : Rasbpi 3b+

Thanks ,
Sherief.
Screenshot from 2021-02-24 12-32-16.png

Mohammed Sherief

unread,
Feb 25, 2021, 2:14:27 PM2/25/21
to LINOROBOT

Arunkumar

unread,
Mar 10, 2021, 5:48:34 AM3/10/21
to LINOROBOT
Hi ,
I am also facing the same problem 
You have shared the link but could you specifically share the codes that are need to be run

Thanks in advance

Regards ,
Arunkumar

Phil NetworkAdmin

unread,
Mar 11, 2021, 12:39:46 AM3/11/21
to LINOROBOT
For Ubuntu 16.04 (Xenial)

pip uninstall platformio
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6
pip3.6 install platformio
grep -v "pip install -U platformio" install > install2
mv install2 install
chmod +x install

Arunkumar

unread,
Mar 11, 2021, 12:43:00 AM3/11/21
to LINOROBOT
Hey thanks for your reply
I am using Ubuntu 18.04 will this work for melodic?

Regards ,
Arunkumar

Phil NetworkAdmin

unread,
Mar 11, 2021, 9:48:18 PM3/11/21
to LINOROBOT
try this:
pip uninstall platformio
pip3 install platformio

Mohammed Sherief

unread,
Mar 12, 2021, 12:27:10 AM3/12/21
to LINOROBOT

Exact steps i followed to solve this .

1. Ensure your python version is above 3.6 (run  $ python 3 --version)


3. Install or upgrade platformio using this method
wget https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py -O get-platformio.py
python3 get-platformio.py
   ( i did shell commands method 1 )
5. remember to source the profile file
6. Run " Platformio system info " , if you get a result without any error, then you are good to go .

hope it helps.

Important : if you are running install file of lino robot , remember to comment the lines related to platformio , else you may end up installing the older version again . These are the two lines to comment.

sudo python2.7 -m pip install -U platformio
sudo rm -rf $HOME/.platformio/

Sherief,.

Arunkumar

unread,
Mar 12, 2021, 6:01:27 AM3/12/21
to LINOROBOT
Thanks to all,

Problem has been Solved by Following these steps provided by Mr.phil

pip uninstall platformio
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6
curl https://bootstrap.pypa.io/get-pip.py | sudo python3.6
pip3.6 install platformio

regards,
Arunkumar
Reply all
Reply to author
Forward
0 new messages