Search code examples
pythonheroku

I'm trying to upload the bot to heroku server, I get this error:


I can't solve this problem, could it be my mistake?

Errors:

My files:


Solution

  • Your screenshot shows a file that appears to be called parser_twitter, but Windows recognizes it as a Python file. Similarly, chromedriver doesn't have a visible extension, but Windows recognizes it as an executable.

    This suggests that Windows Explorer is hiding known file extensions. Those files are almost certainly really named parser_twitter.py and chromedriver.exe.

    But your requirements.txt and runtime.txt file extensions are visible. That would mean they are actually called requirements.txt.txt and runtime.txt.txt.

    I suggest turning off that "feature" so you can see what your files are actually called:

    In File Explorer under View, in the Show/hide group, select the File name extensions check box.

    Rename those files to remove the duplicate file extensions, commit, and redeploy.


    Aside: If you have committed the chromedriver.exe file you're going to find that it doesn't work on Heroku. See Selenium web driver can't open browser on Heroku, for example.