Answer the question
In order to leave comments, you need to log in
How to run selenium on heroku?
Hello everyone, I want to run a bot on heroku, with chrome, in the logs it gives an error:
2019-05-27T12:51:39.526700+00:00 app[bot.1]: Traceback (most recent call last):
2019-05-27T12:51:39.526727+00:00 app[bot.1]: File "t1.py", line 2, in <module>
2019-05-27T12:51:39.526911+00:00 app[bot.1]: from selenium import webdriver
2019-05-27T12:51:39.526942+00:00 app[bot.1]: ModuleNotFoundError: No module name
d 'selenium'
Answer the question
In order to leave comments, you need to log in
In most cases, these buildpacks do not plow. And selenium and chrome require a bunch of stuff to install there, recently you can use your own containers on Heroku, I advise you to assemble your own container, throw everything you need into it and run this container.
2019-05-27T12:51:39.526727+00:00 app[bot.1]: File "t1.py", line 2, in
2019-05-27T12:51:39.526911+00:00 app[bot.1] : from selenium import webdriver
2019-05-27T12:51:39.526942+00:00 app[bot.1]: ModuleNotFoundError: No module name
d 'selenium'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question