Hello – I have been totally stuck for a few hours and am seeking assistance.
I am trying to deploy my streamlit app but am having difficulties due to unexpected errors during the
I am deploying from a Windows 10 machine, and saw questions like this one about ensuring that the
requirements.txt file does not include Windows specific paths.
ERROR: Could not find a version that satisfies the requirement pywin32==304 (from versions: none)
ERROR: No matching distribution found for pywin32==304
WARNING: You are using pip version 22.0.3; however, version 22.2.2 is available.
You should consider upgrading via the '/home/appuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed
[02:35:17] ❗️ installer returned a non-zero exit code
[02:35:17] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[02:36:54] ❗️ Streamlit server consistently failed status checks
[02:36:54] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.
requirements.txt file is copied below:
My questions are:
- Why is
pywin throwing an error? I can recreate this in my Debian environment locally, and in my Windows environment
- How can I access the terminal of the deployment machine myself to debug?
I thank you in advance for your assistance.
Hi @Tony-BigDataVisions, welcome to the community!
pywin32 is throwing an error because it is unable to find compatible wheel file for Debian. pywin32 only releases wheels for Windows. The pywin32 module provides access to many of the Windows APIs from Python. Apps deployed to Streamlit Cloud are executed in a Linux environment. As such, pywin32 fails to install on non-Windows systems, including Streamlit Cloud. If you remove
pywin32==304 from your
requirements.txt, this error should no longer be thrown.
I’m curious about how you’re able to “recreate” a pywin32 install on Debian when there doesn’t exist an installation candidate.
When you’re viewing your app as a developer, you can click on the bottom right where it says “Manage app” to view your Cloud logs and other settings: Manage your app - Streamlit Docs
Note however that you don’t have terminal access to the container your app is running in. Just read-only logs of stdout.
I should clarify what I was saying –
I was able to spin up a Debian-based VM (Ubuntu 20.04.4). I had initially used
poetry for package management and was able to install those packages through pip. Sorry if my troubleshooting steps were unclear!
As for seeing things through developer – I saw the
stdout printouts, but wasn’t sure if I could access the terminal directly. I didn’t see anything stating I could in documentation, but wasn’t sure. I appreciate your clarification!
Lastly – I’m sorry if this is a waste of your time or a Python specific thing @snehankekre , I don’t see
pywin explicitly listed in the
requirements.txt, unless I am going crazy (which I very well maybe), as I initially thought to just remove it, but I don’t see it.
I don’t see
pywin explicitly listed in the
You’re right, I missed that on first pass.
Take a look at a repo and ephemeral app I created using your requirements file. I’m unable to reproduce the pywin-related error on my end. I thought it could be a dependency of a dependency, but it doesn’t seem to be the case.
Could you share a link to your repo so we could take a look and debug? I’d be surprised if you’re getting the error with the requirements you’ve posted here.
The above log seems to indicate that a pinned
pywin32==304 exists in
The first thing I’d try is to verify that pywin32 doesn’t exist somewhere in the requirements file. Then I’d try deleting and redeploying the app on Streamlit Cloud.
I feel very embarrassed. You are right – the
requirements.txt in the repository did not match what I included here. I didn’t push my changes. Sigh, I apologize for wasting your time, but I do appreciate you answering!
App is officially in the oven
No worries! Hopefully we were able to resolve the issue.
While building docker image… I got this error. I have checked Docker and requirements.txt files … But i didn’t find any pywin dependencies. But it still gives me the error
could not find a version that satisfies the requirement pywin32==303
no matching distribution found for pywin32==303