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

carla_manual_control.py errors #27

Closed
nsubiron opened this issue Nov 16, 2017 · 3 comments
Closed

carla_manual_control.py errors #27

nsubiron opened this issue Nov 16, 2017 · 3 comments
Labels

Comments

@nsubiron
Copy link
Collaborator

Running carla_manual_control.py gives the following errors

 Welcome to CARLA manual control 
 USE ARROWS for control 
 Press R for reset 
STARTING in a few seconds...
Successfully Connected to Carla Server
Staring Episode on Position  152
ERROR:root:'dict' object has no attribute 'iteritems'
Traceback (most recent call last):
  File "./carla_manual_control.py", line 220, in on_execute
    self.on_render()
  File "./carla_manual_control.py", line 196, in on_render
    self.labels_vec[0] = join_classes(self.labels_vec[0][:,:,2])
  File "./carla_manual_control.py", line 46, in join_classes
    for key,value in classes_join.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
@nsubiron nsubiron added the bug label Nov 16, 2017
@WenchaoDing
Copy link

It is due to python version. Refer to https://stackoverflow.com/questions/13998492/iteritems-in-python.

@nsubiron
Copy link
Collaborator Author

Yes, all the client files have a #!/usr/bin/env python3 at the top, this forces the execution to Python 3. An easy fix is changing this to Python 2, but it is probably better to fix the issues and keep Python 3 support.

@dosovits
Copy link
Contributor

@nsubiron Yes, let's definitely have both python2 and python3 support. I had this issue before, isn't it solved just by replacing iteritems with items?

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

No branches or pull requests

3 participants