I need Tkinter: http://wiki.python.org/moin/TkInter .
In /etc/portage/package.use I added:
dev-lang/python (-nocxx) (-nothreads) tk
trying the package as explained in "Step 1" in the above link:
$ python
Python 2.5.1 (r251:54863, Mar 12 2008, 14:21:54)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import _tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named _tkinter
>>>
I need Tkinter: http://wiki.python.org/moin/TkInter .
In /etc/portage/package.use I added:
dev-lang/python (-nocxx) (-nothreads) tk
trying the package as explained in "Step 1" in the above link:
$ python
Python 2.5.1 (r251:54863, Mar 12 2008, 14:21:54)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import _tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named _tkinter
>>>
Any idea?
Please past th output of emerge dev-lang/python -vp.
06-13-2008, 11:38 AM
Daniel Heemann
python Tkinter
On Fri June 13 2008, David Harel wrote:
> Hi,
>
> I need Tkinter: http://wiki.python.org/moin/TkInter .
> In /etc/portage/package.use I added:
> dev-lang/python (-nocxx) (-nothreads) tk
>
> trying the package as explained in "Step 1" in the above link:
> $ python
> Python 2.5.1 (r251:54863, Mar 12 2008, 14:21:54)
> [GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> import _tkinter
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named _tkinter
Afaik you need to build python with the 'tk' USE flag enabled.
--
gentoo-user@lists.gentoo.org mailing list
06-13-2008, 11:47 AM
"Edward Hades"
python Tkinter
On Fri, Jun 13, 2008 at 3:38 PM, Daniel Heemann <daniel.heemann@gmx.de> wrote:
> On Fri June 13 2008, David Harel wrote:
>> In /etc/portage/package.use I added:
>> dev-lang/python (-nocxx) (-nothreads) tk
> Afaik you need to build python with the 'tk' USE flag enabled.
That he did. David, you sure you have recompiled python _after_ adding tk flag?
--
Henny Youngman - "When I told my doctor I couldn't afford an
operation, he offered to touch-up my X-rays."
--
gentoo-user@lists.gentoo.org mailing list
06-13-2008, 12:44 PM
Justin
python Tkinter
That he did.
That was what I wanted to find out. If there is another entry in
package.use, negating the first then he doesn't. We cannot be sure right
now.
06-13-2008, 02:13 PM
Kenneth Prugh
python Tkinter
On Fri, 13 Jun 2008 12:55:39 +0300
David Harel <hareldvd@gmail.com> wrote:
> Hi,
>
> I need Tkinter: http://wiki.python.org/moin/TkInter .
> In /etc/portage/package.use I added:
> dev-lang/python (-nocxx) (-nothreads) tk
>
> trying the package as explained in "Step 1" in the above link:
> $ python
> Python 2.5.1 (r251:54863, Mar 12 2008, 14:21:54)
> [GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import _tkinter
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named _tkinter
> >>>
>
> Any idea?
>
Uh, the module is called Tkinter, so: import Tkinter
http://docs.python.org/lib/module-Tkinter.html
--
Ken69267
06-13-2008, 02:34 PM
"Edward Hades"
python Tkinter
On Fri, Jun 13, 2008 at 6:13 PM, Kenneth Prugh <ken69267@gmail.com> wrote:
> Uh, the module is called Tkinter, so: import Tkinter
>
> http://docs.python.org/lib/module-Tkinter.html
>
> --
> Ken69267
>
Tkinter is a high-level interface, _tkinter is a low-level one.
http://docs.python.org/lib/node685.html
--
Bill Watterson - "There is not enough time to do all the nothing we
want to do."
--
gentoo-user@lists.gentoo.org mailing list
06-13-2008, 02:50 PM
Kenneth Prugh
python Tkinter
On Fri, 13 Jun 2008 18:34:34 +0400
"Edward Hades" <edward.hades@gmail.com> wrote:
> On Fri, Jun 13, 2008 at 6:13 PM, Kenneth Prugh <ken69267@gmail.com>
> wrote:
> > Uh, the module is called Tkinter, so: import Tkinter
> >
> > http://docs.python.org/lib/module-Tkinter.html
> >
> > --
> > Ken69267
> >
>
> Tkinter is a high-level interface, _tkinter is a low-level one.
>
> http://docs.python.org/lib/node685.html
>
>
Alright, I guess I just misunderstood and assumed wrong because that
very page states that the low level interface should never be used
directly.
Although, I suspect now that Tkinter would fail too.
--
Ken69267
06-13-2008, 03:34 PM
"Daniel Pielmeier"
python Tkinter
2008/6/13, David Harel <hareldvd@gmail.com>:
> Hi,
>
> I need Tkinter: http://wiki.python.org/moin/TkInter .
> In /etc/portage/package.use I added:
> dev-lang/python (-nocxx) (-nothreads) tk
>
> trying the package as explained in "Step 1" in the above link:
> $ python
> Python 2.5.1 (r251:54863, Mar 12 2008, 14:21:54)
> [GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import _tkinter
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named _tkinter
> >>>
>
> Any idea?
Did you update python and forgot running python-updater?
> Python 2.5.1 (r251:54863, Mar 12 2008, 14:21:54)
Maybe you can try a python version which is in the tree 2.5.1 is not
anymore as i can see where 2.5.2 is the current version avaiable in
the tree. Another option would be trying a stable version of python,
afaik 2.4.x ist stable at the moment.
--
gentoo-user@lists.gentoo.org mailing list