MagicMirror² v2.14.0 is available! For more information about this release, check out this topic.

Address already in use error message for google assistant on Pi

  • following the tutorial on AIY projects, everythings gone well until i came to run this cmd> ./

    then it is throwing up this text and error message.

    pi@raspberrypi:~/AIY-projects-python/src/examples/voice $ ./
    DEBUG:requests_oauthlib.oauth2_session:Generated new state nvp5K9TV1TzH8PNnTKYlwvnBsvGbmB.
    Traceback (most recent call last):
      File "./", line 57, in 
      File "./", line 49, in main
      File "/opt/aiy/projects-python/src/aiy/assistant/", line 205, in __init__
        super().__init__(language_code, volume_percentage)
      File "/opt/aiy/projects-python/src/aiy/assistant/", line 64, in __init__
        credentials = auth_helpers.get_assistant_credentials()
      File "/opt/aiy/projects-python/src/aiy/assistant/", line 132, in get_assistant_credentials
        return _try_to_get_credentials(credentials_file)
      File "/opt/aiy/projects-python/src/aiy/assistant/", line 123, in _try_to_get_credentials
        credentials = _credentials_flow_interactive(client_secrets)
      File "/opt/aiy/projects-python/src/aiy/assistant/", line 76, in _credentials_flow_interactive
        credentials = flow.run_local_server()
      File "/usr/local/lib/python3.5/dist-packages/google_auth_oauthlib/", line 407, in run_local_server
        host, port, wsgi_app, handler_class=_WSGIRequestHandler)
      File "/usr/lib/python3.5/wsgiref/", line 160, in make_server
        server = server_class((host, port), handler_class)
      File "/usr/lib/python3.5/", line 440, in __init__
      File "/usr/lib/python3.5/wsgiref/", line 51, in server_bind
      File "/usr/lib/python3.5/http/", line 138, in server_bind
      File "/usr/lib/python3.5/", line 454, in server_bind
    OSError: [Errno 98] Address already in use

    i have no idea what it is or how to work around it, any info in the ether please?

    markdown added by yawns

  • Project Sponsor

    Please use the markdown features of the board when posting code.

Log in to reply