problem with conflicting versions of wx and wxPython
Bernhard Reiter
bernhard at intevation.de
Tue Jun 23 10:31:16 CEST 2009
Am Montag, 22. Juni 2009 18:32:50 schrieb Michael Styer:
> I downloaded Thuban-1.2.1 sources and ran
>
> $ python setup.py build
>
> from the root of the Thuban directory. I just tried doing it again, but
> the same thing happened, which makes sense because I haven't changed the
> versions of wxGTK or wxPython since building it the first time. Was
> there something else you had in mind?
Oh, this means there is a missmatch between wxGTK and wxPython.
So you would need to recompiled the wxPython package.
(There are many instruction around how to do this. Usually those two packages
should match precisely so this looks like a wxPython wxGTK dependency
packaging problem.) More help would be available via the wxPython community.
You could try disabling the check, but be prepared that stuff goes wrong
if wxGTK and wxPython versions do not match precisely.
> On Mon, 2009-06-22 at 10:55 +0200, Didrik Pinte wrote:
> > You could change the behaviour of the wx check in Thuban/version.py
> > (line 204) so that it does not complain on minor changes.
>
> Apologies -- I don't know any Python (everyone tells me I should learn
> it, but I haven't had time yet). I found that line, but I'm not sure
> how to change it so that it would only complain on major changes?
Just place comment characters "#" in front of the lines you want to disable,
they need to be in the right column to disable the whole block(ideally).
Example:
# Check whether the wxWindows version of wxPython and thuban's
# wxproj module match. If they don't match, segfaults are likely.
if versions["wxproj-wx-tuple"] != versions["wxPython-tuple"][:3]:
errors.append(_("Thuban was compiled with wx %(wxproj-wx)s"
" but wxPython is %(wxPython)s")
% versions)
to
# Check whether the wxWindows version of wxPython and thuban's
# wxproj module match. If they don't match, segfaults are likely.
#if versions["wxproj-wx-tuple"] != versions["wxPython-tuple"][:3]:
# errors.append(_("Thuban was compiled with wx %(wxproj-wx)s"
# " but wxPython is %(wxPython)s")
# % versions)
Bernhard
--
Managing Director - Owner: www.intevation.net (Free Software Company)
Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com.
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20090623/2ae243d5/attachment.bin
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)