New user - running demo_man gives errno 10013 -

37 views
Skip to first unread message

Henrik Andersen

unread,
Apr 16, 2020, 8:20:56 AM4/16/20
to MPF Users
I've installed the software for the first time, and tried to follow the tutorial.

After downloading demo man, and trying to run it, I get the error:

OSError: [Errno 10013] error while attempting to bind on address ('127.0.0.1', 5051): an attempt was made to access a socket in a way forbidden by its access permissions
MPF run loop ended.

After that the system stops.

I've noticed that the documentation says that demo_man version and mpf version must be the same. However the newest demo_man is 0.52 and I'm running 0.53 of mpf. Is that the reason? If yes - is there a 0.53 version of demo_man on it's way?

By the way - I run the mpf in administrator mode.

More details:

C:\Mission Pinball Framework\Demo man\mpf-examples-0.52.x\demo_man>mpf both -X
Shutting down...
Event: ======'shutdown'====== Args={}
Event: ======'machine_reset_phase_2'====== Args={}
Event: ======'machine_reset_phase_3'====== Args={}
Event: ======'mode_tilt_will_start'====== Args={'queue': <QueuedEvent>}
Exception in callback EventManager._done(<Task finishe... not found',)>)
handle: <Handle EventManager._done(<Task finishe... not found',)>)>
Traceback (most recent call last):
  File "c:\program files\python36\lib\asyncio\events.py", line 145, in _run self._callback(*self._args)
  File "c:\program files\python36\lib\site-packages\mpf\core\events.py", line 698, in _done future.result()
  File "c:\program files\python36\lib\site-packages\mpf\core\events.py", line 615, in _run_handlers_sequential handler.callback(queue=queue, **merged_kwargs)
  File "c:\program files\python36\lib\site-packages\mpf\core\mode.py", line 211, in start  **item.kwargs)
  File "c:\program files\python36\lib\site-packages\mpf\core\config_player.py", line 203, in mode_start event_keys = self.register_player_events(config, mode, priority)
  File "c:\program files\python36\lib\site-packages\mpf\config_players\plugin_player.py", line 57, in register_player_events self.bcp_client = self._get_bcp_client(config)
  File "c:\program files\python36\lib\site-packages\mpf\config_players\plugin_player.py", line 34, in _get_bcp_client "bcp connection {} not found".format(client_name))
AssertionError: bcp connection local_display not found
Shutdown because of an exception:
Runtime Exception
Traceback (most recent call last):
  File "c:\program files\python36\lib\asyncio\base_events.py", line 1044, in create_server sock.bind(sa)
OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\program files\python36\lib\site-packages\mpf\core\machine.py", line 765, in _run_loop raise self._exception['exception']
  File "c:\program files\python36\lib\site-packages\mpf\core\bcp\bcp_server.py", line 23, in start self._accept_client, self._ip, self._port)
  File "c:\program files\python36\lib\asyncio\streams.py", line 119, in start_server return (yield from loop.create_server(factory, host, port, **kwds))
  File "c:\program files\python36\lib\asyncio\base_events.py", line 1048, in create_server % (sa, err.strerror.lower()))
OSError: [Errno 10013] error while attempting to bind on address ('127.0.0.1', 5051): an attempt was made to access a socket in a way forbidden by its access permissions
MPF run loop ended.

Henrik Andersen

unread,
Apr 16, 2020, 9:19:46 AM4/16/20
to MPF Users
Ok - figured it out.

This problem came up because I had another site running on port 5051.
I went into IIS admin and stopped the other site. Then everything was working fine after that.

Hope this helps someone else.

Thanks!

jabdoa

unread,
Apr 16, 2020, 1:10:26 PM4/16/20
to MPF Users
Welcome to MPF! Thanks for following up. Will add this to the known problems section of the tutorial.

Jan

jabdoa

unread,
Apr 18, 2020, 9:34:50 AM4/18/20
to MPF Users
Documented here: http://docs.missionpinball.org/en/dev/logs/RE-MPF_BCP_Server-1.html. Future MPF (or dev) provides a link to that page.

Jan

Reply all
Reply to author
Forward
0 new messages