adonis0147 commented on PR #10236:
URL: https://github.com/apache/doris/pull/10236#issuecomment-1161157332

   > > Hi @TurboWay , `mysqlclient` was already installed. Maybe you should add 
the dependency to `setup.py`.
   > 
   > `setup.py` already had this dependency, but , it's confused that it 
doesn't work in your case.
   
   Hi @TurboWay , you can build the docker image by the following `Dockerfile`.
   
   ```Dockerfile
   FROM ubuntu:latest
   
   RUN apt update && apt upgrade --yes
   RUN apt install --yes python-is-python3 python3-pip libmysqlclient-dev
   
   ENTRYPOINT ["/bin/bash"]
   ```
   
   ```shell
   # Build the image
   docker build -t doris_client .
   # Run the container
   docker run -it doris_client
   
   # In the container, install the DorisClient
   pip install DorisClient
   # Test the package by python shell
   import DorisClient
   ```
   You will reproduce the issue.
   
   A possible solution is to add `pymysql` to `setup.py`, but I didn't test it.


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to