Windows 7, Visual Studio 2017, PostgreSQL 11, Python 3.6.
Trying to dump the database:
args = ["C://Program files/Postgresql/11/bin/pg_dump.exe", "-d Test", "-U postgres", "-f C://Temp/Temp"] process = subprocess.Popen(args, stdout = subprocess.PIPE) data = process.communicate() print(data) The command is executed, it requests a password, I enter the password, it displays an error, in the screenshot.
It is noteworthy that if from the console to call this command, everything happens as it should, through psycopg2 also connect to the database normally.
