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

KeyError: 'car_birdview' #9

Closed
jochenpee opened this issue Aug 13, 2021 · 4 comments
Closed

KeyError: 'car_birdview' #9

jochenpee opened this issue Aug 13, 2021 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jochenpee
Copy link

Traceback (most recent call last):
File "/usr/local/bin/wc-cli", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/weconnect_cli/weconnect_cli.py", line 185, in main
weConnect.update(updateCapabilities=(not args.noCapabilities), updatePictures=(not args.noPictures))
File "/usr/local/lib/python3.8/site-packages/weconnect/weconnect.py", line 419, in update
self.updateVehicles(updateCapabilities=updateCapabilities, updatePictures=updatePictures, force=force)
File "/usr/local/lib/python3.8/site-packages/weconnect/weconnect.py", line 457, in updateVehicles
vehicle = Vehicle(weConnect=self, vin=vin, parent=self.__vehicles, fromDict=vehicleDict,
File "/usr/local/lib/python3.8/site-packages/weconnect/elements/vehicle.py", line 67, in init
self.update(fromDict, updateCapabilities=updateCapabilities, updatePictures=updatePictures)
File "/usr/local/lib/python3.8/site-packages/weconnect/elements/vehicle.py", line 167, in update
self.updatePictures()
File "/usr/local/lib/python3.8/site-packages/weconnect/elements/vehicle.py", line 389, in updatePictures
self.updateStatusPicture()
File "/usr/local/lib/python3.8/site-packages/weconnect/elements/vehicle.py", line 392, in updateStatusPicture
img = self.__carImages['car_birdview']
KeyError: 'car_birdview'

@tillsteinbach
Copy link
Owner

I will investigate that as soon as possible. As a work-around you may want to check the parameter --no-pictures

@jochenpee
Copy link
Author

Works, thanks! Do not need pictures, anyway.

@tillsteinbach
Copy link
Owner

Yea, I think this is true for most. I might turn the option around to opt-in for pictures. Will save some requests.

@tillsteinbach tillsteinbach self-assigned this Aug 14, 2021
@tillsteinbach tillsteinbach added the bug Something isn't working label Aug 14, 2021
@tillsteinbach tillsteinbach added this to the 0.13.2 milestone Aug 14, 2021
@tillsteinbach
Copy link
Owner

Should be fixed in 0.13.2 that I just released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants