GitHub user dosubot[bot] added a comment to the discussion: unable to setup 
using docker compose for 5.0.0

<!-- Greeting -->
Hi @AFTABSHIAKH786! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.

<!-- Answer -->
This appears to be a version mismatch issue. The `superset.sql.dialects.db2` 
module [was added after the 5.0.0 
release](https://github.com/apache/superset/pull/36365), so it doesn't exist in 
version 5.0.0 at all.

The error suggests your Docker setup might be pulling inconsistent code - 
possibly mixing newer source files with the 5.0.0 release. A few things to try:

1. **Clean rebuild**: Remove all cached images and volumes, then rebuild:
   ```bash
   docker compose down -v
   docker system prune -a
   docker compose up -d --build
   ```

2. **Check your branch/tag**: Make sure you're on the correct `5.0.0` tag and 
not on `master` or a newer branch that has the dialects module reference but 
missing files.

3. **Use a newer release**: If you're okay with a more recent version, consider 
using the latest release where the `sql.dialects` module is fully implemented.

Also note that [Superset 5.0.0 switched from `pip` to `uv` for package 
management](https://github.com/apache/superset/issues/32364), so if you have 
any custom packages to install, you'll need to use `/app/.venv/bin/uv pip 
install` instead of regular pip.

Could you confirm which branch/tag you cloned and whether you made any 
modifications to the repo?


<!-- 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/51c16af4-5721-4182-a027-0df61303c33c?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/51c16af4-5721-4182-a027-0df61303c33c?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/51c16af4-5721-4182-a027-0df61303c33c?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/51c16af4-5721-4182-a027-0df61303c33c?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/51c16af4-5721-4182-a027-0df61303c33c?feedback_type=hallucination)
 | [Report 
šŸ›](https://app.dosu.dev/response-feedback/51c16af4-5721-4182-a027-0df61303c33c?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/51c16af4-5721-4182-a027-0df61303c33c?feedback_type=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)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20appears%20to%20be%20a%20version%20mismatch%20issue.%20The%20%60superset.sql.dialects.db2%60%20module%20%5Bwas%20added%20after%20the%205.0.0%20release%5D%28https%3A//github.com/apache/superset/pull/36365%29%2C%20so%20it%20doesn%27t%20exist%20in%20version%205.0.0%20at%20all.%0A%0AThe%20error%20suggests%20your%20Docker%20setup%20might%20be%20pulling%20inconsistent%20code%20-%20possibly%20mixing%20newer%20source%20files%20with%20the%205.0.0%20release.%20A%20few%20things%20to%20try%3A%0A%0A1.%20%2A%2AClean%20rebuild%2A%2A%3A%20Remove%20all%20cached%20images%20and%20volumes%2C%20then%20rebuild%3A%0A%20%20%20%60%60%60bash%0A%20%20%20docker%20compose%20down%20-v%0A%20%20%20docker%20system%20prune%20-a%0A%20%20%20docker%20compose%20up%20-d%20--build%0A%
 
20%20%20%60%60%60%0A%0A2.%20%2A%2ACheck%20your%20branch/tag%2A%2A%3A%20Make%20sure%20you%27re%20on%20the%20correct%20%605.0.0%60%20tag%20and%20not%20on%20%60master%60%20or%20a%20newer%20branch%20that%20has%20the%20dialects%20module%20reference%20but%20missing%20files.%0A%0A3.%20%2A%2AUse%20a%20newer%20release%2A%2A%3A%20If%20you%27re%20okay%20with%20a%20more%20recent%20version%2C%20consider%20using%20the%20latest%20release%20where%20the%20%60sql.dialects%60%20module%20is%20fully%20implemented.%0A%0AAlso%20note%20that%20%5BSuperset%205.0.0%20switched%20from%20%60pip%60%20to%20%60uv%60%20for%20package%20management%5D%28https%3A//github.com/apache/superset/issues/32364%29%2C%20so%20if%20you%20have%20any%20custom%20packages%20to%20install%2C%20you%27ll%20need%20to%20use%20%60/app/.venv/bin/uv%20pip%20install%60%20instead%20of%20regular%20pip.%0A%0ACould%20you%20confirm%20which%20branch/tag%20you%20cloned%20and%20whether%20you%20made%20any%20modifications%20to%20the%20repo%3F)&nbsp;[![Jo
 in 
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/discussions/38439)

GitHub link: 
https://github.com/apache/superset/discussions/38439#discussioncomment-16006759

----
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