Добрый вечер!
Хотел уточнить как можно побороть ошибку при использовании subprocess в Python.
Код простейший
filename = "test.py"
filedir = current_directory + filename
subprocess.call(filedir, shell=True)
Получаю ошибку
spoiler
/home/pavel/PY/venv1/NN_CM_V1_DOCKER/test.py
: not found/PY/venv1/NN_CM_V1_DOCKER/test.py: 1:
import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/421.
import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/421.
import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/421.
import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/421.
import-im6.q16: attempt to perform an operation not allowed by the security policy `PS' @ error/constitute.c/IsCoderAuthorized/421.
Пробовал chmod +x на исп.файле через консоль
Пробовал в основном скрипте os.chmod (filedir, 0o755)
Использую VS Code - система Lubuntu22 , Python 3.10.12 (venv) (пытаюсь портировать ПО для работы в докере)