wxpython on pypy: possilbe

Hello, just out of curiosity, I installed Pypy (on windows) and I don’t know, how to install wxPython for that.

I called pypy
(I added: sys.path.append("/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode")

import wx
File “/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/init.py”, line 45, in
from wx._core import *
File “/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”, line 4, in
import core
ImportError: No module named core

Is this possible at all? Has someone tried (und succeeded) installing wxPython for Pypy?

Looks like it's currently not compatible -
https://bitbucket.org/pypy/compatibility/wiki/Home

There was an announcement way back in 2010 that they had it partially
working -

but that doesn't appear to be the case any more.

Mike

···

On Wed, Apr 19, 2017 at 1:45 PM, franz steinhaeusler < franz.steinhaeusler@gmail.com> wrote:

Hello, just out of curiosity, I installed Pypy (on windows) and I don't
know, how to install wxPython for that.

I called pypy
(I added: sys.path.append("/usr/lib/python2.7/dist-packages/wx-2.
8-gtk2-unicode")

import wx
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/__init__.py",
line 45, in <module>
    from wx._core import *
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 4, in <module>
    import _core_
ImportError: No module named _core_

Is this possible at all? Has someone tried (und succeeded) installing
wxPython for Pypy?

Open the Command prompt on Windows. Type pip install wxpython and press Enter.

That’s how I did it.

···

Sent from my iPhone

On Apr 19, 2017, at 4:24 PM, Mike Driscoll mike@pythonlibrary.org wrote:

On Wed, Apr 19, 2017 at 1:45 PM, franz steinhaeusler franz.steinhaeusler@gmail.com wrote:

Hello, just out of curiosity, I installed Pypy (on windows) and I don’t know, how to install wxPython for that.

I called pypy
(I added: sys.path.append(“/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode”)

import wx
File “/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/init.py”, line 45, in
from wx._core import *
File “/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”, line 4, in
import core
ImportError: No module named core

Is this possible at all? Has someone tried (und succeeded) installing wxPython for Pypy?

Looks like it’s currently not compatible - https://bitbucket.org/pypy/compatibility/wiki/Home

There was an announcement way back in 2010 that they had it partially working - https://morepypy.blogspot.com/2010/05/running-wxpython-on-top-of-pypy.html but that doesn’t appear to be the case any more.

Mike

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 wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Tried it with both the Python 2.7 and 3.5 versions on XUbuntu 16.04. It doesn’t work. For 3.5, pip says it is collecting wxPython and then kills itself. For 2.7, I get a build failed error.

Mike

···

On Wednesday, April 19, 2017 at 4:50:43 PM UTC-5, Ryan Mann wrote:

Open the Command prompt on Windows. Type pip install wxpython and press Enter.

That’s how I did it.

Mike,

It is worth reading the pre-requisites section of
Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub or the same
link includes detailed instructions for building from the source.

···

On 20/04/2017 19:53, Mike Driscoll wrote:

On Wednesday, April 19, 2017 at 4:50:43 PM UTC-5, Ryan Mann wrote:

    Open the Command prompt on Windows. Type pip install wxpython and
    press Enter.
    That's how I did it.

Tried it with both the Python 2.7 and 3.5 versions on XUbuntu 16.04. It
doesn't work. For 3.5, pip says it is collecting wxPython and then kills
itself. For 2.7, I get a build failed error.

Mike

--
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.

Folks:

WxPython does not work with PyPy – it makes very heavy use of the cPython C API. No cPython extension code is ever going to work wit PyPy without a lot of extra work.

OK, maybe not never:

“PyPy has alpha/beta-level support for the CPython C API

But it’s a long way from “just working” for a library as complex as wxPython.

-CHB

···

On Apr 20, 2017, at 10:42 PM, Steve Barnes gadgetsteve@live.co.uk wrote:

On 20/04/2017 19:53, Mike Driscoll wrote:

On Wednesday, April 19, 2017 at 4:50:43 PM UTC-5, Ryan Mann wrote:

Open the Command prompt on Windows.  Type pip install wxpython and
press Enter.
That's how I did it.

Tried it with both the Python 2.7 and 3.5 versions on XUbuntu 16.04. It
doesn’t work. For 3.5, pip says it is collecting wxPython and then kills
itself. For 2.7, I get a build failed error.

Mike

Mike,

It is worth reading the pre-requisites section of
https://github.com/wxWidgets/Phoenix/blob/master/README.rst or the same
link includes detailed instructions for building from the source.


Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.


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 wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks for clarification.

I think, pypy is an amazing idea, python mostly written in python (or this reduced RPython).

Long time ago, I compared a longer calculation, and I didn’r believed it, Pypy war by far faster than (normal) CPython.