Re: Install problems

Jeremy Mason <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
> I just successfully installed pscopg2-2.0.9 on my mac and another 
> server.  But now I try all the following and nothing works.  Can anyone 
> provide me with any help?
> 
> Thanks,
> 
> Peter   
> 
> ~ # easy_install psycopg2==2.0.9
> Searching for psycopg2==2.0.9
> Reading http://pypi.python.org/simple/psycopg2/
> Reading http://initd.org/projects/psycopg2
> Reading http://initd.org/pub/software/psycopg/
> Best match: psycopg2 2.0.9
> Downloading http://initd.org/pub/software/psycopg/psycopg2-2.0.9.tar.gz
> Processing psycopg2-2.0.9.tar.gz
> Running psycopg2-2.0.9/setup.py -q bdist_egg --dist-dir 
> /tmp/easy_install-mSvjpM/psycopg2-2.0.9/egg-dist-tmp-8xDqJz
> error: Setup script exited with error: No such file or directory
> 
> 
> /var/src/psycopg/psycopg2-2.0.9 # easy_install .
> Processing .
> Running setup.py -q bdist_egg --dist-dir 
> /var/src/psycopg/psycopg2-2.0.9/egg-dist-tmp-JXR5e5
> error: Setup script exited with error: No such file or directory
> mhe-palmbeachpost5:/var/src/psycopg/psycopg2-2.0.9 # sudo easy_install .
> Processing .
> Running setup.py -q bdist_egg --dist-dir 
> /var/src/psycopg/psycopg2-2.0.9/egg-dist-tmp-ztn1qq
> error: Setup script exited with error: No such file or directory
> 
> 
> /var/src/psycopg/psycopg2-2.0.9 # python setup.py install
> running install
> running build
> running build_py
> creating build
> creating build/lib.linux-i686-2.5
> creating build/lib.linux-i686-2.5/psycopg2
> copying lib/tz.py -> build/lib.linux-i686-2.5/psycopg2
> copying lib/errorcodes.py -> build/lib.linux-i686-2.5/psycopg2
> copying lib/psycopg1.py -> build/lib.linux-i686-2.5/psycopg2
> copying lib/extensions.py -> build/lib.linux-i686-2.5/psycopg2
> copying lib/extras.py -> build/lib.linux-i686-2.5/psycopg2
> copying lib/__init__.py -> build/lib.linux-i686-2.5/psycopg2
> copying lib/pool.py -> build/lib.linux-i686-2.5/psycopg2
> running build_ext
> error: No such file or directory
> 
> 
> /var/src/psycopg/psycopg2-2.0.9 # python setup.py build
> running build
> running build_py
> running build_ext
> error: No such file or directory
> 

I had a similar problem and the solution for me was to make sure that 
the postgres pg_config script is findable on your path.

Jeremy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.