PIO cannot find the python interpreter it wants. I have reinstalled Python 3.10.12 from a tarball, on a Ubuntu/XFCE 22.04 system. Python3 runs fine. I gave the PIO error screen the install folder of /usr/bin, (and several others). The folder(s) also appears in $PATH. In any case, PIO cannot fully install, even though it says “globally enabled”. It doesn’t show the home (or other left side icons either). Out of ideas, so I thought I’d check with you!
(I also tried giving PIO the PIP folder.)
Thanks, Dave
Hi.
Can you describe the steps in our tutorial that you followed and that didn’t work?
Which errors do you get in each step?
What project are you following?
Can you share some printscreens with your issue?
To share an image, upload it to google drive, dropbox or imagur and then share a link to the files.
Regards,
Sara
Hi Sara,
While setting up to answer your questions, I noticed there was a newer 3.11 version of Python (–version still reports 3.10.12 after install). I installed it from a tarball, and then uninstalled reinstalled PIO in VSCode. Now all seems fine. There was a request to install a python package called -venv that needed to be added before it would complete the install, even though I ran the dist-utils as requested after the main Python install. I was following the instruction in the Build Web Servers ebook, and since then, new versions of VS CODE and PLATFORM IO have bee released. That slightly changed appearances but did little to thwart the instructions. For whatever reason (?), it seems that the venv package was the issue, and once prompted for it, installed, and all is good.
As regards the print screens, that is what I was trying to capture. There was a dialog box that popped up about half way through the PIO installation in the output area. It had four choices, in the form of buttons. (from memory: (highly suspect!): install Python, I have Python (expected full direct path input), Don’t remember. and try again…after about 30 seconds the dialog timed out. I did not see it again after the second Python install, instead I saw the prompt for the missing -venv package which I installed right from the built in terminal, and loading restarted after a VSCode window restart which was also prompted. Just a close and reopen VSCode, no system restart.
Now I can go forward with the coursework!
Thanks for Your Support!! Hope this helps someone else.
Dave