current problem with Python3/wxGTK4 on Debian

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

current problem with Python3/wxGTK4 on Debian

Karsten Hilbert
Recently wx doesn't import under py3:

        Script started on 2018-07-11 18:56:51+02:00
        ncq@hermes:~$ python3
        Python 3.6.6 (default, Jun 27 2018, 14:44:17)
        [GCC 8.1.0] on linux
        Type "help", "copyright", "credits" or "license" for more information.
        >>> import wx
        Traceback (most recent call last):
          File "<stdin>", line 1, in <module>
          File "/usr/lib/python3/dist-packages/wx/__init__.py", line 17, in <module>
            from wx.core import *
          File "/usr/lib/python3/dist-packages/wx/core.py", line 12, in <module>
            from ._core import *
        RuntimeError: the sip module implements API v12.0 to v12.4 but the wx._core module requires API v12.5
        >>> exit()
        ncq@hermes:~$ exit
        exit

        Script done on 2018-07-11 18:57:02+02:00

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: current problem with Python3/wxGTK4 on Debian

Scott Talbert
On Wed, 11 Jul 2018, Karsten Hilbert wrote:

> Recently wx doesn't import under py3:
>
> Script started on 2018-07-11 18:56:51+02:00
> ncq@hermes:~$ python3
> Python 3.6.6 (default, Jun 27 2018, 14:44:17)
> [GCC 8.1.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import wx
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/usr/lib/python3/dist-packages/wx/__init__.py", line 17, in <module>
>    from wx.core import *
>  File "/usr/lib/python3/dist-packages/wx/core.py", line 12, in <module>
>    from ._core import *
> RuntimeError: the sip module implements API v12.0 to v12.4 but the wx._core module requires API v12.5
> >>> exit()
> ncq@hermes:~$ exit
> exit

Yep, I saw your bug report too.  This is a packaging problem and not an
upstream one as Robin bundles sip (both code generator and module) so the
versions never mismatch.

There was a new sip recently uploaded to Debian, and I recently also
uploaded a new version of wxpython4.0.  It looks like you've got the old
version of the sip module but the new build of wxpython4.0.  You can
probably work around this by updating your 'python3-sip' package, but I
need to fix the packaging so this can't happen.

Scott

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: current problem with Python3/wxGTK4 on Debian

Karsten Hilbert
On Wed, Jul 11, 2018 at 01:23:44PM -0400, Scott Talbert wrote:

> > Script started on 2018-07-11 18:56:51+02:00
> > ncq@hermes:~$ python3
> > Python 3.6.6 (default, Jun 27 2018, 14:44:17)
> > [GCC 8.1.0] on linux
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import wx
> > Traceback (most recent call last):
> >  File "<stdin>", line 1, in <module>
> >  File "/usr/lib/python3/dist-packages/wx/__init__.py", line 17, in <module>
> >    from wx.core import *
> >  File "/usr/lib/python3/dist-packages/wx/core.py", line 12, in <module>
> >    from ._core import *
> > RuntimeError: the sip module implements API v12.0 to v12.4 but the wx._core module requires API v12.5

> There was a new sip recently uploaded to Debian, and I recently also
> uploaded a new version of wxpython4.0.  It looks like you've got the old
> version of the sip module but the new build of wxpython4.0.  You can
> probably work around this by updating your 'python3-sip' package

Confirmed. I also updated the bug report.

Many thanks,
Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.