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

Dependency on Python 2 due to outdated node-gyp #6427

Closed
C0rn3j opened this issue Apr 28, 2020 · 7 comments · Fixed by #7713
Closed

Dependency on Python 2 due to outdated node-gyp #6427

C0rn3j opened this issue Apr 28, 2020 · 7 comments · Fixed by #7713
Labels
confirmed Confirmed bug, should not go stale dependencies Pull requests that update a dependency file

Comments

@C0rn3j
Copy link
Contributor

C0rn3j commented Apr 28, 2020

package-lock.json has an old version of node-gyp, which is dependent on Python 2.

    "node-gyp": {
      "version": "3.8.0",

Python 2 has reached End of Life, so it'd be a good idea if jitsi-meet also built fine with Python 3.

gyp ERR! configure error 
gyp ERR! stack Error: Command failed: /usr/sbin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                       ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack 
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:303:12)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at maybeClose (internal/child_process.js:1051:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
gyp ERR! System Linux 5.6.7-arch1-1
gyp ERR! command "/usr/bin/node" "/home/c0rn3j/trizen/jitsi-meet-git/src/jitsi-meet-git/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/c0rn3j/trizen/jitsi-meet-git/src/jitsi-meet-git/node_modules/node-sass
gyp ERR! node -v v14.0.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 

Tested on Arch Linux with Python 3.8.2

@saghul
Copy link
Member

saghul commented Apr 28, 2020

Looks we need to update node-sass:

[email protected] /Users/saghul/work/jitsi/jitsi-meet
└─┬ [email protected]
  └── [email protected]

@saghul
Copy link
Member

saghul commented Apr 28, 2020

Actually, node-sass is the package that needs updating first: https://github.com/sass/node-sass/blob/aa193f6334e45ae065cc64d67498acfad9fad4d9/package.json#L67

I'd suggest you open an issue there.

@C0rn3j
Copy link
Contributor Author

C0rn3j commented Apr 28, 2020

sass/node-sass#2877
Seems like they already fixed that half a year ago in the forever-upcoming 5.0 release

@luixxiul luixxiul added packaging Issue related to packaging or build topics dependencies Pull requests that update a dependency file and removed packaging Issue related to packaging or build topics labels May 21, 2020
@C0rn3j
Copy link
Contributor Author

C0rn3j commented Jun 17, 2020

As per sass/node-sass#2877 (comment), there seems to be a replacement library that does not depend on Python 2.

https://sass-lang.com/dart-sass

@saghul
Copy link
Member

saghul commented Jun 17, 2020

Thanks for the heads up @C0rn3j ! I gave it a quick try on this branch https://github.com/jitsi/jitsi-meet/tree/replace-sass, but doesn't seem to be a drop-in replacement (or node-sass was more lenient with some stuff):

$ make deploy-css
./node_modules/.bin/sass css/main.scss css/all.bundle.css && \
	./node_modules/.bin/cleancss css/all.bundle.css > css/all.css ; \
	rm css/all.bundle.css
Error: Expected identifier.
  ╷
1 │ .jitsi-icon {
  │              ^
  ╵
  css/_meter.css 1:14  @import
  css/main.scss 92:9   root stylesheet

@stale
Copy link

stale bot commented Sep 17, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Issue won't be fixed label Sep 17, 2020
@C0rn3j
Copy link
Contributor Author

C0rn3j commented Sep 17, 2020

Not stale

@stale stale bot removed the wontfix Issue won't be fixed label Sep 17, 2020
@saghul saghul added the confirmed Confirmed bug, should not go stale label Sep 17, 2020
saghul added a commit that referenced this issue Sep 17, 2020
The former is no longer actively maintained.

Fixes: #6427
saghul added a commit that referenced this issue Sep 17, 2020
The former is no longer actively maintained.

Fixes: #6427
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed Confirmed bug, should not go stale dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants