pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Glenn R Williams <gloonie@earthlink.net>
To: pgsql-interfaces@postgresql.org
Subject: PL/Python import _sre module error
Date: 16 Jun 2003 16:34:49 -0400
Message-ID: <1055795688.1529.19.camel@gwpogo.localdomain> (raw)
In-Reply-To: <200306161357.20600.JLT@WVInter.Net>
References: <000a01c331d8$edd28680$0df4623e@79>
	<200306161357.20600.JLT@WVInter.Net>

Hi All,

Does anyone else have a problem with importing the re package 
I am using:

Redhat 9.0
PostgreSQL 7.3.3
Python 2.2.2.26

When I create a function:

import re
o = args[0]
b = 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.

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (7+ messages)  latest in thread

Message-ID: <1055795688.1529.19.camel@gwpogo.localdomain>
Permalink:  ../1055795688.1529.19.camel@gwpogo.localdomain/
Also on:    postgresql.org/message-id/1055795688.1529.19.camel@gwpogo.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: gloonie@earthlink.net
  Subject: Re: PL/Python import _sre module error
  In-Reply-To: <1055795688.1529.19.camel@gwpogo.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox