Skip to content

Google Meet bot #27

Description

@gHashTag

I'm launching the bot according to your tutorial and encountered an error that I can't overcome. What am I doing wrong?

EE) Server is already active for display 1
        If this server is no longer running, remove /tmp/.X1-lock
        and start again.
(EE)
Meet
Traceback (most recent call last):
  File "/app/gmeet.py", line 238, in join_meet
    driver.find_element(
  File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 861, in find_element
    return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 444, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 249, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="yDmH0d"]/c-wiz/div/div/div[14]/div[3]/div/div[2]/div[4]/div/div/div[2]/div[1]/div[1]/div[3]/label/input"}
  (Session info: chrome=108.0.5359.124)
Stacktrace:
#0 0x555555bbe2a3 <unknown>
#1 0x55555597cf77 <unknown>
#2 0x5555559b980c <unknown>
#3 0x5555559b9a71 <unknown>
#4 0x5555559f3734 <unknown>
#5 0x5555559d9b5d <unknown>
#6 0x5555559f147c <unknown>
#7 0x5555559d9903 <unknown>
#8 0x5555559acece <unknown>
#9 0x5555559adfde <unknown>
#10 0x555555c0e63e <unknown>
#11 0x555555c11b79 <unknown>
#12 0x555555bf489e <unknown>
#13 0x555555c12a83 <unknown>
#14 0x555555be7505 <unknown>
#15 0x555555c33ca8 <unknown>
#16 0x555555c33e36 <unknown>
#17 0x555555c4f333 <unknown>
#18 0x7ffffffa3ea7 start_thread


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/gmeet.py", line 434, in <module>
    asyncio.run(join_meet())
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
(EE) 
Fatal server error:
(EE) Server is already active for display 1
        If this server is no longer running, remove /tmp/.X1-lock
        and start again.
(EE) 
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/app/gmeet.py", line 265, in join_meet
    driver.find_element(
  File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 861, in find_element
    return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 444, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 249, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="yDmH0d"]/c-wiz/div/div/div[14]/div[3]/div/div[2]/div[4]/div/div/div[2]/div[1]/div[2]/div[1]/div[1]/button"}
  (Session info: chrome=108.0.5359.124)
Stacktrace:
#0 0x555555bbe2a3 <unknown>
#1 0x55555597cf77 <unknown>
#2 0x5555559b980c <unknown>
#3 0x5555559b9a71 <unknown>
#4 0x5555559f3734 <unknown>
#5 0x5555559d9b5d <unknown>
#6 0x5555559f147c <unknown>
#7 0x5555559d9903 <unknown>
#8 0x5555559acece <unknown>
#9 0x5555559adfde <unknown>
#10 0x555555c0e63e <unknown>
#11 0x555555c11b79 <unknown>
#12 0x555555bf489e <unknown>
#13 0x555555c12a83 <unknown>
#14 0x555555be7505 <unknown>
#15 0x555555c33ca8 <unknown>
#16 0x555555c33e36 <unknown>
#17 0x555555c4f333 <unknown>
#18 0x7ffffffa3ea7 start_thread

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions