Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

catkin_create_package TypeError

Hello,

I'm trying to create a simple catkin package, but I'm getting a strange error that I could not find an answer on the forum or google. This is what I get:

ariel@ariel-GT70:~/catkin_ws/src$ catkin_create_pkg test roscpp
Traceback (most recent call last):
  File "/usr/local/bin/catkin_create_pkg", line 68, in <module>
    main()
  File "/usr/local/bin/catkin_create_pkg", line 61, in main
    newfiles={})
  File "/usr/local/lib/python3.4/dist-packages/catkin_pkg/package_templates.py", line 209, in create_package_files
    _safe_write_files(newfiles, target_path)
  File "/usr/local/lib/python3.4/dist-packages/catkin_pkg/package_templates.py", line 185, in _safe_write_files
    fhand.write(content)
TypeError: 'str' does not support the buffer interface

Any ideas?. Thanks for the answer.