This error occurs only inside my controller in the flask. It looks like uWSGI does not allow the execution of the subprocess, in this the pylint.
My Code = https://www.pythonanywhere.com/user/renatosantos/files/home/renatosantos/TutorDevChatBeta/app/controllers/default.py?edit
URL:
http://renatosantos.pythonanywhere.com/teste
try:
fileName = "test.py"
ARGS = " -r n --msg-template={msg_id}:{line:3d}"
(pylint_stdout, pylint_stderr) = lint.py_run(fileName + ARGS, return_std=True)
except Exception as e:
raise Exception(e)
if pylint_stderr.getvalue():
print("Entrou no IF")
print(pylint_stderr.getvalue())
print("Command Args-->")
print(fileName + ARGS)
print("Output-->")
print(pylint_stdout.getvalue())
#raise Exception("Issue with pylint configuration")
else:
print("Ok!")
print(pylint_stdout.getvalue())
return jsonify(success="OK!")