Re: [gentoo-user] Re: wxPython/wxWidgets release number mismatch

2018-09-18 Thread Mart Raudsepp
Ühel kenal päeval, E, 17.09.2018 kell 19:02, kirjutas Andrew Udvare:
> On 9/17/18 5:02 PM, Grant Edwards wrote:
> > 
> > It wants to re-install wxpython-3.0.2.0, wxGTK-3.04 and
> > wxGTK-304-r300.  I've already done that a few times, but I answered
> > 'y' anyway and let it reinstall them again.  It didn't help:
> > 
> > $ python -c "import wx"
> > 
> > /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629:
> > UserWarning: wxPython/wxWidgets release number mismatch
> >   warnings.warn("wxPython/wxWidgets release number mismatch")
> > 
> 
> It needs to be version bumped. https://bugs.gentoo.org/632602

To my knowledge then that would also mean porting the program to it, as
it's a complete python bindings rewrite. Though the python API might be
quite the same compared to wxpython-3.0.2 with some exceptions and thus
maybe not a huge work.
For Gentoo it is of course quite a bit more "fun" when now all of a
sudden "import wx" could be either wxpython-3 or wxpython-4, even after
you get them installed in parallel in a separate SLOT without file
collisions. And that's why I still haven't even looked at this huge
bunch of needed work and testing. (more people want newer gnome right
now..)

> The current version of wxPython is actually 4.0.x and is not
> compatible
> with wxGTK 3.0.4.

I'm quite sure that is not true - wxPython 4.0.x README says it works
fine with wxWidgets 3.0, or more specifically wxGTK-3.0.4.

> wxGTK needs to be bumped as well
> https://bugs.gentoo.org/577030 but there are some breaking changes in
> 3.1 vs 3.0.

And 3.1 is ABI unstable development release, and we distributions
aren't fond of them.
Latest stable wxWidgets is 3.0.4, and we are up to date there with
wxGTK.

> wxPython 3.0.2.0 is considered 'classic' and was released in 2014.
> 
> I tried to use a virtualenv with system package access and tried `pip
> install wxpython` but the oldest sane version you can go back to
> 4.0.3
> which won't build with 3.0.4 version of wxGTK.
> 
> This discrepancy between the two does not look like it will be fixed
> any
> time soon.

It's just a warning from the times wxpython was released more or less
in tandem with wxWidgets. When their wxpython-4 worked progressed far,
they stopped doing that, and that old warning now apparently hits. But
all it is, is a warning. It'd be more of a problem if it ended up using
wxGTK-3.1 or a future 3.2. But wxGTK-3.0.4 is just bug fixes over
3.0.2, plus some new API and tiny careful backwards compatible ABI
changes (via ELF symbol versioning, etc). It should be fine as-is.
There might be value in relaxing that warning with a downstream patch,
but personally I'd rather save that time and work on wxpython-4
instead.

Yes, it'd be nice if we had wxpython-4. Help welcome. Also help welcome
in having wxpython-3 use wxGTK:3.0-gtk3 or have a separate SLOT for
that itself as well.

wxGTK-3.1 however is of debatable value due to development series and
ABI instability combined with a C++ ABI world. Most upstream developers
seem to ship their own wx things static linked into their stuff, so
don't seem to understand the needs of Linux distributions, or just
basic good release management. I am tired of trying to have that
improved by upstream - I've tried for ~14 years now, including while
being an upstream developer myself for wxGTK over a decade ago.

I realize that some programs want to use the new features already, but
we are in the business of building a stable distribution, not throw all
development releases and the caveats from that in front of everyone,
even when manpower is lacking for even the stable versions as-is.


Mart,
wxWidgets legacy Gentoo maintainer, hoping for a replacement..



[gentoo-user] Re: wxPython/wxWidgets release number mismatch

2018-09-17 Thread Grant Edwards
On 2018-09-17, Andrew Udvare  wrote:
> On 9/17/18 5:02 PM, Grant Edwards wrote:
>> 
>> It wants to re-install wxpython-3.0.2.0, wxGTK-3.04 and
>> wxGTK-304-r300.  I've already done that a few times, but I answered
>> 'y' anyway and let it reinstall them again.  It didn't help:
>> 
>> $ python -c "import wx"
>> 
>> /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: 
>> UserWarning: wxPython/wxWidgets release number mismatch
>>   warnings.warn("wxPython/wxWidgets release number mismatch")
>> 
>
> It needs to be version bumped. https://bugs.gentoo.org/632602
>
> The current version of wxPython is actually 4.0.x and is not
> compatible with wxGTK 3.0.4. wxGTK needs to be bumped as well
> https://bugs.gentoo.org/577030 but there are some breaking changes
> in 3.1 vs 3.0.

Sounds like a mess.  The Gentoo stable versions _seem_ to work OK
together at the moment (for the apps I've tried), but the warning
every time you run one doesn't inspire confidence.

--
Grant




[gentoo-user] Re: wxPython/wxWidgets release number mismatch

2018-09-17 Thread Grant Edwards
On 2018-09-17, Mick  wrote:
>> $ python -c "import wx"
>> 
>> /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629:
>> UserWarning: wxPython/wxWidgets release number mismatch
>> warnings.warn("wxPython/wxWidgets release number mismatch")
>
> Have a look at bug #639276 in case it is related to your problem:
>
>  https://bugs.gentoo.org/639276

No, that seems to be a different problem with incompatible ABIs.
AFAICT, the ABIs in my case are comptable, and so far, applications
seem to run OK, but I always get the warning.

--
Grant






Re: [gentoo-user] Re: wxPython/wxWidgets release number mismatch

2018-09-17 Thread Andrew Udvare
On 9/17/18 5:02 PM, Grant Edwards wrote:
> 
> It wants to re-install wxpython-3.0.2.0, wxGTK-3.04 and
> wxGTK-304-r300.  I've already done that a few times, but I answered
> 'y' anyway and let it reinstall them again.  It didn't help:
> 
> $ python -c "import wx"
> 
> /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: 
> UserWarning: wxPython/wxWidgets release number mismatch
>   warnings.warn("wxPython/wxWidgets release number mismatch")
> 

It needs to be version bumped. https://bugs.gentoo.org/632602

The current version of wxPython is actually 4.0.x and is not compatible
with wxGTK 3.0.4. wxGTK needs to be bumped as well
https://bugs.gentoo.org/577030 but there are some breaking changes in
3.1 vs 3.0.

wxPython 3.0.2.0 is considered 'classic' and was released in 2014.

I tried to use a virtualenv with system package access and tried `pip
install wxpython` but the oldest sane version you can go back to 4.0.3
which won't build with 3.0.4 version of wxGTK.

This discrepancy between the two does not look like it will be fixed any
time soon.

Andrew



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: wxPython/wxWidgets release number mismatch

2018-09-17 Thread Mick
On Monday, 17 September 2018 22:02:23 BST Grant Edwards wrote:
> On 2018-09-17, Andrew Udvare  wrote:
> > On 9/17/18 3:48 PM, Grant Edwards wrote:
> >> Does anybody have any idea what the below is trying to tell me?
> >> 
> >> _WHAT_ two compenents are mismatched?
> >> 
> >> WTF is the point of printing a "release number mismatch" warning
> >> without tell the user which two components are mismatched?
> >> 
> >> You might as well print out
> >> 
> >> WARNING: something might or might be wrong!
> >> 
> >> I've reinstalled wxpython, pygtk, and wxGTK, and it didn't help.
> > 
> > I think you need to try this:
> > 
> > revdep-rebuild -L wx_baseu-3.0 -- --ask
> 
> It wants to re-install wxpython-3.0.2.0, wxGTK-3.04 and
> wxGTK-304-r300.  I've already done that a few times, but I answered
> 'y' anyway and let it reinstall them again.  It didn't help:
> 
> $ python -c "import wx"
> 
> /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629:
> UserWarning: wxPython/wxWidgets release number mismatch
> warnings.warn("wxPython/wxWidgets release number mismatch")

Have a look at bug #639276 in case it is related to your problem:

 https://bugs.gentoo.org/639276

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: wxPython/wxWidgets release number mismatch

2018-09-17 Thread Grant Edwards
On 2018-09-17, Andrew Udvare  wrote:
> On 9/17/18 3:48 PM, Grant Edwards wrote:
>> Does anybody have any idea what the below is trying to tell me?
>> 
>> _WHAT_ two compenents are mismatched?
>> 
>> WTF is the point of printing a "release number mismatch" warning
>> without tell the user which two components are mismatched?
>> 
>> You might as well print out
>> 
>> WARNING: something might or might be wrong!
>> 
>> I've reinstalled wxpython, pygtk, and wxGTK, and it didn't help.
>
> I think you need to try this:
>
> revdep-rebuild -L wx_baseu-3.0 -- --ask

It wants to re-install wxpython-3.0.2.0, wxGTK-3.04 and
wxGTK-304-r300.  I've already done that a few times, but I answered
'y' anyway and let it reinstall them again.  It didn't help:

$ python -c "import wx"

/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: UserWarning: 
wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")

-- 
Grant Edwards   grant.b.edwardsYow! Either CONFESS now or
  at   we go to "PEOPLE'S COURT"!!
  gmail.com




[gentoo-user] Re: wxPython/wxWidgets release number mismatch

2018-09-17 Thread Grant Edwards
On 2018-09-17, Grant Edwards  wrote:

 import wx
> /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: 
> UserWarning: wxPython/wxWidgets release number mismatch
>   warnings.warn("wxPython/wxWidgets release number mismatch")

Is this because I have wxpython 3.0.2.0 and wxGTK 3.0.4-r300 and
"3.0.2.0" != "3.0.4-r300"?

Those are the current stable versions of the two packages, and there
are no matching combinations of wxGTK and wxpython versions available
in portage.

What is one supposed to do to avoid that warning everytime one starts
a wxpython app?

-- 
Grant Edwards   grant.b.edwardsYow! I'm shaving!!
  at   I'M SHAVING!!
  gmail.com