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

質問済み 4年前575ビュー
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
回答済み 4年前
0

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

AWS
回答済み 4年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ