| View previous topic :: View next topic |
| Author |
Message |
Cybb20 Super User


Joined: 02 Mar 2004 Posts: 1569 Location: Frankfurt, Germany
|
Posted: Wed Jun 09, 2004 1:33 pm Post subject: No re module for OpenOffice Python core? |
|
|
According to the DEFECT:
http://www.openoffice.org/issues/show_bug.cgi?id=21332
The sre.py and sre.pyc files are corrupted in the OOo Python core.
Although I replaced these files with the ones from my standard Python core (2.3.3) I still am not able to import the re module (regular expressions), which is useful for searching for patterns in strings.
I still get an ImportError (out of the Exception hirarchy) telling me that there is no module named re.
The odd thing is that I already saw code on some sites where people just imported the re module without having any traceback.
I really would like to get use of re but without any major modifications, like Danny has described (possibility of having another Python core in the OOo folder by means of a batch file).
Any suggestions? _________________ - Knowledge is Power - |
|
| Back to top |
|
 |
Henrik OOo Enthusiast

Joined: 15 Jan 2004 Posts: 118
|
|
| Back to top |
|
 |
Cybb20 Super User


Joined: 02 Mar 2004 Posts: 1569 Location: Frankfurt, Germany
|
Posted: Tue Jun 15, 2004 9:45 pm Post subject: |
|
|
now it works, thanks.
I wonder why it has to be the ActiveState distribution. _________________ - Knowledge is Power - |
|
| Back to top |
|
 |
Henrik OOo Enthusiast

Joined: 15 Jan 2004 Posts: 118
|
Posted: Tue Jun 15, 2004 11:51 pm Post subject: |
|
|
Hi,
| Quote: | Cybb20 wrote:
I wonder why it has to be the ActiveState distribution |
I can only speculate, but probably because it is compiled with the same compiler as OOo... Anyway, nice to know that it works
Henrik[/b] |
|
| Back to top |
|
 |
Cybb20 Super User


Joined: 02 Mar 2004 Posts: 1569 Location: Frankfurt, Germany
|
Posted: Wed Jun 16, 2004 7:31 am Post subject: |
|
|
Tkinter doesn't work, as well.
I wonder why these exceptions happen with these fundamental modules, I can't really imagine how this could not be seen when distributed, or did the developers simply ignore these errors? _________________ - Knowledge is Power - |
|
| Back to top |
|
 |
|