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

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.



Solution 1:[1]

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:

Solution 2:[2]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Christian Tismer