{"action":"created","issue":{"url":"https://api.github.com/repos/ros/ros_comm/issues/658","labels_url":"https://api.github.com/repos/ros/ros_comm/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/ros/ros_comm/issues/658/comments","events_url":"https://api.github.com/repos/ros/ros_comm/issues/658/events","html_url":"https://github.com/ros/ros_comm/issues/658","id":103846548,"number":658,"title":"roslaunch completion fails when path contains white spaces / special characters","user":{"login":"VictorLamoine","id":5566160,"avatar_url":"https://avatars.githubusercontent.com/u/5566160?v=3","gravatar_id":"","url":"https://api.github.com/users/VictorLamoine","html_url":"https://github.com/VictorLamoine","followers_url":"https://api.github.com/users/VictorLamoine/followers","following_url":"https://api.github.com/users/VictorLamoine/following{/other_user}","gists_url":"https://api.github.com/users/VictorLamoine/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorLamoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorLamoine/subscriptions","organizations_url":"https://api.github.com/users/VictorLamoine/orgs","repos_url":"https://api.github.com/users/VictorLamoine/repos","events_url":"https://api.github.com/users/VictorLamoine/events{/privacy}","received_events_url":"https://api.github.com/users/VictorLamoine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-29T11:51:59Z","updated_at":"2015-08-31T21:42:55Z","closed_at":null,"body":"Creating a work-space in a path containing one or more special characters will lead to errors.\r\n\r\n- First example, work-space contains a `é` (catkin_workspac**é**)\r\n```bash\r\n[roslaunch.config][INFO] 2015-08-29 13:47:15,356: loading config file /home/victor/catkin_workspacé/src/fanuc_experimental/fanuc_r1000ia_support/launch/test_r1000ia80f.launch\r\n[roslaunch][ERROR] 2015-08-29 13:47:15,381: 'ascii' codec can't decode byte 0xc3 in position 28: ordinal not in range(128)\r\n```\r\n\r\n- Second example, work-space contains a `space` character\r\n```bash\r\n~/SpiderOak Hive/catkin_workspace/$ roslaunch fanuc_m10ia_support find: `/home/dell/SpiderOak': No such file or directory find: `Hive/catkin_workspace/src/fanuc/fanuc_m10ia_support': No such file or directory\r\n```\r\n\r\n[Related ROS-Answers question](http://answers.ros.org/question/216626/how-do-i-use-catkin-in-a-directory-containing-a-space-character/?comment=216731)."},"comment":{"url":"https://api.github.com/repos/ros/ros_comm/issues/comments/136509672","html_url":"https://github.com/ros/ros_comm/issues/658#issuecomment-136509672","issue_url":"https://api.github.com/repos/ros/ros_comm/issues/658","id":136509672,"user":{"login":"dirk-thomas","id":1335366,"avatar_url":"https://avatars.githubusercontent.com/u/1335366?v=3","gravatar_id":"","url":"https://api.github.com/users/dirk-thomas","html_url":"https://github.com/dirk-thomas","followers_url":"https://api.github.com/users/dirk-thomas/followers","following_url":"https://api.github.com/users/dirk-thomas/following{/other_user}","gists_url":"https://api.github.com/users/dirk-thomas/gists{/gist_id}","starred_url":"https://api.github.com/users/dirk-thomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirk-thomas/subscriptions","organizations_url":"https://api.github.com/users/dirk-thomas/orgs","repos_url":"https://api.github.com/users/dirk-thomas/repos","events_url":"https://api.github.com/users/dirk-thomas/events{/privacy}","received_events_url":"https://api.github.com/users/dirk-thomas/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T21:42:55Z","updated_at":"2015-08-31T21:42:55Z","body":"Since the error message states \"The traceback for the exception was written to the log file\" it would have been beneficial to include this traceback from the log in the comment. Anyway I have reproduced the problem locally and had the following in the log:\r\n\r\n    [roslaunch][ERROR] 2015-08-31 14:12:56,091: Traceback (most recent call last):\r\n      File \"<string>\", line 298, in main\r\n      File \"/tmp/catkin workspacè/src/ros_comm/tools/roslaunch/src/roslaunch/parent.py\", line 271, in start\r\n        self.runner.launch()\r\n      File \"/tmp/catkin workspacè/src/ros_comm/tools/roslaunch/src/roslaunch/launch.py\", line 646, in launch\r\n        self._setup()\r\n      File \"/tmp/catkin workspacè/src/ros_comm/tools/roslaunch/src/roslaunch/launch.py\", line 623, in _setup\r\n        self._launch_core_nodes()\r\n      File \"/tmp/catkin workspacè/src/ros_comm/tools/roslaunch/src/roslaunch/launch.py\", line 498, in _launch_core_nodes\r\n        name, success = self.launch_node(node, core=True)\r\n      File \"/tmp/catkin workspacè/src/ros_comm/tools/roslaunch/src/roslaunch/launch.py\", line 526, in launch_node\r\n        process = create_node_process(self.run_id, node, master.uri)\r\n      File \"/tmp/catkin workspacè/src/ros_comm/tools/roslaunch/src/roslaunch/nodeprocess.py\", line 131, in create_node_process\r\n        args = create_local_process_args(node, machine)\r\n      File \"/tmp/catkin workspacè/src/ros_comm/tools/roslaunch/src/roslaunch/node_args.py\", line 242, in create_local_process_args\r\n        matches = roslib.packages.find_node(node.package, node.type, rospack)\r\n      File \"/tmp/catkin workspacè/src/ros/core/roslib/src/roslib/packages.py\", line 400, in find_node\r\n        return find_resource(pkg, node_type, filter_fn=_executable_filter, rospack=rospack)\r\n      File \"/tmp/catkin workspacè/src/ros/core/roslib/src/roslib/packages.py\", line 500, in find_resource\r\n        search_paths = catkin_find(search_dirs=['libexec', 'share'], project=pkg, first_matching_workspace_only=True)\r\n      File \"/tmp/catkin workspacè/src/catkin/python/catkin/find_in_workspaces.py\", line 127, in find_in_workspaces\r\n        p = os.path.join(p, project)\r\n      File \"/usr/lib/python2.7/posixpath.py\", line 80, in join\r\n        path += '/' + b\r\n    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 20: ordinal not in range(128)\r\n\r\nThe problem is that the default encoding of your Python version is `ASCII` but you are using non-ASCII characters in your file system. I am not sure of we can address that in ROS.\r\n\r\nThere are also several not ROS related compenents (e.g. using Qt via CMake) which won't handle that case. So I am not sure if it is \"worth the effort\".\r\n\r\nIf you would like to look into it further pull requests are definitely appreciated :wink: "}}