Bug 2181523 - jupterlab Requires /usr/bin/node
Summary: jupterlab Requires /usr/bin/node
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: jupyterlab
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-24 11:43 UTC by Miro Hrončok
Modified: 2023-03-29 16:28 UTC (History)
2 users (show)

Fixed In Version: jupyterlab-4.0.0~b0-4.fc39
Clone Of:
Environment:
Last Closed: 2023-03-29 16:28:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2023-03-24 11:43:29 UTC
Description of problem:
jupterlab Requires /usr/bin/node

If I understand this app correctly, it runs JavaScript in my browser, not by nodejs. However, there are executable files with /usr/bin/node shebangs in the bundled javascript directory and they pull in nodejs with jupyterlab, which is likely not needed.

Version-Release number of selected component: jupyterlab-4.0.0~a37-1.fc39.noarch


How reproducible:
$ repoquery -q --repo=rawhide --requires jupyterlab | grep node
/usr/bin/node


Additional info:
I believe this is caused by /usr/lib/python3.11/site-packages/jupyterlab/staging/yarn.js

How is this file used? Can the dependency be avoided?

Comment 1 Lumír Balhar 2023-03-24 16:07:58 UTC
It seems that it can be avoided. If I remove shebang from yarn.js and the nodejs is not installed, lab generates this warning:

[W 2023-03-24 16:02:47.382 LabApp] Could not determine jupyterlab build status without nodejs

but it seems to have no impact on the functionalities at all. I'll open a PR.

Comment 3 Fedora Update System 2023-03-29 16:13:43 UTC
FEDORA-2023-ec3158bfa2 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-ec3158bfa2

Comment 4 Fedora Update System 2023-03-29 16:28:25 UTC
FEDORA-2023-ec3158bfa2 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.