X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 52E1730EFAF for ; Mon, 16 Jun 2003 20:35:04 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 06923-10 for ; Mon, 16 Jun 2003 17:34:53 -0300 (ADT) Received: from conure.mail.pas.earthlink.net (conure.mail.pas.earthlink.net [207.217.120.54]) by svr1.postgresql.org (Postfix) with ESMTP id EE30D30EFA3 for ; Mon, 16 Jun 2003 17:34:51 -0300 (ADT) Received: from user-0cev7lj.cable.mindspring.com ([24.239.158.179]) by conure.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19S0gl-0001f5-00 for pgsql-interfaces@postgresql.org; Mon, 16 Jun 2003 13:34:51 -0700 Subject: PL/Python import _sre module error From: Glenn R Williams Reply-To: gloonie@earthlink.net To: pgsql-interfaces@postgresql.org In-Reply-To: <200306161357.20600.JLT@WVInter.Net> References: <000a01c331d8$edd28680$0df4623e@79> <200306161357.20600.JLT@WVInter.Net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-fSw769LD5wIoTlmZFsL6" Message-Id: <1055795688.1529.19.camel@gwpogo.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 16 Jun 2003 16:34:49 -0400 X-Archive-Number: 200306/53 X-Sequence-Number: 4264 --=-fSw769LD5wIoTlmZFsL6 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi All, Does anyone else have a problem with importing the re package=20 I am using: Redhat 9.0 PostgreSQL 7.3.3 Python 2.2.2.26 When I create a function: import re o =3D args[0] b =3D re.match(r"^t.*",o) if b: return "fits the bill" return "failed the test" PostgreSQL fails, and returns the error message: exceptions.ImportError: No module named _sre If I go into python, this is not a problem, so I suppose it is somehow due to the restricted execution environment and/or PostgreSQL. But that's as far as I get. Any suggestions on how to pinpoint the problem? Surely someone else is using re (sre), since the other modules (pcre, pre) don't handle unicode. TIA Glenn Glenn R Williams Software for the International Community ---------------------------------------------------------------------- Mathematical theories are the part of science you could continue to do if you woke up tomorrow and discovered the universe was gone. --=-fSw769LD5wIoTlmZFsL6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+7inoQ0pkIU7d8owRAg1gAJ9tZN7fCCnU8yUZZhl9tG8Bv5RTmwCgit27 UcML7u7ccTBm5GVZ9kNfUbo= =jVPe -----END PGP SIGNATURE----- --=-fSw769LD5wIoTlmZFsL6--