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

   <!-- Answer -->
   The error means SQLAlchemy can't find the Doris dialect plugin, even though 
pydoris is installed. This usually happens if the pydoris package isn't 
registering the 'doris' dialect correctly with SQLAlchemy's entry_points 
system, or if Superset and pydoris are in different Python environments. 
Superset expects pydoris to provide the dialect—if it's missing or 
misconfigured, you'll see this error, and Superset will fall back to MySQLdb, 
which can't connect to Doris properly 
[(source)](https://github.com/apache/superset/blob/ef14a5fbb47a540b0c91f40fa397fa9c6d18fa2d/superset/db_engine_specs/doris.py).
   
   To troubleshoot:
   1. In the same environment where Superset runs, check the entry_points for 
SQLAlchemy dialects:  
      ```
      python -m importlib.metadata entry_points | grep doris
      ```
      or, for older Python:
      ```
      python -c "import pkg_resources; print([ep for ep in 
pkg_resources.iter_entry_points('sqlalchemy.dialects') if 'doris' in ep.name])"
      ```
      You should see something like `doris = 
pydoris.sqlalchemy_doris:DorisDialect`.
   
   2. Make sure Superset and pydoris are installed in the same Python 
environment (`which python`, `pip list`).
   
   3. If the 'doris' entry_point is missing, try reinstalling pydoris (`pip 
install --force-reinstall pydoris`). If it still doesn't show up, there may be 
a packaging issue with pydoris itself.
   
   Superset doesn't register the Doris dialect; it relies on pydoris to do this 
via its packaging metadata. If the entry_point is missing or broken, that's a 
pydoris packaging/environment issue, not a Superset bug 
[(source)](https://github.com/apache/superset/blob/ef14a5fbb47a540b0c91f40fa397fa9c6d18fa2d/superset/db_engine_specs/doris.py).
   
   Let me know what you find with the entry_points check!
   
   
   <!-- 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/7719347e-6ea7-49e5-ba49-198b888c731b?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/7719347e-6ea7-49e5-ba49-198b888c731b?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/7719347e-6ea7-49e5-ba49-198b888c731b?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/7719347e-6ea7-49e5-ba49-198b888c731b?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/7719347e-6ea7-49e5-ba49-198b888c731b?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/7719347e-6ea7-49e5-ba49-198b888c731b?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/7719347e-6ea7-49e5-ba49-198b888c731b?feedback_type=other)</sup>&nbsp;&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/34072)


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