dosubot[bot] commented on issue #38879:
URL: https://github.com/apache/superset/issues/38879#issuecomment-4133245036

   <!-- Answer -->
   The error you're seeing is due to **Python version incompatibility**. Based 
on your traceback (`/usr/lib/python3.6/site-packages/`), you're actually 
running Python 3.6, which is not supported by Apache Superset. Superset 
requires [**Python 3.10 or 
higher**](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/pyproject.toml#L27).
   
   **To fix this:**
   
   1. Upgrade to Python 3.10, 3.11, or 3.12
   2. Set the `FLASK_APP` environment variable before running the command:
      ```bash
      export FLASK_APP=superset.app:create_app
      superset fab reset-password --username admin
      ```
   
   If you're using Docker and seeing `pkg_resources` errors even on a supported 
Python version, you may need to install setuptools. For Superset 5.x Docker 
images, use:
   ```bash
   uv pip install setuptools
   ```
   
   For older Docker versions, add `setuptools` to 
`docker/requirements-local.txt`.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention 
[@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=brand-link).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/30b162eb-0077-40cc-ba21-618c2b92fe9d?feedback_type=great_response&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/30b162eb-0077-40cc-ba21-618c2b92fe9d?feedback_type=irrelevant_answer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/30b162eb-0077-40cc-ba21-618c2b92fe9d?feedback_type=incorrect_sources&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/30b162eb-0077-40cc-ba21-618c2b92fe9d?feedback_type=too_verbose&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-too_verbose)
 | [Hallucination](https://app.dosu.dev/response-feedback/30b162eb-0077
 
-40cc-ba21-618c2b92fe9d?feedback_type=hallucination&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/30b162eb-0077-40cc-ba21-618c2b92fe9d?feedback_type=bug_report&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/30b162eb-0077-40cc-ba21-618c2b92fe9d?feedback_type=other&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=chat-badge)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20error%20you%27re%20seeing%20is%20due%20to%20%2A%2APython%20version%20incompatibility%2A%2A.%20Based%20on%20your%20traceback%20%28%60/usr/lib/python3.6/site-packages/%60%29%2C%20you%27re%20actually%20running%20Python%203.6%2C%20which%20is%20not%20supported%20by%20Apache%20Superset.%20Superset%20requires%20%5B%2A%2APython%203.10%20or%20higher%2A%2A%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/pyproject.toml%23L27%29.%0A%0A%2A%2ATo%20fix%20this%3A%2A%2A%0A%0A1.%20Upgrade%20to%20Python%203.10%2C%203.11%2C%20or%203.12%0A2.%20Set%20the%20%60FLASK_APP%60%20environment%20variable%20before%20running%20the%20command%3A%0A%20%20%20%60%6
 
0%60bash%0A%20%20%20export%20FLASK_APP%3Dsuperset.app%3Acreate_app%0A%20%20%20superset%20fab%20reset-password%20--username%20admin%0A%20%20%20%60%60%60%0A%0AIf%20you%27re%20using%20Docker%20and%20seeing%20%60pkg_resources%60%20errors%20even%20on%20a%20supported%20Python%20version%2C%20you%20may%20need%20to%20install%20setuptools.%20For%20Superset%205.x%20Docker%20images%2C%20use%3A%0A%60%60%60bash%0Auv%20pip%20install%20setuptools%0A%60%60%60%0A%0AFor%20older%20Docker%20versions%2C%20add%20%60setuptools%60%20to%20%60docker/requirements-local.txt%60.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord)&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/38879)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to