Not able to run lego passenger train due to Bleak error
I tried running my lego passenger train using bricknil on my Windows 10 machine. I followed the following steps. pip install bircknil
I ran a simple program to control the train and this is the error I got.
My program had the following lines
`from curio import sleep from bricknil import attach, start from bricknil.hub import PoweredUpHub from bricknil.sensor import TrainMotor from bricknil.process import Process import logging
@attach(TrainMotor, name='motor') class Train(PoweredUpHub):
async def run(self):
self.message_info("Running")
for i in range(2):
self.message_info('Increasing speed')
await self.motor.ramp_speed(80,5000)
await sleep(15)
self.message_info('Coming to a stop')
await self.motor.ramp_speed(20,1000)
await sleep(2)
async def system(): train = Train('My train')
if name == 'main': logging.basicConfig(level=logging.INFO) start(system) `
On running the program, I got the following error.
File "train.py", line 26, in