It\'s the first time that I can\'t find the answer about some tech problems Here\'s my problems:
>> conn=psycopg2.connect(database=\"mydb\", user=\"pos
Only this solved my problem, make a symbolic link to the /tmp/.s.PGSQL.5432:
sudo ln -s /tmp/.s.PGSQL.5432 /var/run/postgresql/.s.PGSQL.5432
Thanks to, Sukhjit Singh Sehra - s-postgresql-server-is-running