Error: version that satisfies the requirement pywin32==306

I get the following error while (trying to) deploy my app:

RROR: Could not find a version that satisfies the requirement pywin32==306 (from versions: none)
ERROR: No matching distribution found for pywin32==306
WARNING: You are using pip version 22.0.3; however, version 23.3.2 is available.
You should consider upgrading via the '/home/adminuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed

────────────────────────────────────────────────────────────────────────────────────────

[15:26:58] ❗️ installer returned a non-zero exit code
[15:26:58] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[15:28:32] ❗️ Streamlit server consistently failed status checks
[15:28:32] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.

locally it runs perfectly but I have no idea how to fix the issue; already changed te requirements to:

streamlit==1.7.0
pandas==1.3.3
plotly==4.14.3

I am a bit lost rn.

Hi,
you are probably developing on windows. The pywin module is only needed as well as available for running your app on a windows machine.
Since the streamlit cloud runs on Linux the Modul is neither available nor needed.

The fix would be to remove the pywin line from your requirements.txt

Hope that helps.

Best regards
Fabian

1 Like

Hi Fabian,

The solution is still a bit unclear to me, as my requirement.txt document doesn’t contain this specific dependency/module; are there any other factors that could influence the error or how can I check which ones were used. I am getting this error while i did include the module…

and also this error: ModuleNotFoundError: No module named ‘plotly’

Please share a link to your public github repo, we are poking around in the dark… :sunglasses:

  • move the requirements file to the root folder
  • do a reboot of the app
2 Likes

thanks for this tip; hereafter, everything became more clear to me, including how to deal with the root folders via github, etc.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.