|
Hello to all,
I try straight to start python idle. I get the following messages: root@om-gta02 ~ $ idle Traceback (most recent call last): File "/usr/bin/idle", line 3, in <module> from idlelib.PyShell import main File "/usr/lib/python2.6/idlelib/PyShell.py", line 14, in <module> import macosxSupport File "/usr/lib/python2.6/idlelib/macosxSupport.py", line 6, in <module> import Tkinter File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 39, in <module> import _tkinter # If this fails your Python may not be configured for Tk ImportError: No module named _tkinter On my Freerunner the following modules are installed: python-idle - 2.6.4-ml8.1.4 python-tkinter - 2.6.4-ml8.1.4 libtcl8.4-0 - 8.4.19-r4.4 libtk8.4-0 - 8.4.19-r0.4 (manually downloaded by http://build.shr-project.org/shr-testing/ipk-pre-gcc-4.4.3/armv4t/ and installed because it's not (more?) contained in http://build.shr-project.org/shr-testing/ipk/armv4t/) The references from the thread "Python Error <No module named Tkinter>" did not help me. Who can help? Sincerly Sferic |
|
On Mon, May 17, 2010 at 07:28:11AM -0700, sferic wrote:
> > Hello to all, > > I try straight to start python idle. I get the following messages: > > root@om-gta02 ~ $ idle > Traceback (most recent call last): > File "/usr/bin/idle", line 3, in <module> > from idlelib.PyShell import main > File "/usr/lib/python2.6/idlelib/PyShell.py", line 14, in <module> > import macosxSupport > File "/usr/lib/python2.6/idlelib/macosxSupport.py", line 6, in <module> > import Tkinter > File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 39, in <module> > import _tkinter # If this fails your Python may not be configured for Tk > ImportError: No module named _tkinter > > On my Freerunner the following modules are installed: > > python-idle - 2.6.4-ml8.1.4 > python-tkinter - 2.6.4-ml8.1.4 > libtcl8.4-0 - 8.4.19-r4.4 > libtk8.4-0 - 8.4.19-r0.4 (manually downloaded by > http://build.shr-project.org/shr-testing/ipk-pre-gcc-4.4.3/armv4t/ and > installed because it's not (more?) contained in > http://build.shr-project.org/shr-testing/ipk/armv4t/) Please don't use ipk-pre-gcc-4.4.3, it's only temporary dir crated before syncing new feed built from scratch with newer gcc and can be removed soon. And libtk8.4-0/python-tkinter is built properly only when there is tk built before python recipe (which is ensured by tk in DISTRO_FEATURES which we're not using). Even when I rebuild it now, package version won't be changed and you will have to -force-reinstall it. Regards, -- uin:136542059 jid:[hidden email] Jansa Martin sip:[hidden email] JaMa _______________________________________________ Openmoko community mailing list [hidden email] http://lists.openmoko.org/mailman/listinfo/community |
|
Thanks for the reply.
But what does this mean? (Apology for the stupid question. I am new in this business...) Do I have to wait for a recompiled version of python-tkinter (which I have to reinstall with the option --force-reinstall)? Or can't I use python idle at present? I removed libtk8.4-0 from ipk-pre-gcc-4.4.3 in any case. Greetings Sferic |
|
On Tue, May 18, 2010 at 03:52:40AM -0700, sferic wrote:
> > Thanks for the reply. > > But what does this mean? (Apology for the stupid question. I am new in this > business...) > > Do I have to wait for a recompiled version of python-tkinter (which I have > to reinstall with the option --force-reinstall)? Or can't I use python idle > at present? I removed libtk8.4-0 from ipk-pre-gcc-4.4.3 in any case. Yes, exactly. The package version will stay the same so opkg upgrade won't install fixed version for you automatically, but there will be libtk available in ipk/armv4 and python-tkinter will be probably fixed. opkg install -force-reinstall python-tkinter libtk8.4 should work. It's already built and will be in feeds in an hour or so with other upgrades. If you see fso stuff upgrade with opkg upgrade then tk is already there. Regards, -- uin:136542059 jid:[hidden email] Jansa Martin sip:[hidden email] JaMa _______________________________________________ Openmoko community mailing list [hidden email] http://lists.openmoko.org/mailman/listinfo/community |
|
Did I notice that I have installed SHR Testing? I believe, only indirectly by the indication of the path of gcc-pre-4.4.3.
So far I didn't notice an update of /shr-testing/ipk/armv4t - is it because of that? And will python-tkinter in /shr-testing/ipk/armv4t be renewed and libtk8.4 be supplemented? Greetings |
|
On Tue, May 18, 2010 at 07:42:38AM -0700, sferic wrote:
> > Did I notice that I have installed SHR Testing? I believe, only indirectly by > the indication of the path of gcc-pre-4.4.3. Ah sorry I didn't notice, there was similar temporary dir in shr-unstable dir (already removed it). > So far I didn't notice an update of /shr-testing/ipk/armv4t - is it because > of that? And will python-tkinter in /shr-testing/ipk/armv4t be renewed and > libtk8.4 be supplemented? OK I'll build it with tk also in shr-t. (expect it to be in feeds in an hour or so). Regards, -- uin:136542059 jid:[hidden email] Jansa Martin sip:[hidden email] JaMa _______________________________________________ Openmoko community mailing list [hidden email] http://lists.openmoko.org/mailman/listinfo/community |
|
Thank you very much for updating!
The download and installation of python-tkinter and libtk8.4-0 have worked without problems. But I get at the start of python idle a new error message: root@om-gta02 ~ $ idle Traceback (most recent call last): File "/usr/bin/idle", line 3, in <module> from idlelib.PyShell import main File "/usr/lib/python2.6/idlelib/PyShell.py", line 36, in <module> import Debugger File "/usr/lib/python2.6/idlelib/Debugger.py", line 2, in <module> import bdb ImportError: No module named bdb I have installed python-debugger - now I got the following message after calling idle: root@om-gta02 ~ $ idle Traceback (most recent call last): File "/usr/bin/idle", line 5, in <module> main() File "/usr/lib/python2.6/idlelib/PyShell.py", line 1386, in main root = Tk(className="Idle") File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1643, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: Can't find a usable tk.tcl in the following directories: /usr/lib/tcl8.4/tk8.4 /usr/lib/tk8.4 /lib/tk8.4 /usr/library /library /tk8.4.19/library This probably means that tk wasn't installed properly. Now I found, that I have to install Tk and get the following: root@om-gta02 ~ $ idle Traceback (most recent call last): File "/usr/bin/idle", line 5, in <module> main() File "/usr/lib/python2.6/idlelib/PyShell.py", line 1386, in main root = Tk(className="Idle") File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1643, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: Can't find a usable tk.tcl in the following directories: /usr/lib/tcl8.4/tk8.4 /usr/lib/tk8.4 /lib/tk8.4 /usr/library /library /tk8.4.19/library /usr/lib/tk8.4/tk.tcl: no event type or button # or keysym no event type or button # or keysym while executing "bind Listbox <MouseWheel> { %W yview scroll [expr {- (%D / 120) * 4}] units }" invoked from within "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} { bind Listbox <MouseWheel> { %W yview scroll [expr {- (%D)}] uni..." (file "/usr/lib/tk8.4/listbox.tcl" line 181) invoked from within "source /usr/lib/tk8.4/listbox.tcl" (in namespace eval "::" script line 1) invoked from within "namespace eval :: [list source [file join $::tk_library $file.tcl]]" (procedure "SourceLibFile" line 2) invoked from within "SourceLibFile listbox" (in namespace eval "::tk" script line 4) invoked from within "namespace eval ::tk { SourceLibFile button SourceLibFile entry SourceLibFile listbox SourceLibFile menu SourceLibFile panedwindow SourceLibFile ..." invoked from within "if {$::tk_library ne ""} { if {$tcl_platform(platform) eq "macintosh"} { proc ::tk::SourceLibFile {file} { if {[catch { namespace eval :: ..." (file "/usr/lib/tk8.4/tk.tcl" line 407) invoked from within "source /usr/lib/tk8.4/tk.tcl" ("uplevel" body line 1) invoked from within "uplevel #0 [list source $file]" This probably means that tk wasn't installed properly. If I understand correctly tk.tcl is missing a button or a scroll wheel. I am finished with my opportunities. What can I do now? (Do I have to do without idle? Thanks in advance |
|
OK, a break for the night is a good idea, if one can think of nothing more:
Today I removed the MouseWheel-Sections from /usr/lib/tk8.4/listbox.tcl and /usr/lib/tk8.4/text.tcl. After this idle starts and seems to be usable (I will try later and report my experiences). Would it be a good idea to remove those sections permanently, so that remain idle even after an update of tk? Anyway - Many thanks to Martin Jansa |
|
On Wed, May 19, 2010 at 01:52:08AM -0700, sferic wrote:
> > OK, a break for the night is a good idea, if one can think of nothing more: > > Today I removed the MouseWheel-Sections from /usr/lib/tk8.4/listbox.tcl and > /usr/lib/tk8.4/text.tcl. After this idle starts and seems to be usable (I > will try later and report my experiences). > > Would it be a good idea to remove those sections permanently, so that remain > idle even after an update of tk? Sorry I cannot comment on tk issues and I don't even know python-idle/python-tkinter. > Anyway - Many thanks to Martin Jansa Well now it's "fixed" only till next rebuild from scratch, but I'll add "tk" to DISTRO_FEATURES (proper fix) if it doesn't add much to image size or dependency tree. -- uin:136542059 jid:[hidden email] Jansa Martin sip:[hidden email] JaMa _______________________________________________ Openmoko community mailing list [hidden email] http://lists.openmoko.org/mailman/listinfo/community |
|
In reply to this post by sferic
On Wed, May 19, 2010 at 01:52:08AM -0700, sferic wrote:
> > OK, a break for the night is a good idea, if one can think of nothing more: > > Today I removed the MouseWheel-Sections from /usr/lib/tk8.4/listbox.tcl and > /usr/lib/tk8.4/text.tcl. After this idle starts and seems to be usable (I > will try later and report my experiences). > > Would it be a good idea to remove those sections permanently, so that remain > idle even after an update of tk? Hi, pushed that tk DISTRO_FEATURE http://git.openembedded.org/cgit.cgi/openembedded/commit/?id=fa21428ef11bb9b13a276c113e533e951301ecec and there is newer tcl/tk 8.5.8 in oe.dev http://git.openembedded.org/cgit.cgi/openembedded/commit/?id=e92042a4e03b0d40dab3886867340059e6fafcb3 it's building now in shr-u feeds (ETA few hours), so if you're willing to test it with newer tk, please try shr-u (this won't be in shr-t soon). Cheers, -- uin:136542059 jid:[hidden email] Jansa Martin sip:[hidden email] JaMa _______________________________________________ Openmoko community mailing list [hidden email] http://lists.openmoko.org/mailman/listinfo/community |
|
Thanks for the hint.
I have looked at tk_8.5 and above all at listbox.tcl and text.tcl. Both files contain the section MouseWheel (from line 178 in listbox.tcl and from line 446 in text.tcl). These sections in tk_8.4 caused the error messages in idle (before I commented out the lines). I therefore believe that the newer version of tk does not work (without having tried it). In the meantime I have tested idle. And I've found that I can't use the menus with the stylus on the touchscreen. I can select menu items, but I can't execute the commands. This is possible only through the keyboard shortcuts when they are defined for the menu items. I therefore believe that the MouseWheel-sections have to be replaced by something like touchscreen-action. Who can do such a thing? I can't do this, because I can't program ... ![]() Greetings |
| Powered by Nabble | Edit this page |
