-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Dependency v8 is not Python 3 compatible #24512
Comments
PR has landed so I assume this can be closed. Comment (or re-open if GitHub allows) if I'm wrong about that! Thanks!!! |
The files in |
/CC @nodejs/v8 @nodejs/v8-inspector FTR on 1.1.2020 Python 2 hits it's EOL https://pythonclock.org/ |
If you do not mind. |
I definitely don't mind any contributions here. Do you have a list of scripts required by Node.js that need to be migrated? |
There are now less that 400 days until the end of life of Python 2 (aka legacy Python). The v8 repo is just 1.4% Python but that is all legacy Python and at least 76 files need to be modified just to fix the print statement which is merely the start of a Python 3 port. v8 is a venerable codebase and I often hear that it has been a godsend to the JavaScript community but its Python code needs to be modernized, removed, or replaced with JavaScript, Go, etc. in the days remain until Python 2 end of life. I would recommend that someone uses http://python-future.org to do the following:
|
@hashseed I don't have that list. I was planning on finding it through the codebase. But if you provide it, it will be very cool. @cclauss thank you very much for your clear recommendations. I will try to do it and provide for consideration. |
@ak239 @bmsdave @hashseed Some low hanging fruit in the upstream inspector_protocol repo. flake8 testing of https://chromium.googlesource.com/deps/inspector_protocol on Python 3.7.1
|
The bug reports (and proposed fixes) on chromium.org:
Please star these issues and fixes. |
Any progress on this issues? |
I think we are now waiting for the adoption of changes from Dmitry Gozman: Is there anything else you need to do before Dmitry accepts the changes? |
There is nothing that I need to do. On January 18th, Dmitry Gozman passed the ball on 1358520 to Johannes Henkel who gave a positive review. |
I'm sorry, I misspelled it. As I understand it, I can try to build the entire node.js + v8 + inspector_protocol chain locally and test the functionality of the tools in python2.7 + python3 with specified edits? |
Let's get inspector_protocol to a good state first because v8 is a much bigger problem and given v8/v8#26, I doubt that v8 will be successfully ported to Py3 in the days remaining before Py2 end of life. |
I meant the latter (no buy-in), not the former (I did not re-try). |
@cclauss please consider resubmitting/retrying (not on GitHub). It seems like this discussion has the potential of being much more fruitful on the v8 mailing list https://v8.dev/docs/contribute |
Forward progress on upstream inspector_protocol. |
We are backsliding: v8/v8#29 (comment) |
Will those changes be backported to v10 LTS? |
I apologize for the long absence. I'm ready to continue. |
It looks like all the requirements are done: |
Passing flake is not passing tests. Is this part of v8's CI? Premature to close IMO. |
@hayd Do you have a set of test cases that fail? |
Reopening. We need to vendor in a new copy of deps/v8 |
How can we solve this problem? Will updating v8 to node.js solve it? |
I don't really consider this a problem, because we don't use the scripts that are not compatible with Python 3. |
https://github.com/v8/v8 passes these tests. |
It's good that V8 itself is now compatible but other V8-related tools are not.
By looking at https://github.com/GoogleCloudPlatform/gsutil, |
Should this issue stay open? I believe this issue is outdated as Node.js build chain is compatible with Python 3. |
@nodejs/v8 @nodejs/build ... what do you think? There doesn't seem to be reason to keep this open? |
This test would crash on Python 3 but that seem like a simple fix that is not on the critical path.
|
The issue is still valid. V8 build tools are not yet all compatible with Python 3:
I don't know if we should keep this open though, there's nothing we can do about it in Node.js. |
IMO that should be tracked upstream, unless Node.js folks are actively working with V8 and Chromium to make the tools Python 3-compatible. Otherwise, as @targos mentioned, there's nothing we can do on our side. It's also not a huge deal since it only affects folks building V8 through make-v8, which is limited to a subset of collaborators working on V8 upgrades on Node.js. |
@targos, What happens when you add the 3??
|
@cclauss nothing is printed, exits with code 0 |
Agreed with @targos and @mmarchini that this issue should be tracked upstream. |
The open bug reports on chromium.org:
https://bugs.chromium.org/p/chromium/issues/detail?id=914950@bmsdave commit to upstream: #24512 (comment)
The text was updated successfully, but these errors were encountered: