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

@dosu
I've created the following Dockerfile and requirements-local.txt, but I'm still 
encountering the same error: ModuleNotFoundError: No module named 'authlib'.

dockerfile
↓
```
FROM apache/superset:latest

USER root
RUN apt update && apt install -y \
    python3-dev \
    default-libmysqlclient-dev \
    build-essential \
    pkg-config \
    && rm -rf /var/lib/apt/lists/*

COPY requirements-local.txt /app/requirements-local.txt
RUN uv pip install --no-cache-dir -r requirements-local.txt

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()"]
```

requirements-local.txt
↓
```
mysqlclient
pymysql
gunicorn
authlib==1.2.0
```

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

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