You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "darwindennis03 (via GitHub)" <gi...@apache.org> on 2024/09/27 17:59:58 UTC
[I] Cannot access zstd while npm run dev-server [superset]
darwindennis03 opened a new issue, #30422:
URL: https://github.com/apache/superset/issues/30422
### Bug description
Cannot access the zstd file in windows!!
Answers appreciated!!
### Screenshots/recordings
> superset@0.0.0-dev dev-server
> cross-env NODE_ENV=development BABEL_ENV=development node --max_old_space_size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode=development
INFO: Could not find files for the given pattern(s).
[webpack-cli] Failed to load 'C:\Users\trias\superset\superset-latest\superset-frontend\webpack.config.js' config
[webpack-cli] Error: Can not access zstd! Is it installed?
### Superset version
master / latest-dev
### Python version
3.11
### Node version
18 or greater
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot access zstd while npm run dev-server [superset]
Posted by "Craiqser (via GitHub)" <gi...@apache.org>.
Craiqser commented on issue #30422:
URL: https://github.com/apache/superset/issues/30422#issuecomment-2768136958
> > npm i simple-zstd
>
> This looks like it's already in `package.json` - does having this installed fix things for everyone? If so, perhaps we can close this one out 🤞
The text of the error was exactly the same, and it helped me. I can’t say that it went wrong with me when installing packages from the dependencies section.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot access zstd while npm run dev-server [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #30422:
URL: https://github.com/apache/superset/issues/30422#issuecomment-2455367831
Just adding that we don't officially support Windows... but if you add (or anyone adds) some docs/scripts/support to make Superset _work_ on Windows reliably, maybe we can in the future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot access zstd while npm run dev-server [superset]
Posted by "darwindennis03 (via GitHub)" <gi...@apache.org>.
darwindennis03 commented on issue #30422:
URL: https://github.com/apache/superset/issues/30422#issuecomment-2380408095
Problem is simple-std package itself uses zstd in background . When i inspect the simple-std node package it has
const find = (process.platform === 'win32') ? 'where zstd.exe' : 'which zstd';
which checks for the zstd .
Any suggestions regarding this .
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot access zstd while npm run dev-server [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #30422:
URL: https://github.com/apache/superset/issues/30422#issuecomment-2768012593
> npm i simple-zstd
This looks like it's already in `package.json` - does having this installed fix things for everyone? If so, perhaps we can close this one out 🤞
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot access zstd while npm run dev-server [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #30422:
URL: https://github.com/apache/superset/issues/30422#issuecomment-2380408427
<!-- Answer -->
The `simple-zstd` package relies on the `zstd` executable being available on your system. Since you're on Windows, you'll need to ensure that `zstd.exe` is installed and accessible in your system's PATH.
### Steps to Install `zstd` on Windows:
1. **Download `zstd` Executable:**
- Go to the [Zstandard releases page](https://github.com/facebook/zstd/releases).
- Download the appropriate `zstd` executable for Windows (usually found in the `zstd-vX.X.X-win64.zip` file).
2. **Extract and Place `zstd.exe`:**
- Extract the contents of the downloaded ZIP file.
- Place `zstd.exe` in a directory that is included in your system's PATH. Common directories include `C:\Windows\System32` or any other directory that is already in your PATH.
3. **Add Directory to PATH (if needed):**
- If you placed `zstd.exe` in a custom directory, you need to add this directory to your system's PATH.
- To do this, follow these steps:
1. Open the Start Menu and search for "Environment Variables".
2. Select "Edit the system environment variables".
3. In the System Properties window, click on the "Environment Variables" button.
4. In the Environment Variables window, find the "Path" variable in the "System variables" section and select it.
5. Click "Edit" and then "New" to add the directory where `zstd.exe` is located.
6. Click "OK" to close all windows.
4. **Verify Installation:**
- Open a new Command Prompt window and run the following command to verify that `zstd` is accessible:
```sh
where zstd.exe
```
- If the command returns the path to `zstd.exe`, the installation is successful.
After completing these steps, try running your development server again. This should resolve the issue with accessing `zstd` on Windows.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot access zstd while npm run dev-server [superset]
Posted by "darwindennis03 (via GitHub)" <gi...@apache.org>.
darwindennis03 commented on issue #30422:
URL: https://github.com/apache/superset/issues/30422#issuecomment-2380408934
Can u provide discussion link for superset build tools installation required for windows .
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot access zstd while npm run dev-server [superset]
Posted by "Ettery (via GitHub)" <gi...@apache.org>.
Ettery commented on issue #30422:
URL: https://github.com/apache/superset/issues/30422#issuecomment-2681637101
I'm building on a headless Ubuntu installation.
zstd and simple-zstd installed successfully, but when I `npm run build` i get the error:
````
> superset@0.0.0-dev build
> cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production BABEL_ENV="${BABEL_ENV:=production}" webpack --color --mode production
INFO: Could not find files for the given pattern(s).
[webpack-cli] Failed to load 'C:\dev\github\superset\superset\superset-frontend\webpack.config.js' config
[webpack-cli] Error: Can not access zstd! Is it installed?
````
If I try to run zstd I get:
````
stdin is a console, aborting
````
Any suggestions?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot access zstd while npm run dev-server [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #30422:
URL: https://github.com/apache/superset/issues/30422#issuecomment-2379798226
<!-- Greeting -->
Hey there, @darwindennis03! I'm here to help you with any bugs, questions, or contributions you have for Superset. Let's work together to solve this issue!
<!-- Answer -->
I found some similar issues and discussions that might help you resolve the problem:
1. **Similar Discussions:**
- [Problems encountered in the secondary development of superset](https://github.com/apache/superset/discussions/29222) <sup>[[1]](https://github.com/apache/superset/discussions/29222)</sup>
- [RpcIpcMessagePortClosedError](https://github.com/apache/superset/discussions/18334) <sup>[[2]](https://github.com/apache/superset/discussions/18334)</sup>
2. **Similar Issues:**
- [zstd not found by superset_node during docker compose up dev mode](https://github.com/apache/superset/issues/30206) (Closed) <sup>[[3]](https://github.com/apache/superset/issues/30206)</sup>
- This issue was resolved by a pull request: [fix(install/docker): use zstd-baked image for building superset-frontend in containerized env](https://github.com/apache/superset/pull/30279).
To address the specific error you're encountering, ensure that the `zstd` dependency is correctly installed and configured. The `zstd` dependency is specified and used in the `superset-frontend/webpack.proxy-config.js` file:
```js
const { ZSTDDecompress } = require('simple-zstd');
// ...
if (responseEncoding === 'zstd') {
uncompress = ZSTDDecompress();
}
```
### Steps to Install `zstd` on Windows:
1. **Install `simple-zstd` Package:**
Ensure that the `simple-zstd` package is installed in your project. You can install it using npm:
```sh
npm install simple-zstd
```
2. **Verify Installation:**
After installation, verify that the package is correctly installed by checking your `node_modules` directory for `simple-zstd`.
3. **Check Configuration:**
Ensure that your `webpack.proxy-config.js` file correctly imports and uses the `ZSTDDecompress` function from the `simple-zstd` package.
If you continue to experience issues, please provide additional details about the error messages or any specific configurations you have in place.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot access zstd while npm run dev-server [superset]
Posted by "Craiqser (via GitHub)" <gi...@apache.org>.
Craiqser commented on issue #30422:
URL: https://github.com/apache/superset/issues/30422#issuecomment-2757637935
> [webpack-cli] Failed to load 'C:\dev\github\superset\superset\superset-frontend\webpack.config.js' config
> [webpack-cli] Error: Can not access zstd! Is it installed?
cd superset-frontend
npm i simple-zstd
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org