test.py is:
import re
p = re.compile('[a-z]+')
print p
The first error message is from python2.1, python2.2 and last
python2.3 from SID.
I think this is a serious packaging error, as it works on [GCC 2.96
20000731 (Red Hat Linux 7.2 2.96-109)] on linux2
Regards,
-Kai Hendry
hendry@bilbo:/tmp$ vim test.py
Traceback (most recent call last):
File "test.py", line 1, in ?
import re
ImportError: Bad magic number in re.pyc
shell returned 1
Hit ENTER or type command to continue
Traceback (most recent call last):
File "test.py", line 1, in ?
import re
File "/usr/lib/python2.2/re.py", line 3, in ?
# If your regexps don't work well under 2.0b1, you can switch
AttributeError: 'module' object has no attribute 'compile'
shell returned 1
Hit ENTER or type command to continue
Traceback (most recent call last):
File "test.py", line 1, in ?
import re
ImportError: Bad magic number in re.pyc
shell returned 1
Hit ENTER or type command to continue
Attachment:
pgpxKZVjggBrh.pgp
Description: PGP signature