dosubot[bot] commented on issue #34877: URL: https://github.com/apache/superset/issues/34877#issuecomment-3231767142
<!-- Answer --> Here’s a complete step-by-step guide to install Superset 6.0.0rc1 from the source tarball: **Requirements:** - Python 3.10 or 3.11 (Python 3.12 is not supported) - Node.js 20.x (recommended: 20.18.3) - npm 10.8.1 or newer - OS-level build dependencies (e.g. `build-essential`, `libssl-dev`, `libffi-dev`, `python3-dev`, etc.) [details](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docs/docs/installation/pypi.mdx) **Install Steps:** 1. **Install OS dependencies** For Ubuntu/Debian: ```bash sudo apt-get update sudo apt-get install build-essential libssl-dev libffi-dev python3-dev libsasl2-dev libldap2-dev default-libmysqlclient-dev ``` For other OS, see [docs](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docs/docs/installation/pypi.mdx). 2. **Install Node.js and npm** Use Node.js 20.x and npm 10+ (see `.nvmrc` and `package.json` requirements): ```bash curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash - sudo apt-get install -y nodejs ``` 3. **Create and activate a Python virtual environment** ```bash python3.11 -m venv venv source venv/bin/activate ``` 4. **Extract the source tarball** ```bash tar -xvf apache_superset-6.0.0rc1-source.tar.gz cd apache_superset-6.0.0rc1-source ``` 5. **Install Python dependencies and Superset** ```bash pip install --upgrade pip setuptools pip install -r requirements/base.txt pip install . ``` 6. **Build frontend assets** This step is critical and must be done before running Superset: ```bash cd superset-frontend npm ci npm run build cd .. ``` This will generate the required static files (like `500.html`) in `superset/static/assets` ([reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/RELEASING/Dockerfile.from_local_tarball), [webpack config](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/webpack.config.js)). 7. **Initialize Superset and create admin user** ```bash export FLASK_APP=superset export SUPERSET_SECRET_KEY='your-secret-key' superset db upgrade superset fab create-admin superset init ``` 8. **(Optional) Load example data** ```bash superset load-examples ``` 9. **Run Superset server** ```bash superset run -h 0.0.0.0 -p 8088 --with-threads --reload ``` **Common pitfalls:** - Skipping the frontend build step (`npm ci` + `npm run build`) will result in missing static assets and web UI errors. - Using unsupported Python or Node.js versions can cause install/build failures. Let me know if you hit any specific errors during these steps! <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/1d29a638-4b26-4715-9422-5a1846487a0f?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/1d29a638-4b26-4715-9422-5a1846487a0f?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/1d29a638-4b26-4715-9422-5a1846487a0f?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/1d29a638-4b26-4715-9422-5a1846487a0f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1d29a638-4b26-4715-9422-5a1846487a0f?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/1d29a638-4b26-4715-9422-5a1846487a0f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1d29a638-4b26-4715-9422-5a1846487a0f?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/34877) -- 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-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org