[Zope-DB] Problems with installation of psycopg-1.0.1
Federico Di Gregorio
fog@initd.org
21 Jan 2002 09:10:27 +0100
--=-5qNamrtuRjKbAvwdWlem
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Il lun, 2002-01-21 alle 06:57, Michael Long ha scritto:
[snip]
> awk '/.+OID[ \t]+[0-9]+/ {print $2 " " $3}' \
> /usr/include/pgsql/catalog/pg_type.h | \
> python buildtypes.py >typeobj_builtins.c
> LZTEXT: value not found
this is not an error, as long as typeobj_builtins.c gets generated.
> After running make install-zope and starting a python shell I type:
> import psycopg and get the following output:
>=20
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: No module named DateTime
i'll bet that either you're using a version of zop that comes with
python prepackaged or you are using an earlier version of mxdatetime
(<2.0.2). after installing mxdatetime, make sure it works by importing
it in python:
$ python
Python 2.1.2 (#1, Jan 18 2002, 18:05:45)=20
[GCC 2.95.4 (Debian prerelease)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> from mx import DateTime
hope this helps,
federico
--=20
Federico Di Gregorio
Debian GNU/Linux Developer & Italian Press Contact fog@debian.org
INIT.D Developer fog@initd.org
All programmers are optimists. -- Frederick P. Brooks, Jr.
--=-5qNamrtuRjKbAvwdWlem
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Per informazioni si veda http://www.gnupg.org
iEYEABECAAYFAjxLzPMACgkQvcCgrgZGjevm1ACcD4KjeuKb5icFpJn4sfjcChFS
jWsAoJJy8135I9JlhQrpFoKjWLC4LNSe
=+ZAx
-----END PGP SIGNATURE-----
--=-5qNamrtuRjKbAvwdWlem--