You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just figured I'd post this here as a solution to potentially many of your problems with running Deviot since PIO ended support for python 2.7/3.5 and lower. I've used these steps on ST3 and ST4 for Windows 10, and ST4 for macOS 11(.6)
For simplicity's sake, start from scratch
Remove Deviot from Sublime if you have it installed already (Package Control > Remove Package > Deviot)
If you are on mac and have/had the dev branch installed, unfortunately I don't think it works with these instructions. If someone figures out a solution to that then let us know here! Removal is of course: Package Control > Remove Repository > https://rawgit.com/gepd/Deviot/master/repository.json
(2022-01-09) I've figured out how to get the dev branch working now, see below in Optional and Guide: Fix Deviot menu & syntax highlighting missing #337 (this is required if you want to upload to boards which don't use Serial for upload)
If you're on mac and have installed PlatformIO via their get-platformio.py script, my understanding is you'll need to remove it. I had to use the Homebrew install, and I'm not sure how this goes if you've already got the regular install in place. pip uninstall platformio in the terminal of course.
Next step, Python
If you have 2.7 and 3.6+ installed already, you may need to re-install your 3.6+ version to make sure it has precedence over 2.7 (I'm not really that familiar with python so this may not strictly be necessary)
Install platformio via Homebrew. This seems to be important, I could not get it to work by installing PIO via their get-platformio.py script.
If you don't have Homebrew already, it can be installed by running (in terminal): /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
If it requests you install the Command Line Tools for Xcode, go ahead with that
Then install platformio: brew install platformio
Windows
It's been quite a few months since I did this, but IIRC you may be able to get away with the PIO install created by Deviot. Check if you have a .platformio folder in your user directory e.g. C:\Users*username*.platformio. If not...
Option 2: Install Dev version for most up to date revision of Deviot
This version includes support for upload to boards which don't use Serial for upload. The method at https://github.com/gepd/Deviot/wiki/Setup#developer does not work anymore as rawgit has died. Instead use these steps:
Edit 2021-12-19
It seems you might be able to remove pio from PATH after doing all this. QyuriLa (in post #issuecomment-996787420) and I (in the post after) both seem to have found PATH is not required...
Hi all,
Just figured I'd post this here as a solution to potentially many of your problems with running Deviot since PIO ended support for python 2.7/3.5 and lower. I've used these steps on ST3 and ST4 for Windows 10, and ST4 for macOS 11(.6)
For simplicity's sake, start from scratch
If you are on mac and have/had the dev branch installed, unfortunately I don't think it works with these instructions. If someone figures out a solution to that then let us know here! Removal is of course: Package Control > Remove Repository > https://rawgit.com/gepd/Deviot/master/repository.json(2022-01-09) I've figured out how to get the dev branch working now, see below in Optional and Guide: Fix Deviot menu & syntax highlighting missing #337 (this is required if you want to upload to boards which don't use Serial for upload)
pip uninstall platformioin the terminal of course.Next step, Python
Then on to PlatformIO
macOS
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"brew install platformioWindows
Both
Finally, back in Sublime Text
Option 1: Install Deviot release version
Option 2: Install Dev version for most up to date revision of Deviot
This version includes support for upload to boards which don't use Serial for upload. The method at https://github.com/gepd/Deviot/wiki/Setup#developer does not work anymore as rawgit has died. Instead use these steps:
As I mentioned above, this might break the mac install such that the Deviot menu disappears even though Package Control says it's installed.Hope this all helps!
Edit 2021-12-19
It seems you might be able to remove pio from PATH after doing all this. QyuriLa (in post #issuecomment-996787420) and I (in the post after) both seem to have found PATH is not required...