GoSecure / pyrdp

RDP monster-in-the-middle (mitm) and library for Python with the ability to watch connections live or after the fact
https://www.gosecure.net/blog/2020/10/20/announcing-pyrdp-1/
GNU General Public License v3.0
1.47k stars 244 forks source link

PySide2 incompatibility with Python 3.11 #436

Closed obilodeau closed 7 months ago

obilodeau commented 1 year ago

PySide2 is explicitly incompatible with Python 3.11. When doing a pip install full of PyRDP on a 3.11 install:

ERROR: Could not find a version that satisfies the requirement PySide2<6,>=5.12; extra == "full" (from pyrdp[full]) (from versions: none)
ERROR: No matching distribution found for PySide2<6,>=5.12; extra == "full"

From https://pypi.org/project/PySide2/:

image

QT (maintainers of PySide) are saying that 5.15.11 is now LTS which is no longer available in built form... See https://forum.qt.io/topic/144843/pyside2-shiboken2-support-for-python-3-11.

We will need to consider migrating to QT6 eventually...

As a workaround, make sure to install a 3.10.x Python.

obilodeau commented 1 year ago

Appears to only affect Windows since I installed PyRDP from source with python 3.11 today

TiddlyWiddly commented 1 year ago

Affects newest version of Kali on M1 too, unfortunately...

obilodeau commented 1 year ago

Affects newest version of Kali on M1 too, unfortunately...

To be precise, it affects all versions of Kali M1 since PySide2 is not built for the M1 architecture: https://forum.qt.io/topic/124289/mac-m1-pyside-2-6-can-t-install-lib/12.

This would be a different issue but with the same fix.

obilodeau commented 7 months ago

Affects newest version of Kali on M1 too, unfortunately...

@TiddlyWiddly you can try Kali on M1 again on master. It should work now.