Error for autoware on jetson AGX "Could not find a primary shell extension for creating an environment hook"
Hello!
I have Nvidia Jetson AGX Xavier with jetpack 4.3. Am trying to get Autoware on it but consistently keep on getting the following error. I am trying to compile with CUDA. Have tried with the master version and the 1.12 but keep on getting the same issue.
drillvision@drillvision-desktop:~/autoware.ai$ AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
Starting >>> autoware_build_flags
Starting >>> autoware_msgs
Starting >>> vector_map_msgs
Starting >>> autoware_config_msgs
Starting >>> tablet_socket_msgs
Starting >>> autoware_system_msgs
Starting >>> autoware_can_msgs
Starting >>> mrt_cmake_modules
Finished <<< mrt_cmake_modules [2.58s]
Starting >>> lanelet2_core
Finished <<< autoware_build_flags [6.08s]
Starting >>> gnss
Finished <<< lanelet2_core [9.24s]
Starting >>> lanelet2_io
Finished <<< autoware_can_msgs [17.5s]
Starting >>> lanelet2_traffic_rules
Finished <<< tablet_socket_msgs [18.8s]
Starting >>> sick_ldmrs_description
Finished <<< lanelet2_io [13.2s]
Starting >>> lanelet2_projection
Finished <<< lanelet2_traffic_rules [8.03s]
Starting >>> lanelet2_routing
Finished <<< gnss [20.2s]
Starting >>> sick_ldmrs_msgs
Finished <<< sick_ldmrs_description [10.6s]
Starting >>> ds4_msgs
Finished <<< autoware_system_msgs [30.6s]
Starting >>> autoware_health_checker
Finished <<< lanelet2_projection [7.35s]
Starting >>> lanelet2_maps
Finished <<< lanelet2_maps [3.02s]
Starting >>> custom_msgs
Finished <<< lanelet2_routing [10.4s]
Starting >>> lanelet2_python
Finished <<< ds4_msgs [10.9s]
Starting >>> ds4_driver
Finished <<< autoware_config_msgs [41.8s]
Starting >>> gazebo_camera_description
Finished <<< ds4_driver [4.38s]
Starting >>> gazebo_imu_description
Finished <<< gazebo_camera_description [7.92s]
Starting >>> ndt_cpu
Finished <<< gazebo_imu_description [7.88s]
Starting >>> ndt_tku
Finished <<< sick_ldmrs_msgs [30.3s]
Starting >>> sick_ldmrs_driver
Finished <<< vector_map_msgs [58.7s]
Starting >>> vector_map
Finished <<< ndt_tku [13.2s]
Starting >>> pcl_omp_registration
Finished <<< custom_msgs [55.6s]
Starting >>> fastvirtualscan
[102.320s] ERROR:colcon.colcon_core.shell:Exception in shell extension 'powershell': [Errno 13] Permission denied: '/home/drillvision/autoware.ai/install/autoware_msgs/share/autoware_msgs/hook/ros_package_path.ps1'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/colcon_core/shell/__init__.py", line 390, in create_environment_hook
subdirectory)
File "/usr/lib/python3/dist-packages/colcon_powershell/shell/powershell.py", line 131, in create_hook_prepend_value
'subdirectory': subdirectory,
File "/usr/lib/python3/dist-packages/colcon_core/shell/template/__init__.py", line 45, in expand_template
with destination_path.open('w') as h:
File "/usr/lib/python3.6/pathlib.py", line 1183, in open
opener=self._opener)
File "/usr/lib/python3.6/pathlib.py", line 1037, in _opener
return self._accessor.open(self, flags, mode)
File "/usr/lib/python3.6/pathlib.py", line 387, in wrapped
return strfunc(str(pathobj), *args)
PermissionError: [Errno 13] Permission denied: '/home/drillvision/autoware.ai/install/autoware_msgs/share/autoware_msgs/hook/ros_package_path.ps1'
[102.331s] ERROR:colcon.colcon_core.shell:Exception in shell extension 'dsv': [Errno 13] Permission denied: '/home/drillvision/autoware.ai/install/autoware_msgs/share/autoware_msgs/hook/ros_package_path.dsv'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/colcon_core/shell/__init__.py", line 390, in create_environment_hook
subdirectory)
File "/usr/lib/python3/dist-packages/colcon_core/shell/dsv.py", line 64, in create_hook_prepend_value
'value': subdirectory,
File "/usr/lib/python3/dist-packages/colcon_core/shell/template/__init__.py", line 45, in expand_template
with destination_path.open('w') as h:
File "/usr/lib/python3.6/pathlib.py", line 1183, in open
opener=self._opener)
File ...