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
preguntada hace 3 años477 visualizaciones
2 Respuestas
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
respondido hace 3 años
0

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

AWS
respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas