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

TabError: inconsistent use of tabs and spaces in indentation #15

Closed
qingchunlizhi opened this issue Oct 6, 2018 · 3 comments
Closed

Comments

@qingchunlizhi
Copy link

When I run "rosrun teleop_twist_keyboard teleop_twist_keyboard.py",I get this error:
File "/opt/ros/melodic/lib/teleop_twist_keyboard/teleop_twist_keyboard.py", line 83
pub = rospy.Publisher('cmd_vel', Twist, queue_size = 1)
^
TabError: inconsistent use of tabs and spaces in indentation

then I replace all the "Tab" to "space" ,it works!!
So, does this code need to be modified?

@kambic
Copy link

kambic commented Oct 21, 2018

same issue for me, but replacing "Tab" to "space" dont fix error for me. runing ros melodic

@trainman419
Copy link
Contributor

That's odd. There were definitely mixed tabs and spaces in that file, but they'd been there for quite a few years, so I'm surprised that this is the first time it's been a problem.

Anyway, this will be fixed in the next release.

@trainman419
Copy link
Contributor

The fix for this has been released in version 0.6.2 . Please keep an eye on the release tag on ROS Discourse to see when this reaches the public repositories for your version of ROS.

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