Apache OpenOffice (AOO) Bugzilla – Issue 30349
Python Tkinter module defect
Last modified: 2013-02-24 21:06:48 UTC
import Tkinter will result in the following output: Traceback (most recent call last): File "<stdin>", line 1, in ? File "C:\Program Files\OpenOffice.org1.1.1\program\python-core-2.2.2\lib\lib-t k\Tkinter.py", line 35, in ? import _tkinter # If this fails your Python may not be configured for Tk ImportError: No module named _tkinter Tested it on several machines with different OOo versions: 1.1.1 and 1.1.0. In all cases this error occurs.
I have found out that the required file _tkinter.pyd is not existent in the OOo Python core. That's the reason why it cannot be loaded. Solution: Download ActiveState Python version 2.2.x and take the _tkinter.pyd and copy it into your python-core-2.2.2\ folder.
It's not guaranteed that it will work with the ActiveState _tkinter.pyd file. However in my case it's not working, cause of some dll error.
SW->JBU: pyuno seems to be your 'playground' :-)
forgot to reassign
Hi, tkinter is currently not supported, it may be at some time in future, depending on how much time I have left to spend on python. So currently setting the state to WONTFIX. You can study the http://udk.openoffice.org/python/python-bridge.html homepage, there is a pyuno-needs-you section, where I am looking for volunteers to take over this task. Additonally, you may have a look at http://udk.openoffice.org/python/python-bridge.html#replacing to have a description on how to replace OOo python runtime with the system's python installation, which may have all the optional packages you like. Bye, Joerg
The Issue you raised has been marked as 'Resolved' and not updated within the last 1 year+. I am therefore setting this issue to 'Verified' as the first step towards Closing it. If you feel this is incorrect, please re-open the issue and add any comments. Many thanks, Andrew Cleaning-up and Closing old Issues ~ The Grand Bug Squash, pre v3 ~ http://marketing.openoffice.org/3.0/announcementbeta.html
As per previous posting: Verified -> Closed. A Closed Issue is a Happy Issue (TM). Regards, Andrew