#42512: Tkinter not working with macports-installed pypy ------------------------------+-------------------------------- Reporter: macports.org@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: jmr@macports.org | Port: pypy ------------------------------+-------------------------------- With CPython or a pypy translated from source, {{{$PYTHON -m Tkinter}}} opens a small window with 2 buttons. With macports's pypy, however: {{{
pypy -m Tkinter Traceback (most recent call last): File "app_main.py", line 72, in run_toplevel File "/opt/local/lib/pypy/lib-python/2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/opt/local/lib/pypy/lib-python/2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/opt/local/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 File "/opt/local/lib/pypy/lib_pypy/_tkinter/__init__.py", line 13, in <module> from .tklib import tklib, tkffi File "/opt/local/lib/pypy/lib_pypy/_tkinter/tklib.py", line 137, in <module> library_dirs = libdirs File "/opt/local/lib/pypy/lib_pypy/cffi/api.py", line 339, in verify lib = self.verifier.load_library() File "/opt/local/lib/pypy/lib_pypy/cffi/verifier.py", line 73, in load_library self._write_source() File "/opt/local/lib/pypy/lib_pypy/cffi/verifier.py", line 125, in _write_source file = open(self.sourcefilename, 'w') IOError: [Errno 2] No such file or directory: '/opt/local/lib/pypy/lib_pypy/_tkinter/__pycache__/_cffi__g23e32416x3547cfed.c' }}}
Reinstalling pypy does not fix the issue. -- Ticket URL: <https://trac.macports.org/ticket/42512> MacPorts <http://www.macports.org/> Ports system for OS X