ImportError: cannot import name 'COMError' from '_ctypes' (/usr/local/lib/python3.8/lib-dynload/_ctypes.cpython-38-x86_64-linux-gnu.so)



When I deploy my app, the package comtypes seems to be different and a problrm occurs.How can I do to solve this problem? Thank you everyone for your answer.

Hi @evachenchen,

Thanks for posting!

It looks like COMError is a Windows package, which won’t work on Streamlit Cloud – if you remove any Windows packages from your app, that should resolve the error.

Caroline :balloon: