minos: Problem with running the pygame_client

Environment OS: Ubuntu 16.04 LTS Python: 3.5.2 node: v8.9.3 only SUNCG data is installed in the $HOME/work directory.


Hi, I am trying to run the code but it gives following messages. Though they are not “ERROR” messages, nothing happens. Could you help me out with this error?

2017-12-27 22:49:10,513 INFO {'stk_git_hash': '03855da', 'sim_id': 'sim00', 'sim_git_hash': '03855da', 'machine': 'mymachine'}
Starting simulator...
2017-12-27 22:49:10,524 INFO sim00:Starting sim server at /home/me/Projects/minos/server/server.js with port 17226
2017-12-27 22:49:11,533 INFO Starting new HTTP connection (1): localhost
2017-12-27 22:49:12,350 INFO sim00:connect
2017-12-27 22:49:12,447 WARNING localhost:17226/socket.io [connection error] recv disconnected ([Errno 104] Connection reset by peer)
2017-12-27 22:49:13,448 WARNING localhost:17226/socket.io [connection error] recv disconnected ([Errno 104] Connection reset by peer)
2017-12-27 22:49:13,448 INFO sim00:disconnect
2017-12-27 22:49:13,449 INFO Resetting dropped connection: localhost
2017-12-27 22:49:13,450 WARNING localhost:17226/socket.io [waiting for connection] HTTPConnectionPool(host='localhost', port=17226): Max retries exceeded with url: /socket.io/?EIO=3&t=1514382553449-0&transport=polling (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fdae3e040f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
2017-12-27 22:49:14,451 INFO Starting new HTTP connection (2): localhost
2017-12-27 22:49:14,451 WARNING localhost:17226/socket.io [waiting for connection] HTTPConnectionPool(host='localhost', port=17226): Max retries exceeded with url: /socket.io/?EIO=3&t=1514382554450-0&transport=polling (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fdae3e04ef0>: Failed to establish a new connection: [Errno 111] Connection refused',))
2017-12-27 22:49:15,453 INFO Starting new HTTP connection (3): localhost
2017-12-27 22:49:15,453 WARNING localhost:17226/socket.io [waiting for connection] HTTPConnectionPool(host='localhost', port=17226): Max retries exceeded with url: /socket.io/?EIO=3&t=1514382555452-0&transport=polling (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fdae3e05080>: Failed to establish a new connection: [Errno 111] Connection refused',))
...
...

Actually, it seems to be a problem while connecting the socket, so I tried to manually run the node server in separate terminal by typing in node server.js -p 17226 inside the server directory. Then the python gives following message and stops to throw warnings. But it still does not pop up any windows or give anything.

2017-12-27 22:57:11,571 INFO Starting new HTTP connection (14): localhost
2017-12-27 22:57:12,089 INFO sim00:reconnect

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 31 (23 by maintainers)

Most upvoted comments

I had the same issue as @nzer0 and the following from the comment here worked for me:

Here’s what worked for me in more detail:

Set up the system dependencies sudo apt-get install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev (That was for Ubuntu, see https://github.com/stackgl/headless-gl#system-dependencies) Set up the dev environment, i.e. follow steps 1-6 of https://github.com/stackgl/headless-gl#how-should-i-set-up-a-development-environment-for-headless-gl (Note for step 6 I had to do npm run rebuild instead of npm run build) Copy and replace the built webgl.node file into your node module, e.g. cp headless-gl/build/Release/webgl.node node_modules/gl/build/Release/webgl.node

I have an Ubuntu machine with a NVidia GPU.