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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠