-
Notifications
You must be signed in to change notification settings - Fork 479
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
no pysdl2 installation found - Mac & Win #592
Comments
Hi! Did you install it the client from source or the latest release? And the python environment venv, does that only contain cfclient related packages or also other ones from other development environments? |
The screenshots above are the ways the instructions that I followed for installation. I have tried PyCharm and Anaconda. As for your second question, it contains packages from other development environments (to the best of my knowledge) both for Anaconda and PyCharm. For example, below, I see the cfclient within the Anaconda IDE, but when I search for the dl2 package, it is not coming up, no matter how many times I reinstall it. Thank you for your time! @knmcguire |
So it is not super clear which way you installed the cfclient (source or from release (pip)) but I assume you installed it with
Could you check with |
I had the same problem and it was solved by installing the pysdl packages above mentioned. |
I just confirmed that this is also a problem in a fresh pip environment for windows... So you would need to do: It is weird that the setup.py doesn't do this but we should have caught this with the release testing 2 weeks ago, so we would need to do another release relatively soon. |
Just an comment on this: with Win11 and python 3.10, installing it from source, this issue does not happen. Same with installing it directly from pip |
Is it should be: |
ah yes seemed to be a typo indeed. You are right. |
The problem with this issue that this line in setup.py is not handled properly, but there is no idea why this happens. The ifstatement should still hold... crazyflie-clients-python/setup.py Lines 78 to 79 in 45ba7e6
|
I found this https://til.simonwillison.net/python/platform-specific-dependencies post of how to make platform dependent requirements. Maybe this will solve the problem? |
Fixed in #649 |
Unfortunately, when testing this on Windows 11, with an python 3.8 installed through the windows store, the problem remains that pysdl2 is not installed on windows. Hence why I'm reopening it. |
nevermind... that was an older version of the cfclient! now it works with the release candidate |
Hello everyone, I am currently on macOS Monterey, and I am trying to launch the cfclient to use the antenna and gamepad, but I am running into this issue.
(venv) (base) juanjimenez@Juans-MBP-3 crazyflie-clients-python % cfclient CRITICAL:cfclient.gui:No pysdl2 installation found, #exiting! (venv) (base) juanjimenez@Juans-MBP-3 crazyflie-clients-python %
I am using the PyCharm IDE and also tried it on the terminal. I also tried to install dl2 on the pip install and uninstalled and reinstalled it.
#259 - Was referenced
Any guidance will help! Thank you
The text was updated successfully, but these errors were encountered: