jimmyyhwu / pose-interpreter-networks

Real-time robotic object pose estimation with deep learning
MIT License
122 stars 27 forks source link

PermissionError: Permission denied: '/usr/local/bin/blender' #1

Closed JiangBing123 closed 6 years ago

JiangBing123 commented 6 years ago

When I used anaconda3's python to run end_to_end_visualize.ipynb, this problem occurred. I copied the system's installed Blender library file to my anaconda3/share/ folder, but it didn't work. I don't know how to solve this problem.

The error message is as follows:

PermissionError Traceback (most recent call last)

in () 21 all_objects = np.zeros_like(resized_image) 22 for i, object_name in enumerate(object_names): ---> 23 single_object = pose_renderers[object_names[i]].render(positions[i], orientations[i]) 24 all_objects = np.maximum(all_objects, single_object * object_colors[object_names[i]]) 25 rendered_pose = (1 - alpha) * resized_image + alpha * all_objects ~/pose-interpreter-networks/pose_estimation/utils.py in render(self, position, orientation) 89 str(self.camera_parameters['p_x']), str(self.camera_parameters['p_y']), 90 str(self.camera_scale), ---> 91 position, orientation]) 92 assert ret == 0 93 image = np.asarray(Image.open(output_path)) ~/anaconda3/lib/python3.6/subprocess.py in call(timeout, *popenargs, **kwargs) 265 retcode = call(["ls", "-l"]) 266 """ --> 267 with Popen(*popenargs, **kwargs) as p: 268 try: 269 return p.wait(timeout=timeout) ~/anaconda3/lib/python3.6/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors) 707 c2pread, c2pwrite, 708 errread, errwrite, --> 709 restore_signals, start_new_session) 710 except: 711 # Cleanup if the child failed starting. ~/anaconda3/lib/python3.6/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session) 1342 if errno_num == errno.ENOENT: 1343 err_msg += ': ' + repr(err_filename) -> 1344 raise child_exception_type(errno_num, err_msg, err_filename) 1345 raise child_exception_type(err_msg) 1346 PermissionError: [Errno 13] Permission denied: '/usr/local/bin/blender'
JiangBing123 commented 6 years ago

I have found the cause of the problem. I linked the wrong Blender file to /usr/local/bin/blender. I solved the problem as follows: After installing the Blender library, execute the command 'which blender', my output is '/usr/bin/blender ', then link this file to '/usr/local/bin/blender' and the error disappears.