Skip to content

TypeError: unicode argument expected, got 'str' #99

@ZDAHWYB

Description

@ZDAHWYB

ROS Melodic
ubuntu 18.04
python 2.7
when I write rosrun robot_upstart install mbot_gazebo/launch/mbot_laser_nav_gazebo.launch
then show the error:
Traceback (most recent call last):
File "/home/huanyu/catkin_ws/src/robot_upstart/scripts/install", line 32, in
exit(main())
File "/home/huanyu/catkin_ws/src/robot_upstart/src/robot_upstart/install_script.py", line 123, in main
j.install(Provider=provider)
File "/home/huanyu/catkin_ws/src/robot_upstart/src/robot_upstart/job.py", line 162, in install
installation_files = p.generate_install()
File "/home/huanyu/catkin_ws/src/robot_upstart/src/robot_upstart/providers.py", line 179, in generate_install
"content": self._fill_template("templates/systemd_job.conf.em"), "mode": 0o644}
File "/home/huanyu/catkin_ws/src/robot_upstart/src/robot_upstart/providers.py", line 229, in _fill_template
self.interpreter.file(f)
File "/usr/lib/python2.7/dist-packages/em.py", line 2359, in file
self.safe(scanner, done, locals)
File "/usr/lib/python2.7/dist-packages/em.py", line 2401, in safe
self.parse(scanner, locals)
File "/usr/lib/python2.7/dist-packages/em.py", line 2421, in parse
token.run(self, locals)
File "/usr/lib/python2.7/dist-packages/em.py", line 1107, in run
interpreter.write(self.data)
File "/usr/lib/python2.7/dist-packages/em.py", line 2172, in write
self.stream().write(data)
File "/usr/lib/python2.7/dist-packages/em.py", line 538, in write
self.filter.write(data)
TypeError: unicode argument expected, got 'str'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions