Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PySide2 incompatibility with Python 3.11 #436

Closed
obilodeau opened this issue Jun 15, 2023 · 4 comments · Fixed by #453
Closed

PySide2 incompatibility with Python 3.11 #436

obilodeau opened this issue Jun 15, 2023 · 4 comments · Fixed by #453
Labels
bug Something isn't working help wanted Extra attention is needed investigate Needs more thought / experience workaround A workaround exists for this bug
Milestone

Comments

@obilodeau
Copy link
Collaborator

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 obilodeau added bug Something isn't working help wanted Extra attention is needed investigate Needs more thought / experience workaround A workaround exists for this bug labels Jun 15, 2023
@obilodeau obilodeau added this to the v1.3.0 milestone Jun 27, 2023
@obilodeau
Copy link
Collaborator Author

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

@TiddlyWiddly
Copy link

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

@obilodeau
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed investigate Needs more thought / experience workaround A workaround exists for this bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants