On 16 December 2015 at 12:45, Armin Rigo <ar...@tunes.org> wrote: > > On Wed, Dec 16, 2015 at 1:39 PM, Oscar Benjamin > <oscar.j.benja...@gmail.com> wrote: >> Does tkinter work with PyPy yet (It doesn't in >> the version I have installed here)? > > It should work. Did you install a recent official release, or compile > it yourself? In the latter case, do you have the "tk-dev" headers > installed on your machine? If you get an obscure crash, please open a > bug report. :-)
Thanks Armin. I guess I just don't have a recent enough version. This machine is running Ubuntu 12.04 and I have PyPy from the repos: $ pypy Python 2.7.2 (1.8+dfsg-2, Feb 19 2012, 19:18:08) [PyPy 1.8.0 with GCC 4.6.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. And now for something completely different: ``pypy is a race between the industry trying to build machines with more and more resources, and the pypy developers trying to eat all of them. So far, the winner is still unclear'' >>>> import Tkinter Traceback (most recent call last): File "<console>", line 1, in <module> File "/usr/lib/pypy/lib-python/2.7/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 I'll try installing a newer version... Looking here there seems to be binaries built for 12.04-14.04: http://pypy.org/download.html This one import tkinter without error: https://bitbucket.org/pypy/pypy/downloads/pypy3-2.4.0-linux64.tar.bz2 $ bin/pypy3 Python 3.2.5 (b2091e973da6, Oct 19 2014, 18:29:55) [PyPy 2.4.0 with GCC 4.6.3] 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 >>>> import tkinter # correct Py3 module name >>>> This one does not: https://bitbucket.org/pypy/pypy/downloads/pypy-4.0.1-linux64.tar.bz2 $ bin/pypy Python 2.7.10 (5f8302b8bf9f, Nov 18 2015, 10:46:46) [PyPy 4.0.1 with GCC 4.8.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>> import Tkinter Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/users/enojb/src/pypy-4.0.1-linux64/lib-python/2.7/lib-tk/Tkinter.py", line 39, in <module> import _tkinter # If this fails your Python may not be configured for Tk File "/users/enojb/src/pypy-4.0.1-linux64/lib_pypy/_tkinter/__init__.py", line 13, in <module> from .tklib_cffi import ffi as tkffi, lib as tklib ImportError: unable to load extension module '/users/enojb/src/pypy-4.0.1-linux64/lib_pypy/_tkinter/tklib_cffi.pypy-26.so': libtcl8.5.so: cannot open shared object file: No such file or directory Is that an obscure crash? -- Oscar _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev