Похоже, надо пересобрать wxPython: $ python -c 'import wx' /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py:14450: UserWarning: wxPython/wxWidgets release number mismatch warnings.warn("wxPython/wxWidgets release number mismatch") Установолено: $ rpm -qa | grep wx wxGTK-contrib-gizmos-2.8.10-alt3 python-module-wx-2.8.9.2-alt2 wxGTK-common-0.4-alt1 wxGTK-2.8.10-alt3 wxGTK-contrib-stc-2.8.10-alt3 # apt-get update Get:1 ftp://ftp.altlinux.org i586 release [727B] Get:2 ftp://ftp.altlinux.org noarch release [726B] Fetched 1453B in 1s (733B/s) Hit ftp://ftp.altlinux.org i586/classic pkglist Hit ftp://ftp.altlinux.org i586/classic release Hit ftp://ftp.altlinux.org noarch/classic pkglist Hit ftp://ftp.altlinux.org noarch/classic release Reading Package Lists... Done Building Dependency Tree... Done # apt-get install wxGTK-contrib-gizmos python-module-wx wxGTK-common wxGTK wxGTK-contrib-stc Reading Package Lists... Done Building Dependency Tree... Done wxGTK-contrib-gizmos is already the newest version. python-module-wx is already the newest version. wxGTK-common is already the newest version. wxGTK is already the newest version. wxGTK-contrib-stc is already the newest version. 0 upgraded, 0 newly installed, 0 removed and 626 not upgraded.
Там грабли (http://thread.gmane.org/gmane.comp.python.wxpython/70918): i586-alt-linux-gcc -pthread -DNDEBUG -pipe -Wall -O2 -march=i586 -mtune=i686 -fPIC -DPIC -D_GNU_SOURCE -pipe -Wall -O2 -march=i586 -mtune=i686 -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Iinclude -Isrc -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/python2.5 -c src/gtk/_core_wrap.cpp -o build-gtk2.unicode/temp.linux-i686-2.5/src/gtk/_core_wrap.o -pthread -O3 src/gtk/_core_wrap.cpp: In function 'void SWIG_Python_AddErrorMsg(const char*)': src/gtk/_core_wrap.cpp:864: warning: format not a string literal and no format arguments src/gtk/_core_wrap.cpp: In constructor 'swig::PyObject_ptr::PyObject_ptr(PyObject*, bool)': src/gtk/_core_wrap.cpp:2670: warning: suggest explicit braces to avoid ambiguous 'else' src/gtk/_core_wrap.cpp: In function 'bool wxSizer_Remove(wxSizer*, PyObject*)': src/gtk/_core_wrap.cpp:4637: warning: 'virtual bool wxSizer::Remove(wxWindow*)' is deprecated (declared at /usr/include/wx-2.8/wx/sizer.h:513) src/gtk/_core_wrap.cpp: In function 'PyObject* _wrap_ShowEvent_IsShown(PyObject*, PyObject*)': src/gtk/_core_wrap.cpp:28693: error: 'const class wxShowEvent' has no member named 'IsShown' src/gtk/_core_wrap.cpp: In function 'PyObject* _wrap_GetAccelFromString(PyObject*, PyObject*, PyObject*)': src/gtk/_core_wrap.cpp:33954: warning: 'wxAcceleratorEntry* wxGetAccelFromString(const wxString&)' is deprecated (declared at /usr/include/wx-2.8/wx/utils.h:571) src/gtk/_core_wrap.cpp:33954: warning: 'wxAcceleratorEntry* wxGetAccelFromString(const wxString&)' is deprecated (declared at /usr/include/wx-2.8/wx/utils.h:571) error: command 'i586-alt-linux-gcc' failed with exit status 1 PS: а при чём ключслово backport?
Что с граблями на 2.8.10.1 сделать, не знаю,так что > warnings.warn("wxPython/wxWidgets release number mismatch") оставим, если это не мешает работоспособности.
По крайней мере wammu у меня работает.
> оставим, если это не мешает работоспособности. Ok. Вроде бы всё работает, просто лишние сообщения раздражают. > PS: а при чём ключслово backport? Видимо, я неправильно понял смысл тега.
wxGTK и python-module-wx полностью приведены в соответствие по версиям.
Ай спасибо!