Error Deploying App - Win32

Hi everyone! I’m trying to deploy mi app on the cloud, and can’t get pass an error with “win32”, first i saw some solutions that said i needed to include it in my requirements as pypiwin32 == 223, but i got the following error:

Collecting pypiwin32==223
Downloading pypiwin32-223-py3-none-any.whl (1.7 kB)
ERROR: Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32) (from versions: none)
ERROR: No matching distribution found for pywin32>=223

Other solution was to directly remove it from the requirements.txt, but when it downloads all the requirements i get another error of module not found:

ModuleNotFoundError: ...

File "/app/sapautomation/SAPDownloadV02.py", line 8, in <module>
    import win32com.client as win32

Any solution will be much appreciated!!

1 Like

Hi @joaquinasensio,

Thanks for posting and welcome to the Streamlit community!

Can you provide a link to your code on GitHub for me to replicate the error?

In the mean time, try upgrading your pip using:

pip install --upgrade pip

Also, since win32com.client is part of pywin32, add pywin32 to your requirements.txt file.

Happy Streamlit-ing :balloon:

Hi @tonykip thanks for the quick reply, i’ve already upgraded pip. It didn’t make a difference.
Here is the link to my repository

Hi joaquinasensio,

Your repo is empty. You can also share you code on here.

Also, please check out our guidelines on how to post an effective question here.

Happy Streamlit-ing :balloon:

You may try again with this linkGitHub.
The code is quite long, but what I reckon to be the problem is the win32 library.
Sorry for the poorly constructed question, but as I said before any input would be much appreciated.

1 Like

I don’t think you can deploy that to Streamlit Cloud.

1 Like

Hi @joaquinasensio,

This seems to be an issue for many users as per their GitHub Issues.

It is catered for windows user as well and not mac.

This might not work with Streamlit at all.

Happy Streamlit-ing :balloon: