mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.02k stars 797 forks source link

Firefox blank screen [Running in a Raspberry Pi 3] #134

Closed enric1994 closed 6 years ago

enric1994 commented 6 years ago

After installing all the dependencies using the setup.py, I can't see the QR code when running the script, just a blank screen in the Firefox browser.

Note that I installed the ARM version of geckodriver and the "Iceweasel" Firefox.

Versions: pi@raspberrypi:~/wabot $ geckodriver --version geckodriver 0.20.0 pi@raspberrypi:~/wabot $ firefox -v Mozilla Firefox 52.6.0 pi@raspberrypi:~/wabot $ python3 Python 3.5.3 (default, Jan 19 2017, 14:11:04)

Error (timeout):

Traceback (most recent call last): File "main.py", line 18, in <module> if not offline_mode: driver = WhatsAPIDriver() File "/usr/local/lib/python3.5/dist-packages/webwhatsapi-2.0.2-py3.5.egg/webwhatsapi/__init__.py", line 196, in __init__ self.driver = webdriver.Firefox(capabilities=capabilities, options=options, **extra_params) File "/usr/local/lib/python3.5/dist-packages/selenium-3.11.0-py3.5.egg/selenium/webdriver/firefox/webdriver.py", line 162, in __init__ keep_alive=True) File "/usr/local/lib/python3.5/dist-packages/selenium-3.11.0-py3.5.egg/selenium/webdriver/remote/webdriver.py", line 154, in __init__ self.start_session(desired_capabilities, browser_profile) File "/usr/local/lib/python3.5/dist-packages/selenium-3.11.0-py3.5.egg/selenium/webdriver/remote/webdriver.py", line 243, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/local/lib/python3.5/dist-packages/selenium-3.11.0-py3.5.egg/selenium/webdriver/remote/webdriver.py", line 312, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.5/dist-packages/selenium-3.11.0-py3.5.egg/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: connection refused

How can I modify the code to allow selenium work properly?

dumsantos commented 6 years ago

Just check this solution, worked for me... https://stackoverflow.com/questions/49208980/are-geckodriver-and-firefox-compatible-on-raspberry-pi-3

enric1994 commented 6 years ago

Thanks! It works like a charm