Hello Bengts

On 12/13/2011 07:09 PM, Bengt Richter wrote:
> Thought JFTHOI I would try pypy on the simplest demo:
> 
> [18:05 ~/src/Python-2.7.2/Demo/tkinter/matt]$ cat -n 00-HELLO-WORLD.py
[cut]
>     import _tkinter # If this fails your Python may not be configured for Tk
> ImportError: No module named _tkinter
> [18:05 ~/src/Python-2.7.2/Demo/tkinter/matt]$
> 
> I guess my "Python may not be configured for Tk" ;-)

you need to install tkinter-pypy:

http://morepypy.blogspot.com/2011/04/using-tkinter-and-idle-with-pypy.html
https://bitbucket.org/pypy/tkinter

note that setup.py hardcode the Tk version number to 8.4.  You might need to
manually modify it to 8.5 depending on which version is installed on your 
system.

ciao,
Anto
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to