#๐Ÿ”’ unknown connection problem with my code?

9 messages ยท Page 1 of 1 (latest)

sour yachtBOT
#

@wintry ingot

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

wintry ingot
#

code โ˜๏ธ

#

error:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\tkinter\__init__.py", line 1967, in __call__
    return self.func(*args)
           ^^^^^^^^^^^^^^^^
  File "C:\Users\cosmi\Documents\ripper\chat_app.py", line 124, in join_button_callback
    create_chat_app(self.username_box.get("1.0", "end-1c"), self.host_room_box.get("1.0", "end-1c"))
  File "C:\Users\cosmi\Documents\ripper\chat_app.py", line 16, in create_chat_app
    chat_app = ChatApp(user_queue, host_queue)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cosmi\Documents\ripper\chat_app.py", line 36, in __init__
    self.connection = pika.BlockingConnection(
                      ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cosmi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pika\adapters\blocking_connection.py", line 360, in __init__
    self._impl = self._create_connection(parameters, _impl_class)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cosmi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pika\adapters\blocking_connection.py", line 451, in _create_connection
    raise self._reap_last_connection_workflow_error(error)
pika.exceptions.AMQPConnectionError
smoky burrow
#

Let me look into it ๐Ÿ˜„

wintry ingot
#

thanks

smoky burrow
#

what message broker are you running?

#

it says cannot stablish the connection because there is no "server" in your case, it is message broker, looks like no message broker is running on your machine

sour yachtBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.