Discussion:
[Tkinter-discuss] Error in import of Tkinter in python 2.7
Pedro Marcal
2012-10-09 09:32:32 UTC
Permalink
I have python 2.6 and 2.7 installed on my Windows 7-prof.
my IDLE runs OK with Tkinter.
When I tried to use IDLE in 2.7 I got the above error. I suspect I need to
set an environmental Variable.
Thanks for any suggestions.
Pedro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20121009/14e70653/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: importer_error.jpg
Type: image/jpeg
Size: 85064 bytes
Desc: not available
URL: <Loading Image...Image>
Lion Kimbro
2012-10-09 18:01:50 UTC
Permalink
I'm curious -- do you have a file Python27/libs/_tkinter.lib ..?

( Maybe you have a Python build that excluded tk? )
Post by Pedro Marcal
I have python 2.6 and 2.7 installed on my Windows 7-prof.
my IDLE runs OK with Tkinter.
When I tried to use IDLE in 2.7 I got the above error. I suspect I need to
set an environmental Variable.
Thanks for any suggestions.
Pedro
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss at python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20121009/9cbeebd4/attachment.html>
Pedro Marcal
2012-10-09 18:50:44 UTC
Permalink
I do have the file _tkinter.lib.
In fact when I compare my Lib files, I have all the tkinter related files
in 2.7 that I have in 2.6.
Thanks, Pedro
Post by Lion Kimbro
I'm curious -- do you have a file Python27/libs/_tkinter.lib ..?
( Maybe you have a Python build that excluded tk? )
Post by Pedro Marcal
I have python 2.6 and 2.7 installed on my Windows 7-prof.
my IDLE runs OK with Tkinter.
When I tried to use IDLE in 2.7 I got the above error. I suspect I need
to set an environmental Variable.
Thanks for any suggestions.
Pedro
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss at python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20121009/fde7b12f/attachment.html>
Lion Kimbro
2012-10-09 18:59:43 UTC
Permalink
python -c "import sys; print sys.path"

What do you get?
Post by Pedro Marcal
I do have the file _tkinter.lib.
In fact when I compare my Lib files, I have all the tkinter related files
in 2.7 that I have in 2.6.
Thanks, Pedro
Post by Lion Kimbro
I'm curious -- do you have a file Python27/libs/_tkinter.lib ..?
( Maybe you have a Python build that excluded tk? )
Post by Pedro Marcal
I have python 2.6 and 2.7 installed on my Windows 7-prof.
my IDLE runs OK with Tkinter.
When I tried to use IDLE in 2.7 I got the above error. I suspect I need
to set an environmental Variable.
Thanks for any suggestions.
Pedro
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss at python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20121009/47012da5/attachment.html>
Pedro Marcal
2012-10-09 19:41:25 UTC
Permalink
the attached output.
Post by Lion Kimbro
python -c "import sys; print sys.path"
What do you get?
Post by Pedro Marcal
I do have the file _tkinter.lib.
In fact when I compare my Lib files, I have all the tkinter related files
in 2.7 that I have in 2.6.
Thanks, Pedro
Post by Lion Kimbro
I'm curious -- do you have a file Python27/libs/_tkinter.lib ..?
( Maybe you have a Python build that excluded tk? )
Post by Pedro Marcal
I have python 2.6 and 2.7 installed on my Windows 7-prof.
my IDLE runs OK with Tkinter.
When I tried to use IDLE in 2.7 I got the above error. I suspect I need
to set an environmental Variable.
Thanks for any suggestions.
Pedro
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss at python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20121009/0834238b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: importer_2.jpg
Type: image/jpeg
Size: 100662 bytes
Desc: not available
URL: <Loading Image...Image>
Loading...