• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Address already in use error message for google assistant on Pi

Scheduled Pinned Locked Moved Unsolved Troubleshooting
2 Posts 2 Posters 758 Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    Mark Fleming
    last edited by yawns Feb 21, 2019, 2:29 PM Feb 20, 2019, 3:09 PM

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

    then it is throwing up this text and error message.

    pi@raspberrypi:~/AIY-projects-python/src/examples/voice $ ./assistant_grpc_demo.py
    DEBUG:requests_oauthlib.oauth2_session:Generated new state nvp5K9TV1TzH8PNnTKYlwvnBsvGbmB.
    Traceback (most recent call last):
      File "./assistant_grpc_demo.py", line 57, in <module>
        main()
      File "./assistant_grpc_demo.py", line 49, in main
        language_code=args.language)
      File "/opt/aiy/projects-python/src/aiy/assistant/grpc.py", line 205, in __init__
        super().__init__(language_code, volume_percentage)
      File "/opt/aiy/projects-python/src/aiy/assistant/grpc.py", line 64, in __init__
        credentials = auth_helpers.get_assistant_credentials()
      File "/opt/aiy/projects-python/src/aiy/assistant/auth_helpers.py", line 132, in get_assistant_credentials
        return _try_to_get_credentials(credentials_file)
      File "/opt/aiy/projects-python/src/aiy/assistant/auth_helpers.py", line 123, in _try_to_get_credentials
        credentials = _credentials_flow_interactive(client_secrets)
      File "/opt/aiy/projects-python/src/aiy/assistant/auth_helpers.py", line 76, in _credentials_flow_interactive
        credentials = flow.run_local_server()
      File "/usr/local/lib/python3.5/dist-packages/google_auth_oauthlib/flow.py", line 407, in run_local_server
        host, port, wsgi_app, handler_class=_WSGIRequestHandler)
      File "/usr/lib/python3.5/wsgiref/simple_server.py", line 160, in make_server
        server = server_class((host, port), handler_class)
      File "/usr/lib/python3.5/socketserver.py", line 440, in __init__
        self.server_bind()
      File "/usr/lib/python3.5/wsgiref/simple_server.py", line 51, in server_bind
        HTTPServer.server_bind(self)
      File "/usr/lib/python3.5/http/server.py", line 138, in server_bind
        socketserver.TCPServer.server_bind(self)
      File "/usr/lib/python3.5/socketserver.py", line 454, in server_bind
        self.socket.bind(self.server_address)
    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

    1 Reply Last reply Reply Quote 0
    • B Offline
      bhepler Module Developer
      last edited by Feb 20, 2019, 4:54 PM

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

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        1/2
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Sam, technical setup by Karsten.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy