I am using wxpython in Ubuntu 10.04 and would like to migrate to 2.9.
I downloaded and built the 2.9.1.1 release with no problem. However,
the demo hangs when any of the entries are clicked. Has anyone else
seen this or have an idea what this means? Every individual demo I
tried has had no problem.
Le 28/10/2010 03:23, Frank Amoroso a �crit :
I am using wxpython in Ubuntu 10.04 and would like to migrate to 2.9.
I downloaded and built the 2.9.1.1 release with no problem. However,
the demo hangs when any of the entries are clicked. Has anyone else
seen this or have an idea what this means? Every individual demo I
tried has had no problem.
I have the same problem with Linux Mandriva 2010 and wxPython 2.8.11.0.
I don't remember if it was the same with 2.8.10.0.
I am glad you have compiled without problem.
With this command :
cd /usr/local/wxPython-src-2.9.1.1/wxPython
python2.6 build-wxpython.py --build_dir=../bld
I have the next message (The same I had in wxPython 2.8.11.0)
gcc -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -g -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -Iinclude -Isrc -I/usr/local/wxPython-src-2.9.1.1/bld/lib/wx/include/gtk2-unicode-2.9 -I/usr/local/wxPython-src-2.9.1.1/include -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/python2.6 -c src/gtk/_core_wrap.cpp -o build/temp.linux-i686-2.6/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: erreur: le format n'est pas une cha�ne litt�rale et pas d'argument de format
Anymore, is it possible to build an ansi build of wxPython and how ?
It's workign okay here, but I'm seeing some gtk log messages about the freeze count, so perhaps there is some Freeze()s in there without a matching Thaw() or something like that, and on your system it leaves the window frozen (not updating itself). Perhaps it is due to a different version of GTK or something. If you are able to track down a Freeze/Thaw mismatch and come up with a patch it would be appreciated.
···
On 10/27/10 6:23 PM, Frank Amoroso wrote:
I am using wxpython in Ubuntu 10.04 and would like to migrate to 2.9.
I downloaded and built the 2.9.1.1 release with no problem. However,
the demo hangs when any of the entries are clicked. Has anyone else
seen this or have an idea what this means? Every individual demo I
tried has had no problem.
--
Robin Dunn
Software Craftsman
With this command :
cd /usr/local/wxPython-src-2.9.1.1/wxPython
python2.6 build-wxpython.py --build_dir=../bldI have the next message (The same I had in wxPython 2.8.11.0)
gcc -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer
-march=i586 -mtune=generic -fasynchronous-unwind-tables -g -fPIC
-DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE
-DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL
-D__WXGTK__ -Iinclude -Isrc
-I/usr/local/wxPython-src-2.9.1.1/bld/lib/wx/include/gtk2-unicode-2.9
-I/usr/local/wxPython-src-2.9.1.1/include -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/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/python2.6 -c src/gtk/_core_wrap.cpp -o
build/temp.linux-i686-2.6/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: erreur: le format n'est pas une cha�ne
litt�rale et pas d'argument de format
"error: the format is not a string literal and no format arguments"
Usually this is a warning, not an error. I'm guessing that it is an error for you because of the -Werror=format-security used on the compile command line. If you can figure out where that flag is coming from and remove it then the build should succeed.
Anymore, is it possible to build an ansi build of wxPython and how ?
Not with 2.9.x. There is only one kind of build now and though it is most like the old Unicode build it is also mostly compatible at the C++ level with C++ code written for the old ansi build.
···
On 10/28/10 7:41 AM, Hugues JEAN-BAPTISTE wrote:
--
Robin Dunn
Software Craftsman
Thanks, the freeze and thaw does seem to be a problem. When I comment
out all Freeze and Thaw commands it doesn't hang. But it still seems a
bit off and I think there might be a gtk issue. Is there a recommended
gtk version? I am using 2.20.1-0ubuntu2 which is probably the default
for ubuntu.
···
On Oct 28, 9:24 am, Robin Dunn <ro...@alldunn.com> wrote:
On 10/28/10 7:41 AM, Hugues JEAN-BAPTISTE wrote:
> With this command :
> cd /usr/local/wxPython-src-2.9.1.1/wxPython
> python2.6 build-wxpython.py --build_dir=../bld> I have the next message (The same I had in wxPython 2.8.11.0)
> gcc -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wformat
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer
> -march=i586 -mtune=generic -fasynchronous-unwind-tables -g -fPIC
> -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE
> -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL
> -D__WXGTK__ -Iinclude -Isrc
> -I/usr/local/wxPython-src-2.9.1.1/bld/lib/wx/include/gtk2-unicode-2.9
> -I/usr/local/wxPython-src-2.9.1.1/include -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/pixman-1
> -I/usr/include/freetype2 -I/usr/include/libpng12
> -I/usr/include/python2.6 -c src/gtk/_core_wrap.cpp -o
> build/temp.linux-i686-2.6/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: erreur: le format n'est pas une cha ne
> litt rale et pas d'argument de format"error: the format is not a string literal and no format arguments"
Usually this is a warning, not an error. I'm guessing that it is an
error for you because of the -Werror=format-security used on the compile
command line. If you can figure out where that flag is coming from and
remove it then the build should succeed.> Anymore, is it possible to build an ansi build of wxPython and how ?
Not with 2.9.x. There is only one kind of build now and though it is
most like the old Unicode build it is also mostly compatible at the C++
level with C++ code written for the old ansi build.--
Robin Dunn
Software Craftsmanhttp://wxPython.org
I think that anything newer than 2.6 is supposed work, but apparently whatever gtj or gdk APIs that Freeze/Thaw maps to has changed such that there are problems with mismatches. If you're able to narrow down the culprit in the demo code let me know.
···
On 10/28/10 11:59 AM, Frank Amoroso wrote:
Thanks, the freeze and thaw does seem to be a problem. When I comment
out all Freeze and Thaw commands it doesn't hang. But it still seems a
bit off and I think there might be a gtk issue. Is there a recommended
gtk version? I am using 2.20.1-0ubuntu2 which is probably the default
for ubuntu.
--
Robin Dunn
Software Craftsman