Permission Error when bundling the sample code

0

Hello, I've been trying to turn the sample HelloWorld application from the cloud9 IDE. I have followed the steps listed on the developer guide but get stuck on step 4 bundling https://docs.aws.amazon.com/robomaker/latest/dg/gs-simulation.html.

This is the output I get when I attempt to bundle the HelloWorld Robot:

[367.691s] DEBUG:colcon.colcon_bundle.verb:Start: workspace.tar.gz
[367.696s] ERROR:colcon:colcon bundle: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/colcon_bundle/verb/assets/v2_workspace_setup.bash'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/colcon_core/command.py", line 528, in verb_main
rc = context.args.main(context=context)
File "/usr/local/lib/python3.6/dist-packages/colcon_bundle/verb/bundle.py", line 143, in main
dependencies_changed)
File "/usr/local/lib/python3.6/dist-packages/colcon_bundle/verb/_archive_generators.py", line 104, in generate_archive_v2
workspace_tar_gz_path)
File "/usr/local/lib/python3.6/dist-packages/colcon_bundle/verb/_overlay_utilities.py", line 32, in create_workspace_overlay
_CONTEXT_VAR_BASH
File "/usr/local/lib/python3.6/dist-packages/colcon_bundle/verb/_overlay_utilities.py", line 160, in _generate_template
with open(script_location, 'w') as file:
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/colcon_bundle/verb/assets/v2_workspace_setup.bash'

I'm not really sure how to fix this or how to give permission. I have tried reinstalling colcon and updating colcon, but all have seemed to fail for me. Can someone please give me the steps to bundle and not run into this permissions error?

Edited by: akp271 on Feb 9, 2021 12:53 PM

akp271
已提问 3 年前477 查看次数
2 回答
0

I was able to solve it by reinstalling (uninstalling it using sudo and installing it WITHOUT sudo).

  1. sudo pip3 uninstall colcon-bundle colcon-ros-bundle
  2. pip3 install colcon-bundle colcon-ros-bundle
akp271
已回答 3 年前
0

Thank you for replying with an answer when you resolved the issue!

AWS
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容