FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 06-13-2008, 09:55 AM
David Harel
 
Default python Tkinter

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?

--
Regards.

David Harel,

==================================

Home office +972 77 7657645
Fax: +972 77 7657645
Cellular: +972 54 4534502
Snail Mail: Amuka
D.N Merom Hagalil
13802
Israel
Email: hareldvd@ergolight-sw.com


--
gentoo-user@lists.gentoo.org mailing list
 
Old 06-13-2008, 10:02 AM
Justin
 
Default python Tkinter

David Harel schrieb:

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?


Please past th output of emerge dev-lang/python -vp.
 
Old 06-13-2008, 11:38 AM
Daniel Heemann
 
Default 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
 
Old 06-13-2008, 11:47 AM
"Edward Hades"
 
Default 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
 
Old 06-13-2008, 12:44 PM
Justin
 
Default 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.
 
Old 06-13-2008, 02:13 PM
Kenneth Prugh
 
Default 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
 
Old 06-13-2008, 02:34 PM
"Edward Hades"
 
Default 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
 
Old 06-13-2008, 02:50 PM
Kenneth Prugh
 
Default 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
 
Old 06-13-2008, 03:34 PM
"Daniel Pielmeier"
 
Default 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
 

Thread Tools




All times are GMT. The time now is 12:40 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org