psycopg2 build on Solaris

Luc Ma <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
Hi and thanks in advance for your time,

I am trying to install skytools. 
(Solaris 10 x86)

So first I was prompted to install psycopg2.

installs/skytools-2.1.7/python # ./pgqadm.py provider_ticker.ini install
Please install psycopg2 module

So I downloaded psycopg2-2.0.7, unpackaged and ran both

python setup.py build
python setup.py install


and they both went through without errors (see both outputs below).
Still when I go to 

/usr/local/lib/python2.5/site-packages/psycopg2


there is no psycopg2.py module  (and the skytools install is giving the same error).
Here are all the files in that dir :
__init__.py
__init__.pyc
_psycopg.so
errorcodes.py
errorcodes.pyc
extensions.py
extensions.pyc
extras.py
extras.pyc
pool.py
pool.pyc
psycopg1.py
psycopg1.pyc
tz.py
tz.pyc


Please help.

Thanks in advance for your time
Lukie





==========================

output 
==========================

#  installs/psycopg2-2.0.7 # python setup.py build

running build
running build_py
running build_ext
building 'psycopg2._psycopg' extension
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/psycopgmodule.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/psycopgmodule.o
In file included from psycopg/psycopgmodule.c:26:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
/usr/local/include/python2.5/datetime.h:186: warning: 'PyDateTimeAPI' defined but not used
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/pqpath.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/pqpath.o
In file included from psycopg/pqpath.c:33:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/typecast.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/typecast.o
In file included from psycopg/typecast.c:27:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
psycopg/typecast.c:37: warning: 'skip_until_space' defined but not used
/usr/local/include/python2.5/datetime.h:186: warning: 'PyDateTimeAPI' defined but not used
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/microprotocols.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/microprotocols.o
In file included from psycopg/microprotocols.c:27:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/microprotocols_proto.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/microprotocols_proto.o
In file included from psycopg/microprotocols_proto.c:30:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/connection_type.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/connection_type.o
In file included from psycopg/connection_type.c:31:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/connection_int.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/connection_int.o
In file included from psycopg/connection_int.c:27:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/cursor_type.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/cursor_type.o
In file included from psycopg/cursor_type.c:28:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/cursor_int.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/cursor_int.o
In file included from psycopg/cursor_int.c:27:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/adapter_qstring.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/adapter_qstring.o
In file included from psycopg/adapter_qstring.c:31:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/adapter_pboolean.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/adapter_pboolean.o
In file included from psycopg/adapter_pboolean.c:29:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/adapter_binary.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/adapter_binary.o
In file included from psycopg/adapter_binary.c:31:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/adapter_asis.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/adapter_asis.o
In file included from psycopg/adapter_asis.c:29:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/adapter_list.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/adapter_list.o
In file included from psycopg/adapter_list.c:28:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPG_MAJOR_VERSION=8 -DPG_MINOR_VERSION=3 -DPG_PATCH_VERSION=3 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/local/include/python2.5 -I. -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c psycopg/adapter_datetime.c -o build/temp.solaris-2.10-i86pc-2.5/psycopg/adapter_datetime.o
In file included from psycopg/adapter_datetime.c:32:
../psycopg/config.h:135: warning: static declaration of 'round' follows non-static declaration
/usr/local/include/python2.5/datetime.h:186: warning: 'PyDateTimeAPI' defined but not used
gcc -shared build/temp.solaris-2.10-i86pc-2.5/psycopg/psycopgmodule.o build/temp.solaris-2.10-i86pc-2.5/psycopg/pqpath.o build/temp.solaris-2.10-i86pc-2.5/psycopg/typecast.o build/temp.solaris-2.10-i86pc-2.5/psycopg/microprotocols.o build/temp.solaris-2.10-i86pc-2.5/psycopg/microprotocols_proto.o build/temp.solaris-2.10-i86pc-2.5/psycopg/connection_type.o build/temp.solaris-2.10-i86pc-2.5/psycopg/connection_int.o build/temp.solaris-2.10-i86pc-2.5/psycopg/cursor_type.o build/temp.solaris-2.10-i86pc-2.5/psycopg/cursor_int.o build/temp.solaris-2.10-i86pc-2.5/psycopg/adapter_qstring.o build/temp.solaris-2.10-i86pc-2.5/psycopg/adapter_pboolean.o build/temp.solaris-2.10-i86pc-2.5/psycopg/adapter_binary.o build/temp.solaris-2.10-i86pc-2.5/psycopg/adapter_asis.o build/temp.solaris-2.10-i86pc-2.5/p
 sycopg/adapter_list.o build/temp.solaris-2.10-i86pc-2.5/psycopg/adapter_datetime.o -L/usr/local/pgsql/lib -lpython2.5 -lpq -o
 build/lib.solaris-2.10-i86pc-2.5/psycopg2/_psycopg.so







#  installs/psycopg2-2.0.7 # python setup.py install

running install
running build
running build_py
running build_ext
running install_lib
creating /usr/local/lib/python2.5/site-packages/psycopg2
copying build/lib.solaris-2.10-i86pc-2.5/psycopg2/tz.py -> /usr/local/lib/python2.5/site-packages/psycopg2
copying build/lib.solaris-2.10-i86pc-2.5/psycopg2/_psycopg.so -> /usr/local/lib/python2.5/site-packages/psycopg2
copying build/lib.solaris-2.10-i86pc-2.5/psycopg2/errorcodes.py -> /usr/local/lib/python2.5/site-packages/psycopg2
copying build/lib.solaris-2.10-i86pc-2.5/psycopg2/extensions.py -> /usr/local/lib/python2.5/site-packages/psycopg2
copying build/lib.solaris-2.10-i86pc-2.5/psycopg2/psycopg1.py -> /usr/local/lib/python2.5/site-packages/psycopg2
copying build/lib.solaris-2.10-i86pc-2.5/psycopg2/__init__.py -> /usr/local/lib/python2.5/site-packages/psycopg2
copying build/lib.solaris-2.10-i86pc-2.5/psycopg2/pool.py -> /usr/local/lib/python2.5/site-packages/psycopg2
copying build/lib.solaris-2.10-i86pc-2.5/psycopg2/extras.py -> /usr/local/lib/python2.5/site-packages/psycopg2
byte-compiling /usr/local/lib/python2.5/site-packages/psycopg2/tz.py to tz.pyc
byte-compiling /usr/local/lib/python2.5/site-packages/psycopg2/errorcodes.py to errorcodes.pyc
byte-compiling /usr/local/lib/python2.5/site-packages/psycopg2/extensions.py to extensions.pyc
byte-compiling /usr/local/lib/python2.5/site-packages/psycopg2/psycopg1.py to psycopg1.pyc
byte-compiling /usr/local/lib/python2.5/site-packages/psycopg2/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.5/site-packages/psycopg2/pool.py to pool.pyc
byte-compiling /usr/local/lib/python2.5/site-packages/psycopg2/extras.py to extras.pyc
running install_egg_info
Writing /usr/local/lib/python2.5/site-packages/psycopg2-2.0.7-py2.5.egg-info

_______________________________________________
Psycopg mailing list
Psycopg-IAPFreCvJWPBWskQ1e/[email protected]
http://lists.initd.org/mailman/listinfo/psycopg
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.