Hab gerade eine Rückmeldung erhalten:
PyPy version 2.1 contains a cffi-based TkInter module,
which is much faster and easier to maintain.
cffi kannte ich bisher nicht, ist das:
The aim of this project is to provide a convenient and reliable way of calling C code from Python.
http://cffi.readthedocs.org/en/latest/
Im pypy 2.1 archiv ist auch Tk, hier:
pypy-2.1\lib-python\2.7\lib-tk
Das importieren endet allerdings in einen Traceback:
Code: Alles auswählen
Python 2.7.3 (480845e6b1dd, Jul 31 2013, 09:10:30)
[PyPy 2.1.0 with MSC v.1500 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``we like complaints''
>>>> import Tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "d:\pypy-2.1\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 "d:\pypy-2.1\lib_pypy\_tkinter\__init__.py", line 13, in <module>
from .tklib import tklib, tkffi
File "d:\pypy-2.1\lib_pypy\_tkinter\tklib.py", line 113, in <module>
libraries=['tcl', 'tk'],
File "d:\pypy-2.1\lib_pypy\cffi\api.py", line 311, in verify
lib = self.verifier.load_library()
File "d:\pypy-2.1\lib_pypy\cffi\verifier.py", line 68, in load_library
self.compile_module()
File "d:\pypy-2.1\lib_pypy\cffi\verifier.py", line 56, in compile_module
self._compile_module()
File "d:\pypy-2.1\lib_pypy\cffi\verifier.py", line 131, in _compile_module
outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
File "d:\pypy-2.1\lib_pypy\cffi\ffiplatform.py", line 25, in compile
outputfilename = _build(tmpdir, ext)
File "d:\pypy-2.1\lib_pypy\cffi\ffiplatform.py", line 47, in _build
dist.run_command('build_ext')
File "d:\pypy-2.1\lib-python\2.7\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "d:\pypy-2.1\lib-python\2.7\distutils\command\build_ext.py", line 349, in
run
self.build_extensions()
File "d:\pypy-2.1\lib-python\2.7\distutils\command\build_ext.py", line 458, in
build_extensions
self.build_extension(ext)
File "d:\pypy-2.1\lib-python\2.7\distutils\command\build_ext.py", line 508, in
build_extension
depends=ext.depends)
File "d:\pypy-2.1\lib-python\2.7\distutils\msvc9compiler.py", line 473, in com
pile
self.initialize()
File "d:\pypy-2.1\lib-python\2.7\distutils\msvc9compiler.py", line 383, in ini
tialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "d:\pypy-2.1\lib-python\2.7\distutils\msvc9compiler.py", line 271, in que
ry_vcvarsall
raise DistutilsPlatformError("Unable to find vcvarsall.bat")
DistutilsPlatformError: Unable to find vcvarsall.bat
>>>>
Muß ich das Tk-Toolkit für Windows evtl. separat installieren?