Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for python3 #320

Open
hawaiik opened this issue Jan 16, 2021 · 6 comments
Open

Support for python3 #320

hawaiik opened this issue Jan 16, 2021 · 6 comments

Comments

@hawaiik
Copy link

hawaiik commented Jan 16, 2021

As platformio dropped support for python 2 & 3.5 how can we update deviot to python 3?https://docs.platformio.org/en/latest/core/migration.html#drop-support-for-python-2-and-3-5

@atwinny
Copy link

atwinny commented Feb 23, 2021

Any suggestions?

@berendkleinhaneveld
Copy link
Contributor

berendkleinhaneveld commented Feb 24, 2021

I also got this message and an error when I tried to compile a cpp file. I removed the Deviot plugin and tried to reinstall the plugin. Then I saw a message telling me that /usr/local/opt/python/bin/python3.7 couldn't be found.
I'm on a mac, so I did the following to install python3.7:

brew install [email protected]

This installs python to /usr/local/opt/[email protected]/bin/python3. Then to make Deviot find python 3.7, I just made a symlink at the path from the error message:

mkdir -p /usr/local/opt/python/bin
ln -s /usr/local/opt/[email protected]/bin/python3 /usr/local/opt/python/bin/python3.7

After doing all that I installed Deviot again and now things seem to be working fine. Hope this helps.

@tablatronix
Copy link

tablatronix commented May 12, 2021

Really? so you are using global enviroment? I remember deviot had a way to change this also

@tablatronix
Copy link

tablatronix commented May 12, 2021

deviot settings
env_path
symlink

and

python.txt

There is also ini flags build_dir etc that is used to determine if using st package penv

@tablatronix
Copy link

tablatronix commented May 12, 2021

ok well I could not get those to work, if deviot penv is already installed its a pita..

Easiest thing for me was to

OSX
Remove all platformio
Install platformio CLI ( via pio instruction scripts )
Brew install python ( might not be needed as pio penv has it )

Remove deviot penv, remove deviot.ini
restart, let deviot install check env paths and python on its own and use global penv

We will see if it has issues.

@hijomojo
Copy link

I know it's been months, but for anyone still wondering (who hasn't given up 😛) my guide above should help you get things working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants