Ask Your Question
1

Error for autoware on jetson AGX "Could not find a primary shell extension for creating an environment hook"

asked 2020-01-29 18:57:24 -0600

msaeUF gravatar image

updated 2020-02-10 02:34:35 -0600

gvdhoorn gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-02-09 17:20:09 -0600

msaeUF gravatar image

I was able to solve this issue and build on Jetson Xavier AGX. I cleaned up everything, reflashed the OS onto it. This time 4.2
Installed Opencv following: https://www.google.com/url?sa=t&rct=j...

Installed Ros Melodic following: https://www.jetsonhacks.com/2018/10/2...

Installed Qt5

Installed other dependencies listed in: https://gitlab.com/autowarefoundation...

and was able to build from source just fine

edit flag offensive delete link more

Comments

Thanks for the follow-up!

Josh Whitley gravatar imageJosh Whitley ( 2020-02-11 12:07:48 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-01-29 18:57:24 -0600

Seen: 32 times

Last updated: Feb 10