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

   <!-- Answer -->
   That error happens because importlib.metadata is a Python module, not a CLI 
tool—you can't run it with python -m importlib.metadata. To check if the 
'doris' dialect is registered, run this Python script in the same environment 
as Superset:
   
   ```python
   try:
       # Python 3.8+
       from importlib.metadata import entry_points
       eps = entry_points()
       dialects = eps.select(group='sqlalchemy.dialects') if hasattr(eps, 
'select') else eps.get('sqlalchemy.dialects', [])
       print("SQLAlchemy dialect entry_points containing 'doris':")
       for ep in dialects:
           if 'doris' in ep.name:
               print(f"{ep.name} = {ep.value}")
   except ImportError:
       # Fallback for older environments
       try:
           import pkg_resources
           print("SQLAlchemy dialect entry_points containing 'doris':")
           for ep in pkg_resources.iter_entry_points('sqlalchemy.dialects'):
               if 'doris' in ep.name:
                   print(f"{ep.name} = {ep.module_name}:{ep.attrs[0]}")
       except ImportError:
           print("Neither importlib.metadata nor pkg_resources is available.")
   
   ```
   
   If you see a line like `doris = pydoris.sqlalchemy_doris:DorisDialect`, the 
registration is correct. If nothing prints, pydoris isn't registering the 
dialect—try `pip install --force-reinstall pydoris` and make sure you're using 
the same Python environment as Superset. If the entry_point is present but you 
still get the error, there may be a packaging or environment issue.
   
   
   <!-- 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/674bb6c4-77c2-43eb-8289-2de20e2e68e4?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/674bb6c4-77c2-43eb-8289-2de20e2e68e4?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/674bb6c4-77c2-43eb-8289-2de20e2e68e4?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/674bb6c4-77c2-43eb-8289-2de20e2e68e4?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/674bb6c4-77c2-43eb-8289-2de20e2e68e4?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/674bb6c4-77c2-43eb-8289-2de20e2e68e4?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/674bb6c4-77c2-43eb-8289-2de20e2e68e4?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