Postgresql socket error on OSX 10.7.3 when running Django's syncdb

前端 未结 7 2124
被撕碎了的回忆
被撕碎了的回忆 2020-12-14 04:03

Since upgrading OSX to version 10.7.3, when I attempt to run a Django \"syncdb\" command, I receive the following psycopg2 error from Postgresql 8.4.2:

psyco         


        
7条回答
  •  孤街浪徒
    2020-12-14 04:16

    Did a bit of testing on my Mac and I noticed that there are two versions on my system for several commands. One version is in /usr/bin the other is in /Library/PostgreSQL/9.0/bin. The version in /usr/bin is expecting /var/pgsql_socket/.s.PGSQL.5432, the right version for my install expects /tmp/.s.PGSQL.5432

    The version in /usr/bin is 9.0.5 and it has been installed by Apple.

    Unfortunatly I do not know much about django, but my bet is it is either calling a command in the wrong path or it is loading a library from the wrong location.

提交回复
热议问题