Skip to content
Advertisement

Unable to Deploy Django App to Heroku because of PyWin32

So I have gone through the forums in search for an answer but haven’t found one that works for me. I am using Windows machine and my Django application works on Localhost but when I try to deploy the same application to Heroku it gives me this error.

JavaScript

I have removed pywin32 from the requirements.txt file but still when I run the

JavaScript

command, I keep getting the same error.

I have also tried to copy all my source code into a new folder and deleted the initial git file and re-initialized Git but still nothing seems to be working.

Forum Articles I have read that did not help include:

Allow me to attach my full error log:

JavaScript

and then my requirements file

Anyone who can help me I would really appreciate. Where exactly am I getting it wrong?

Advertisement

Answer

In your current requirements.txt you marked pywin32 with environment marker platform_system == "Windows". I think the syntax is wrong. The correct syntax from PEP 496 is:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement