PermissionError: [Errno 13] Permission denied: 'unrar'
Created by: yisampi
- 版本、环境信息: 1)PaddlePaddle版本:1.5.1.post107 2)CPU/GPU:GPU 3)系统环境:centos 4)Python版本号: 3.7.3 5)显存信息 用conda create 一个新的env ,然后用pip install paddlepaddle conda create -n paddlepaddle pip install -U paddlepaddle-gpu
在notebook import时报错,但是在系统shell下import正常 import paddle.fluid as fluid
PermissionError Traceback (most recent call last) in ----> 1 import paddle.fluid as fluid
/optanaconda3/envs/paddlepaddle/lib/python3.7/site-packages/paddle/init.py in 23 24 import paddle.reader ---> 25 import paddle.dataset 26 import paddle.batch 27 import paddle.compat
/optanaconda3/envs/paddlepaddle/lib/python3.7/site-packages/paddle/dataset/init.py in 26 import paddle.dataset.wmt14 27 import paddle.dataset.wmt16 ---> 28 import paddle.dataset.mq2007 29 import paddle.dataset.flowers 30 import paddle.dataset.voc2012
/optanaconda3/envs/paddlepaddle/lib/python3.7/site-packages/paddle/dataset/mq2007.py in 28 import os 29 import functools ---> 30 import rarfile 31 from .common import download 32 import numpy as np
/optanaconda3/envs/paddlepaddle/lib/python3.7/site-packages/rarfile.py in 2948 pass 2949 -> 2950 _check_unrar_tool() 2951
/optanaconda3/envs/paddlepaddle/lib/python3.7/site-packages/rarfile.py in _check_unrar_tool() 2929 try: 2930 # does UNRAR_TOOL work? -> 2931 custom_check([ORIG_UNRAR_TOOL], True) 2932 2933 UNRAR_TOOL = ORIG_UNRAR_TOOL
/optanaconda3/envs/paddlepaddle/lib/python3.7/site-packages/rarfile.py in custom_check(cmd, ignore_retcode) 2821 """Run command, collect output, raise error if needed. 2822 """ -> 2823 p = custom_popen(cmd) 2824 out, _ = p.communicate() 2825 if p.returncode and not ignore_retcode:
/optanaconda3/envs/paddlepaddle/lib/python3.7/site-packages/rarfile.py in custom_popen(cmd) 2811 try: 2812 p = Popen(cmd, bufsize=0, stdout=PIPE, stdin=PIPE, stderr=STDOUT, -> 2813 creationflags=creationflags) 2814 except OSError as ex: 2815 if ex.errno == errno.ENOENT:
/optanaconda3/envs/paddlepaddle/lib/python3.7/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, text) 773 c2pread, c2pwrite, 774 errread, errwrite, --> 775 restore_signals, start_new_session) 776 except: 777 # Cleanup if the child failed starting.
/optanaconda3/envs/paddlepaddle/lib/python3.7/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) 1520 if errno_num == errno.ENOENT: 1521 err_msg += ': ' + repr(err_filename) -> 1522 raise child_exception_type(errno_num, err_msg, err_filename) 1523 raise child_exception_type(err_msg) 1524
PermissionError: [Errno 13] Permission denied: 'unrar'