re.compile missing in python 2.3.3/2.3.4???

Steve nospam at nopes
Fri Jul 9 04:18:05 CEST 2004


I just installed a fresh copy of python 2.3.3 and python 2.3.4 and 
everytime a there's a call to re.compile, it says:
Traceback (most recent call last):
   File "", line 76, in ?
     from distutils.core import setup
   File "/usr/lib/python2.2/distutils/", line 16, in ?
     from distutils.util import grok_environment_error
   File "/usr/lib/python2.2/distutils/", line 207, in ?
     _wordchars_re = re.compile(r'[^\\\'\"%s ]*' % string.whitespace)
AttributeError: 'module' object has no attribute 'compile'

First, how do I make the file '' point to the directory: 
/opt/python-2.3.4/lib/python2.3/distutils instead. It keeps using the 
default, which is: /usr/lib/python2.2/distutils/. Second, is this 
related to why re.compile won't work? Please help!!!


More information about the Python-list mailing list