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 requirements.txt installation.
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.
Full error:
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.
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 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 requirements.txt
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 requirements.txt
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!
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
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.