-
Notifications
You must be signed in to change notification settings - Fork 131
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
Fix python3 syntax #1
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1 +/- ##
=======================================
Coverage 79.20% 79.20%
=======================================
Files 339 339
Lines 30928 30928
=======================================
Hits 24496 24496
Misses 6432 6432 |
Hi @aweimeow, under which circumstances do you see python encoding exceptions? stratum.py has already the UTF-8 encoding special comment at the beginning of the file: https://github.com/stratum/stratum/blob/master/tools/mininet/stratum.py#L1 Bumping to python 3 might be abreaking change for anyone using this Docker image to run custom Mininet scripts. I'd rather find a fix that does not involve upgrading the Python version, or simply remove the emojis from the script... |
I think we can ask developers to move to py2 to py3, and officially drop python2 from this image on 2020/01/01. |
Hello @ccascone, although the
I have no idea about which package or what command makes the new container's environment doesn't have UTF-8's encoding, so that is the reason for installing About the upgrading to Python 3, I think it's necessary. There is a lot of famous Python 3rd library announced they won't support Python 2 after Python 2's EoL, despite From now to the Python 2 EoL, there have 3 months to go, if the upgrade causes the problem, the team still has time to fallback / fix the issue :) |
Closed due to inactivity. Feel free to reopen if you want to continue to work on this. |
Let's reopen this pull request since we think it is better to move to python3 |
ca1e453
to
722ed8d
Compare
f3bdc8b
to
9672fbd
Compare
722ed8d
to
4a39ec5
Compare
30668b1
to
3547b15
Compare
TODO: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
4bbc2d8
to
8f5147a
Compare
- bump bazel version to 4.0.0 - bump default python version to 3.8.12 - completely remove python2 - Bump rules_python to version 0.5.0 - Removee deprectaed dependency - Also fixes stratum#209
Missing libbz2 and liblzma for Python tarfile module
🎉🎉🎉 |
Yi: Originally this PR includes a change to the base container images. We will work on this part when we are updating the base image to Debian10.
For this PR we just fix some code syntax for Python3.