Bug 21890

Summary: wxPython/wxWidgets release number mismatch
Product: Sisyphus Reporter: Oleg Paraschenko <olpa>
Component: python-module-wxAssignee: real <real>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: antohami, cas, cow, darktemplar, enp, evg, george, glebfm, hiddenman, imz, lav, ldv, mike, mithraen, nbr, qa_viy, real.altlinux.org, rider, rt, sem, shaba, sin, solo, vitty, viy, vvk
Version: unstableKeywords: backport
Hardware: all   
OS: Linux   

Description Oleg Paraschenko 2009-10-09 17:01:55 MSD
Похоже, надо пересобрать 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.
Comment 1 Michael Shigorin 2009-10-11 14:36:28 MSD
Там грабли (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?
Comment 2 Vitaly Lipatov 2009-10-14 09:29:47 MSD
Что с граблями на 2.8.10.1 сделать, не знаю,так что
> warnings.warn("wxPython/wxWidgets release number mismatch")
оставим, если это не мешает работоспособности.
Comment 3 Michael Shigorin 2009-10-14 15:37:51 MSD
По крайней мере wammu у меня работает.
Comment 4 Oleg Paraschenko 2009-10-15 08:10:32 MSD
> оставим, если это не мешает работоспособности.
Ok. Вроде бы всё работает, просто лишние сообщения раздражают.

> PS: а при чём ключслово backport?
Видимо, я неправильно понял смысл тега.
Comment 5 real@altlinux.org 2010-01-13 07:50:33 MSK
wxGTK и python-module-wx полностью приведены в соответствие по версиям.
Comment 6 Michael Shigorin 2010-01-13 18:27:29 MSK
Ай спасибо!