| View previous topic :: View next topic |
| Author |
Message |
spex66 Newbie

Joined: 19 Nov 2003 Posts: 2
|
Posted: Thu Nov 20, 2003 2:05 am Post subject: pyuno:: interactive python.bat -> cannot 'import re' |
|
|
Hi again,
windows2000, OOo1.1 installation with pyuno, no hacks to get my own python distribution
to get an interactive uno-able python shell, I'm starting the OpenOffice.org1.1.0\program\python.bat
the following happens:
[code]
Python 2.2.2 (#37, Aug 18 2003, 17:02:06) on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\arwa\progs\OpenOffice.org1.1.0\program\python-core-2.2.2\lib\re.py", line 27, in ?
from sre import *
File "C:\arwa\progs\OpenOffice.org1.1.0\program\python-core-2.2.2\lib\sre.py", line 97, in ?
import sre_compile
File "C:\arwa\progs\OpenOffice.org1.1.0\program\python-core-2.2.2\lib\sre_compile.py", line 13, in ?
import _sre, sys
ImportError: dynamic module does not define init function (init_sre)
>>>
[/code ]
Why?
Again the question (actually not just focussed on building pyuno-components _within_ OOo) --> what are the limitations of the actual python-support?
thanks
Peter
(=PA=)
P.S.: I don't know why the code tagging isn't working... |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
Cybb20 Super User


Joined: 02 Mar 2004 Posts: 1569 Location: Frankfurt, Germany
|
Posted: Mon Mar 21, 2005 10:08 am Post subject: |
|
|
| Quote: |
Why?
Again the question (actually not just focussed on building pyuno-components _within_ OOo) --> what are the limitations of the actual python-support? |
Don't be surprised, there have been many problems with some modules and I think I remember having the same problems with re that you had.
To your second question:
There are many limitations, if you want to distribute your python scripts for others then you can only use the modules installed.
However it is a gray area, that I haven't delved into much, but I have heard from some guys that they made it work with third-party modules.
But you really have to be patient with OOo 1.1.x python core, and of course:
Tweaking/hacking is on your own risk .
Christian _________________ - Knowledge is Power - |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|