Getting strange error from pip-pypy when trying to install PySide

495 views Asked by At

I'm using PyPy as my Python implementation, and thus, I installed pip-pypy (I'm on Arch). I then tried the following command:

pip-pypy install PySide

This fails with the following error:

error: Failed to locate the Python library with /opt/pypy/lib/libpython2.7.so, /opt/pypy/lib/libpython2.7.so.1, /opt/pypy/lib/libpython2.7.a

I'm a bit confused by this, and would like to know what I should do to make this work.

2

There are 2 answers

0
kraptor On BEST ANSWER

Unfortunately Pyside is not supported by PyPy [1][2] at this stage so you won't be able to use it from PyPy.

A version of Pyside patched for PyPy was in development [3] but it is now stalled and known not to work.

Let's hope this changes in the near future.

I between, you can try wxWidgets [4], Tkinter [5] and even GTK through pgi [6].

References:

0
Christian Tismer On

It has changed, although in the not-so-near future. You can install PySide 6.3 now on PyPy. See https://www.qt.io/blog/qt-for-python-details-on-the-new-6.3-release