-
Notifications
You must be signed in to change notification settings - Fork 61
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 Python 3.7 #809
Comments
Install from git. Add |
Also |
Custom optimised python 3.7.2 installed now by default into ~/software/python |
Make default python, install sensible default PIPs, ensure other packages (opencv2) use/support this version of python |
Also need to refactor install_python_module wrapper to deal with multiple pip_provide, or else since stankovich-python module has been deprecated in favour of puppet-python, perhaps the new provider doesn't need the wrapper any more. |
Need to move various python services to python3.7:
|
In maverick, -api gets started through the So instead, we should probably change the api.sh wrapper to specify the interpreter path, which should override the hashbang. |
Looks like we have to setup PYTHONPATH to reliably config either python2 or python3, it's not going to work with both. The alternative is to create a python3 wrapper that resets PYTHONPATH and then calls the actual python3, but that's not a very nice solution. |
gstreamer python bindings proving challenging, they always pick up system python 2.7 no matter what. homebrew formula shows a workaround: |
gstreamer fixed. other components in ~/software:
|
v4l2 module doesn't work in python3, and seems to be a dead project: Need to find an alternative before we can migrate visiond to python3 |
Opened separate issue #821 for visiond |
Raised goodrobots/vision_landing#114 to deal with migrating vision_landing to python 3. |
Python 3.7 now installed into /srv/maverick/software/python and made default python3 within Maverick environment. All known services migrated to python 3.7. |
It would be great to automatically update pip after installing python by running: |
Added action after install to do one-off upgrade of pip |
Custom python3 missing bz2 support: #832 |
Probably also want sqlite3 support:
|
Python3 dependency fail on raspbian:
|
Building python with PGO takes massively long time, particularly on slower platforms - up to 30x longer than a non-profiled build. At least try to parallelise the build and profililing:
Seems to work. |
Python 3.7 brings with it both memory and cpu performance improvements. We can install it without destroying the distro level install and use it for running maverick code (such as maverick-api)
Example commands:
The text was updated successfully, but these errors were encountered: