No module name docx found

hi im trying to deploy my app https://reportes-automaticos-srmvtqdx2c3ceunmpfxtvn.streamlit.app/

but i keep getting this error
────────────────────── Traceback (most recent call last) ───────────────────────
/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrun
ner/exec_code.py:88 in exec_func_with_error_handling

/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrun
ner/script_runner.py:579 in code_to_exec

/mount/src/reportes-automaticos/.venv/main.py:3 in

 1 import streamlit as st                                                   
 2 import pandas as pd                                                      

❱ 3 from docx import Document
4 from docx.shared import Inches
5 import matplotlib as plt
6 import io
────────────────────────────────────────────────────────────────────────────────
ModuleNotFoundError: No module named ‘docx’
this is the git code GitHub - Darkerz97/Reportes-Automaticos

what could be happening?, i alrready redeploy an change python versions

I see that you have a requirements.txt file next to your entrypoint file (I’m assuming main.py).
Can you share your complete logs that show any errors that were reported while parsing your dependencies? (You can reboot your app and just copy everything to make it easy.

1 Like

docx latest release is more than ten years old. Try python-docx instead.

1 Like

Yes the problem was that i don’t not put out any version, just the libraries, it is running now, thanks You so much

1 Like