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.03k stars 797 forks source link

Error in init on Ubuntu Server #339

Open gabrieldesousah opened 6 years ago

gabrieldesousah commented 6 years ago

Hello guys, I am trying install this wrapper on ubuntu server but after install geckodriver , and the lib, I have this error after do:

>>> from webwhatsapi import WhatsAPIDriver
>>> driver = WhatsAPIDriver(username="mkhase")

This error:

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "webwhatsapi/__init__.py", line 196, in __init__ self.driver = webdriver.Firefox(capabilities=capabilities, options=options, **extra_params) File "/home/gabriel/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 170, in __init__ keep_alive=True) File "/home/gabriel/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 156, in __init__ self.start_session(capabilities, browser_profile) File "/home/gabriel/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 251, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/home/gabriel/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute self.error_handler.check_response(response) File "/home/gabriel/.local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities

mikkelam commented 6 years ago

Unable to find a matching set of capabilities

Try and get the newest geckodriver, selenium and firefox

gabrieldesousah commented 6 years ago

It's possible start this lib in ubuntu server without graphic environment?

mikkelam commented 6 years ago

Yes, put the headless option in WhatsAPIDriver

tefotazo commented 5 years ago

How do you solve this? I am in the day two of fight with this library