GitHub user dosubot[bot] added a comment to the discussion: Superset 6.0.0rc1: 
install not completed

<!-- 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>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/34877)

GitHub link: 
https://github.com/apache/superset/discussions/34888#discussioncomment-14247823

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to