Skip to content

Problem starting RadioVisDemo on some networks #10

@njh

Description

@njh

I am on a train (❗️) and can't get radiovis_demo.py to start on the network:
(I have seen this fail on other networks too)

Traceback (most recent call last):
  File "radiovis_demo.py", line 27, in <module>
    from lib.connection_manager import ConnectionManager
  File "/Users/humfrn01/Projects/RadioVisDemo/lib/connection_manager.py", line 23, in <module>
    from radiovis_client import RadioVisClient
  File "/Users/humfrn01/Projects/RadioVisDemo/lib/radiovis_client.py", line 15, in <module>
    import stomp
  File "/Users/humfrn01/Projects/RadioVisDemo/lib/stomp.py", line 245, in <module>
    class Connection(object):
  File "/Users/humfrn01/Projects/RadioVisDemo/lib/stomp.py", line 477, in Connection
    socket.gethostbyname(socket.gethostname()),
socket.gaierror: [Errno 8] nodename nor servname provided, or not known

It seems to be related to this:

    __localhost_names = [ "localhost",
                          "127.0.0.1",
                          socket.gethostbyname(socket.gethostname()),
                          socket.gethostname(),
                          socket.getfqdn(socket.gethostname()) ]

One of the calls is failing but the exception isn't being caught.

Not quite sure why it needs a local hostname at all...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions