I tried to deploy an app (slidebar example in the Stralit documentaion) on Heroku/Windows, and was unable to do it. Below are the details of how I did, and the message error I got:
1- I followed the indications given here : https://devcenter.heroku.com/articles/getting-started-with-python#define-a-procfile
2- I modified a little bit the Pocfile.windows; my Pocfile.windows contains this line:
web: python manage.py && streamlit run slidebar.py
3- in the Streamlt environment created with Anaconda, pip freeze > requirements.txt
4- then, in my repository :
Since you pinned the versions on Windows, it also pinned pywin32 which is a Windows-specific package and won’t be available on an Unix VM on Heroku, hence the Could not find a version that satisfies the requirement pywin32==227.
You can comment/remove it in the requirements.txt you generated and push back into master
1- First try
When removing the line pywin32==227 from requirements.txt.
the push doesn’t give any error.
But when opening the app, it can’t open and gives an error: “An error occurred in the application and your page could not be served.”
The line pywin32 was at line 58 in the original requirements.txt file
There was also pywinpty==0.5.7
2- Seecond try
I equally removed line pywinpty==0.5.7
Nevertheless, I obtained the same behavior: everything seems to work fine, but the app doesn’t show up and gives an error message:
I have no more issues with pywin32 in the requirements.txt file (simply removed it).
Please re-read the post cited above, where my problem (still unsolved) is fully described. It is essentially a WINDOWS DEPLOYMENT issue, and specifically concerning the Pocfile.windows file, I guess.
Tons of indications have been given on this forum for Heroku/Linux, but I haven’t seen anything for Windows.
Thank you for your reply.
Any help for Heroku/Windows from anyone on the forum is appreciated.