Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem starting RadioVisDemo on some networks #10

Open
njh opened this issue Mar 14, 2017 · 2 comments
Open

Problem starting RadioVisDemo on some networks #10

njh opened this issue Mar 14, 2017 · 2 comments

Comments

@njh
Copy link
Member

njh commented Mar 14, 2017

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...

@chrisn
Copy link
Member

chrisn commented Mar 15, 2017

This is in the third-party STOMP library I used. I suggest we update to use the latest version: https://github.com/jasonrbriggs/stomp.py.

@njh
Copy link
Member Author

njh commented Mar 16, 2017

Hm, it is failing on Interwebs today.

It looks like stomp.py has evolved to being a lot more than a single file - so might be non-trivial to swap in the new version 😟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants