Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future exception was never retrieved error after script finishes #35

Open
JackInABot opened this issue Jan 28, 2020 · 4 comments
Open

Comments

@JackInABot
Copy link

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.

@simulanics
Copy link

What platform are you using? What version of Python? Code? Need to see code that can reproduce the error to create a solution. :-)

@JackInABot
Copy link
Author

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.

@ghost
Copy link

ghost commented Feb 14, 2020

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.

@nekodendislike
Copy link

I was sorry to say suddenly earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants