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.
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.