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

How to reinitialize msgpckrpc (python)? (to create a new client) #21

Open
yannbouteiller opened this issue Oct 28, 2019 · 0 comments
Open

Comments

@yannbouteiller
Copy link

Hello,

I am having trouble with Microsoft AirSim, which uses msgpckrpc as its communication backend. AirSim does this in a python object:

self.client = msgpackrpc.Client(msgpackrpc.Address(ip, port), timeout = timeout_value, pack_encoding = 'utf-8', unpack_encoding = 'utf-8')

Let's say at some point AirSim freezes and I get a TimeoutError from msgpckrpc (which I do, see microsoft/AirSim-NeurIPS2019-Drone-Racing#104 ). So I want to instantiate a new version of this python object (with another msgpackrpc.Address(ip, port) ).

However, doing this apparently simple thing is actually a nightmare and fails because msgpackrpc/tornado don't get properly reinitialized in the process. How can I properly reinitialize msgpckrpc please ?

@yannbouteiller yannbouteiller changed the title How to reinitialize msgpskrpc (python)? (to create a new client) How to reinitialize msgpckrpc (python)? (to create a new client) Oct 28, 2019
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

1 participant