• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Platform IO can't see python

Q&A Forum › Category: Other › Platform IO can't see python
0 Vote Up Vote Down
David Kosewick asked 2 years ago

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

Question Tags: PIO, Platform IO, Python, Python Interpreter
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

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
 

0 Vote Up Vote Down
David Kosewick answered 2 years ago

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

0 Vote Up Vote Down
David Kosewick answered 2 years ago

P.S. You can mark it ‘Resolves’!

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Ok.
Great thanks for sharing your solution.
I
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.