-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Galata fails to install due to node-canvas #12726
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
@fcollonval might have insights about this issue. |
=> Found "[email protected]"
info Reasons this module exists
- "_project_#@jupyterlab#csvviewer" depends on it
- Hoisted from "_project_#@jupyterlab#csvviewer#canvas"
- Hoisted from "_project_#@jupyterlab#debugger#canvas"
- Hoisted from "_project_#@jupyterlab#terminal#canvas"
- Hoisted from "_project_#@jupyterlab#galata#canvas"
I'm more for the opposite (aka setting I'll be happy to review a PR. Note: Using optional dep will also allow to backport the changes and not wait for 4.0 (that will happen if we extract benchmark code from galata). |
* Use SVG renderer in Vega to drop canvas dependency Fixes #12726 * Fix tests * Update Playwright Snapshots * Rename variables Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Use SVG renderer in Vega to drop canvas dependency Fixes jupyterlab#12726 * Fix tests * Update Playwright Snapshots * Rename variables Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> (cherry picked from commit 2bd9933)
Description
When using a VPN, the installation of Galata fails due to the canvas dependency failing to install. The install of canvas fails because canvas tries to download from a link during the install process (It seems reasonable that a VPN would block this kind of thing). We have created an issue with canvas which has not had a response since it was opened a few months ago.
Without canvas making any changes, this seems like room to improve Galata to avoid situations like this. Canvas is only used in the
benchmarkReporter.ts
which uses playwright to benchmark performance in CI. Given that "Galata is a set of helpers and fixtures for JupyterLab UI Testing," it does not seem like benchmark performance test should be shipped with Galata. This will also guarantee that what is being shipped with Galata is as light weight as possible for the people using it.Another, but less ideal, approach would be to add canvas as an optional dependency in the
package.json
, so that the install of canvas can fail silently. However, I would want to think that shipping Galata without thebenchmarkReporter.ts
would be better.Thanks all for the help with this :)
The text was updated successfully, but these errors were encountered: