vector-python-sdk
vector-python-sdk copied to clipboard
Future exception was never retrieved error after script finishes
I get this error when my scripts ends. I thought it was my own bad code at first (naturally) but I've just tested it on the beginners scripts 01_hello_world.py and I am getting the same error. Is there something I am doing wrong? I have gotten away with having to learn all about asyncio up until this point, was I supposed to use it all along? I've reinstalled the SDK twice i am unsure what else to do.
Here is what my console is regurgitating: future: <Future finished exception=<_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.CANCELLED details = "Channel closed!" debug_error_string = "{"created":"@1580249711.758000000","description":"Error received from peer ipv4:<robot's I.P.>","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Channel closed!","grpc_status":1}"
More insight: I'm using VSCode... Tested with IDLE there is no error whatsoever!? Maybe its a VSCode issue somehow? I'd appreciate any advice on this. I am very new to python development so if its something simple I apologise I've tried to look it up with not very helpful results.
What platform are you using? What version of Python? Code? Need to see code that can reproduce the error to create a solution. :-)
I am using windows 10 on a PC.
I first got the error on Python 3.8.1, but I got rid of that and tried again with Python 3.7.6 and so that is what I am currently using. Try the tutorial example. `import anki_vector
def main(): args = anki_vector.util.parse_command_args() with anki_vector.Robot(args.serial) as robot: print("Say 'Hello World'...") robot.behavior.say_text("Hello World")
if name == "main": main()`
It doesn't matter what code I run, the only consistency I have witnessed is that it only shows the error in my VS Code terminal but not in any other type of terminal. Maybe I have opened this issue in the wrong area I apologise if that is the case.
I get the same error. Any script. Ubuntu 19.10, Python 3.7.5. The scripts seem to run OK otherwise, so I just ignore it for now.
I was sorry to say suddenly earlier.