TypeError: set_fade() takes 2 positional arguments but 5 were given
Enter code here...ERROR : asyncio : Exception in callback EventManager.process_event_queue()
handle: <Handle EventManager.process_event_queue()>
Traceback (most recent call last):
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\events.py", line 667, in _run_handlers
result = handler.callback(**merged_kwargs)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\config_player.py", line 339, in config_play_callback
**kwargs)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\config_players\show_player.py", line 59, in play
self._update_show(show.name, show_settings, context, queue, start_time, show_tokens)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\config_players\show_player.py", line 196, in _update_show
action(key, instance_dict, show_name, show_settings, queue, start_time, placeholder_args)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\config_players\show_player.py", line 113, in _play
start_step, start_time, stop_callback)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\show_controller.py", line 132, in replace_or_advance_show
start_callback=start_callback
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\assets\show.py", line 303, in play_with_config
show_config=show_config)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\assets\show.py", line 537, in __init__
self.show_loaded()
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\assets\show.py", line 547, in show_loaded
self._start_play()
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\assets\show.py", line 572, in _start_play
self._start_now()
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\assets\show.py", line 672, in _start_now
self._run_next_step(post_events=self.show_config.events_when_played)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\assets\show.py", line 720, in _run_next_step
start_time=self.next_step_time)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\config_player.py", line 356, in show_play_callback
show_tokens=show_tokens, context=context, start_time=start_time)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\config_players\light_player.py", line 40, in play
self._light_color(light, instance_dict, full_context, s['color'], s["fade"], final_priority, start_time)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\config_players\light_player.py", line 107, in _light_color
light.color(color, key=full_context, fade_ms=fade_ms, priority=priority, start_time=start_time)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\devices\light.py", line 328, in color
self._schedule_update()
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\devices\light.py", line 529, in _schedule_update
driver.set_fade(start_brightness, start_time, target_brightness, target_time)
TypeError: set_fade() takes 2 positional arguments but 5 were given
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\asyncio\events.py", line 145, in _run
self._callback(*self._args)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\events.py", line 754, in process_event_queue
**event[3])
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\events.py", line 713, in _process_event
result = self._run_handlers(event, ev_type, kwargs)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\events.py", line 669, in _run_handlers
raise Exception("Exception while processing {} for event {}".format(handler, event)) from e
Exception: Exception while processing RegisteredHandler(callback=<bound method ConfigPlayer.config_play_callback of ConfigPlayer.show_player/shows>, priority=15, kwargs={'calling_context': 'mode_attract_started', 'mode': <Mode.attract>, 'settings': {lightshow_act_cycle-None-None: {'speed': 3.0, 'priority': 0, 'action': 'play', 'show': None, 'block_queue': False, 'start_step': <NativeTemplate 1>, 'loops': -1, 'sync_ms': None, 'manual_advance': False, 'key': None, 'show_tokens': {}, 'events_when_played': [], 'events_when_stopped': [], 'events_when_looped': [], 'events_when_paused': [], 'events_when_resumed': [], 'events_when_advanced': [], 'events_when_stepped_back': [], 'events_when_updated': [], 'events_when_completed': []}}}, key=UUID('010a7909-2212-4508-a24b-c775945fb2a8'), condition=None, blocking_facility=None) for event mode_attract_started
2020-02-19 16:54:42,731 : INFO : EventManager : Event: ======'slide_Welcome_slide_active'====== Args={'_from_bcp': True}
2020-02-19 16:54:42,731 : INFO : Machine : Starting the main run loop.
2020-02-19 16:54:42,738 : INFO : Machine : Shutting down...
2020-02-19 16:54:42,739 : INFO : EventManager : Event: ======'shutdown'====== Args={}
2020-02-19 16:54:42,742 : ERROR : Machine : Runtime Exception
Traceback (most recent call last):
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\events.py", line 667, in _run_handlers
result = handler.callback(**merged_kwargs)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\config_player.py", line 339, in config_play_callback
**kwargs)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\config_players\show_player.py", line 59, in play
self._update_show(show.name, show_settings, context, queue, start_time, show_tokens)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\config_players\show_player.py", line 196, in _update_show
action(key, instance_dict, show_name, show_settings, queue, start_time, placeholder_args)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\config_players\show_player.py", line 113, in _play
start_step, start_time, stop_callback)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\show_controller.py", line 132, in replace_or_advance_show
start_callback=start_callback
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\assets\show.py", line 303, in play_with_config
show_config=show_config)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\assets\show.py", line 537, in __init__
self.show_loaded()
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\assets\show.py", line 547, in show_loaded
self._start_play()
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\assets\show.py", line 572, in _start_play
self._start_now()
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\assets\show.py", line 672, in _start_now
self._run_next_step(post_events=self.show_config.events_when_played)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\assets\show.py", line 720, in _run_next_step
start_time=self.next_step_time)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\config_player.py", line 356, in show_play_callback
show_tokens=show_tokens, context=context, start_time=start_time)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\config_players\light_player.py", line 40, in play
self._light_color(light, instance_dict, full_context, s['color'], s["fade"], final_priority, start_time)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\config_players\light_player.py", line 107, in _light_color
light.color(color, key=full_context, fade_ms=fade_ms, priority=priority, start_time=start_time)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\devices\light.py", line 328, in color
self._schedule_update()
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\devices\light.py", line 529, in _schedule_update
driver.set_fade(start_brightness, start_time, target_brightness, target_time)
TypeError: set_fade() takes 2 positional arguments but 5 were given
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\machine.py", line 765, in _run_loop
raise self._exception['exception']
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\asyncio\events.py", line 145, in _run
self._callback(*self._args)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\events.py", line 754, in process_event_queue
**event[3])
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\events.py", line 713, in _process_event
result = self._run_handlers(event, ev_type, kwargs)
File "c:\users\mcsquid\appdata\local\programs\python\python36\lib\site-packages\mpf\core\events.py", line 669, in _run_handlers
raise Exception("Exception while processing {} for event {}".format(handler, event)) from e
Exception: Exception while processing RegisteredHandler(callback=<bound method ConfigPlayer.config_play_callback of ConfigPlayer.show_player/shows>, priority=15, kwargs={'calling_context': 'mode_attract_started', 'mode': <Mode.attract>, 'settings': {lightshow_act_cycle-None-None: {'speed': 3.0, 'priority': 0, 'action': 'play', 'show': None, 'block_queue': False, 'start_step': <NativeTemplate 1>, 'loops': -1, 'sync_ms': None, 'manual_advance': False, 'key': None, 'show_tokens': {}, 'events_when_played': [], 'events_when_stopped': [], 'events_when_looped': [], 'events_when_paused': [], 'events_when_resumed': [], 'events_when_advanced': [], 'events_when_stepped_back': [], 'events_when_updated': [], 'events_when_completed': []}}}, key=UUID('010a7909-2212-4508-a24b-c775945fb2a8'), condition=None, blocking_facility=None) for event mode_attract_started
2020-02-19 16:54:42,743 : MPF-MC BCP Server : Received "goodbye"
2020-02-19 16:54:42,744 : mpfmc : Stopping...
2020-02-19 16:54:42,745 : EventManager : Event: ======'shutdown'====== Args={}
2020-02-19 16:54:42,746 : AudioInterface : Disabling audio playback
2020-02-19 16:54:42,746 : Track.0.TrackStandard.music : Stopping all sounds and removing any pending sounds from queue
2020-02-19 16:54:42,746 : Track.1.TrackStandard.voice : Stopping all sounds and removing any pending sounds from queue
2020-02-19 16:54:42,746 : Track.2.TrackStandard.sfx : Stopping all sounds and removing any pending sounds from queue
2020-02-19 16:54:42,758 : INFO : root : MPF run loop ended.
2020-02-19 16:54:42,801 : Mode.attract : Mode Start. Priority: 10
2020-02-19 16:54:42,801 : mpfmc : Loop rate 52.75 Hz
2020-02-19 16:54:42,803 : kivy : Base: Leaving application in progress...
2020-02-19 16:54:42,805 : kivy : WindowSDL: exiting mainloop and closing.
2020-02-19 16:54:42,828 : mpfmc : Stopping...
2020-02-19 16:54:42,828 : EventManager : Event: ======'shutdown'====== Args={}
2020-02-19 16:54:42,828 : mpfmc : Loop rate 52.72 Hz
2020-02-19 16:54:42,828 : kivy : MC run loop ended.
2020-02-19 16:54:42,828 : kivy : Stopping child threads... (2 remaining)
2020-02-19 16:54:43,731 : MPF-MC BCP Server : Stopping BCP sending thread
2020-02-19 16:54:43,736 : kivy : All child threads stopped.Jan
Jan
Jan