You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to take one image from the Car simulation and followed the code shown in https://microsoft.github.io/AirSim/image_apis/. Still, it's not running and giving the error TypeError: init() got an unexpected keyword argument 'encoding'.
I tried upgrading the packages msgpack-rpc-python (0.4.1), msgpack-python (0.5.6), and msgpack (1.0.4), besides installing the package msgpack-numpy (0.4.8), but it didn't solve the problem.
I'm using Python 3.8.
Traceback (most recent call last):
File "camera_example.py", line 6, in
png_image = client.simGetImage("0", airsim.ImageType.Scene)[0]
File "/home/amador/.local/lib/python3.8/site-packages/airsim/client.py", line 287, in simGetImage
result = self.client.call('simGetImage', camera_name, image_type, vehicle_name, external)
File "/home/amador/.local/lib/python3.8/site-packages/msgpackrpc/session.py", line 41, in call
return self.send_request(method, args).get()
File "/home/amador/.local/lib/python3.8/site-packages/msgpackrpc/session.py", line 51, in send_request
self._transport.send_message([message.REQUEST, msgid, method, args])
File "/home/amador/.local/lib/python3.8/site-packages/msgpackrpc/transport/tcp.py", line 89, in send_message
self.connect()
File "/home/amador/.local/lib/python3.8/site-packages/msgpackrpc/transport/tcp.py", line 98, in connect
socket = ClientSocket(stream, self, self._encodings)
File "/home/amador/.local/lib/python3.8/site-packages/msgpackrpc/transport/tcp.py", line 53, in init
BaseSocket.init(self, stream, encodings)
File "/home/amador/.local/lib/python3.8/site-packages/msgpackrpc/transport/tcp.py", line 12, in init
self._packer = msgpack.Packer(encoding=encodings[0], default=lambda x: x.to_msgpack())
File "msgpack/_packer.pyx", line 124, in msgpack._cmsgpack.Packer.init
TypeError: init() got an unexpected keyword argument 'encoding'
What's better than filing an issue? Filing a pull request :).
The text was updated successfully, but these errors were encountered:
Bug report
What's the issue you encountered?
I tried to take one image from the Car simulation and followed the code shown in https://microsoft.github.io/AirSim/image_apis/. Still, it's not running and giving the error TypeError: init() got an unexpected keyword argument 'encoding'.
I tried upgrading the packages msgpack-rpc-python (0.4.1), msgpack-python (0.5.6), and msgpack (1.0.4), besides installing the package msgpack-numpy (0.4.8), but it didn't solve the problem.
I'm using Python 3.8.
Settings
I didn't change the camera settings.
How can the issue be reproduced?
To execute the python script shown in https://gist.github.com/amadorneto/9327a9aac6f5538ef56c8a71254822a3 using Python 3.8.
Include full error message in text form
Traceback (most recent call last):
File "camera_example.py", line 6, in
png_image = client.simGetImage("0", airsim.ImageType.Scene)[0]
File "/home/amador/.local/lib/python3.8/site-packages/airsim/client.py", line 287, in simGetImage
result = self.client.call('simGetImage', camera_name, image_type, vehicle_name, external)
File "/home/amador/.local/lib/python3.8/site-packages/msgpackrpc/session.py", line 41, in call
return self.send_request(method, args).get()
File "/home/amador/.local/lib/python3.8/site-packages/msgpackrpc/session.py", line 51, in send_request
self._transport.send_message([message.REQUEST, msgid, method, args])
File "/home/amador/.local/lib/python3.8/site-packages/msgpackrpc/transport/tcp.py", line 89, in send_message
self.connect()
File "/home/amador/.local/lib/python3.8/site-packages/msgpackrpc/transport/tcp.py", line 98, in connect
socket = ClientSocket(stream, self, self._encodings)
File "/home/amador/.local/lib/python3.8/site-packages/msgpackrpc/transport/tcp.py", line 53, in init
BaseSocket.init(self, stream, encodings)
File "/home/amador/.local/lib/python3.8/site-packages/msgpackrpc/transport/tcp.py", line 12, in init
self._packer = msgpack.Packer(encoding=encodings[0], default=lambda x: x.to_msgpack())
File "msgpack/_packer.pyx", line 124, in msgpack._cmsgpack.Packer.init
TypeError: init() got an unexpected keyword argument 'encoding'
What's better than filing an issue? Filing a pull request :).
The text was updated successfully, but these errors were encountered: