GitHub user Ikarashi0310 added a comment to the discussion: 
ModuleNotFoundError: No module named 'authlib' when implementing Google OAuth 
with Apache Superset Docker

@dosu
I'm still encountering a ModuleNotFoundError: No module named 'authlib' error 
even after editing the Dockerfile as shown below to install the packages 
directly into the Python virtual environment. Do you know a solution for this 
issue?

```
USER root
RUN apt update && apt install -y

python3-dev

default-libmysqlclient-dev

build-essential

pkg-config

python3-venv

&& rm -rf /var/lib/apt/lists/*

RUN python3 -m venv /app/.venv

RUN uv pip install --no-cache-dir mysqlclient pymysql gunicorn
RUN /app/.venv/bin/pip install authlib==1.2.0

COPY superset_config.py /app/superset_home/superset_config.py
RUN chown superset:superset /app/superset_home/superset_config.py

USER superset

CMD ["gunicorn", "-w", "2", "--threads", "8", "-b", "0.0.0.0:8088", 
"superset.app:create_app()"]
```



GitHub link: 
https://github.com/apache/superset/discussions/35183#discussioncomment-14439116

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