CrazyFlie PC client in VM 0.5 does not launch after update

Post here to get support
Post Reply
emlmarck
Beginner
Posts: 1
Joined: Fri Dec 05, 2014 6:58 pm

CrazyFlie PC client in VM 0.5 does not launch after update

Post by emlmarck »

Hello,

The PC-client version that comes with the VM works fine, however after I run the "Update All Repos" shortcut on the VM desktop the PC-client no longer opens. I am running the Bitcraze_VM_0.5 on my Macbook pro i7 in Parallels.

After trying to launch the cfClient from eclipse (see attached image) I noticed it was throwing an error:
CRITICAL: cfclient.cfclient:No pysdl2 installation found, exiting!
I tried to install pysdl2 using
sudo pip install pysdl2
on the command line, but the error persists.

I also tried building sdl2-2.03 and pysdl2 from source, but it still does not work.

I have reverted to the older cfclient in order to run my CF but I would like to be able update.

Thanks in advance.
eclipse_screenshot.jpg
here is the code from the git pull command:

Code: Select all

bitcraze@bitcraze-vm:~/projects/crazyflie-clients-python$ git pull
remote: Counting objects: 209, done.
remote: Compressing objects: 100% (162/162), done.
remote: Total 209 (delta 112), reused 95 (delta 46)
Receiving objects: 100% (209/209), 96.96 KiB | 0 bytes/s, done.
Resolving deltas: 100% (112/112), done.
From https://github.com/bitcraze/crazyflie-clients-python
   7d60532..df11969  master     -> origin/master
 * [new branch]      dev-cf2    -> origin/dev-cf2
 * [new branch]      develop    -> origin/develop
Updating 7d60532..df11969
Fast-forward
 .gitignore                                         |   1 +
 CMakeLists.txt                                     |   7 +
 README.md                                          |  31 ++--
 lib/cfclient/cfclient.py                           |   4 +-
 lib/cfclient/configs/input/Joystick.json           |  95 ++++++++++++
 .../configs/input/PS4_shoulder_btns_yaw.json       |  91 +++++++++++
 lib/cfclient/ui/dialogs/about.py                   |   2 +-
 lib/cfclient/ui/dialogs/inputconfigdialogue.py     |   1 -
 lib/cfclient/ui/tabs/GpsTab.py                     | 172 ++++++++++++++-------
 lib/cfclient/ui/tabs/gpsTab.ui                     | 138 ++++++++++++++++-
 lib/cfclient/utils/config_manager.py               |  56 ++++---
 lib/cfclient/utils/input.py                        |  62 +++++---
 lib/cfclient/utils/joystick/__init__.py            |  51 ------
 lib/cfclient/utils/joystick/constants.py           |  32 ----
 lib/cfclient/utils/joystick/jevent.py              |  42 -----
 lib/cfclient/utils/joystick/linuxjsdev.py          |   4 +-
 lib/cfclient/utils/joystick/pygamejoystick.py      | 103 ------------
 lib/cfclient/utils/logconfigreader.py              |   4 +-
 .../utils/{pygamereader.py => pysdl2reader.py}     | 107 ++++++++-----
 lib/cfheadless.py                                  |  13 ++
 lib/cflib/crtp/debugdriver.py                      |  45 ++++--
 package.xml                                        |  25 +++
 setup.py                                           |  98 +++++++-----
 23 files changed, 752 insertions(+), 432 deletions(-)
 create mode 100644 CMakeLists.txt
 create mode 100644 lib/cfclient/configs/input/Joystick.json
 create mode 100644 lib/cfclient/configs/input/PS4_shoulder_btns_yaw.json
 delete mode 100644 lib/cfclient/utils/joystick/__init__.py
 delete mode 100644 lib/cfclient/utils/joystick/constants.py
 delete mode 100644 lib/cfclient/utils/joystick/jevent.py
 delete mode 100644 lib/cfclient/utils/joystick/pygamejoystick.py
 rename lib/cfclient/utils/{pygamereader.py => pysdl2reader.py} (54%)
 create mode 100644 package.xml
whoenig
Expert
Posts: 395
Joined: Mon Oct 27, 2014 2:55 am

Re: CrazyFlie PC client in VM 0.5 does not launch after upda

Post by whoenig »

The following made it work for me on Ubuntu 14.04:

Code: Select all

sudo pip install pysdl2

Code: Select all

sudo apt-get install libsdl2-dev
I don't use the VM, but it would be nice if you could try the second command and see if it works out!
mitevva_t
Beginner
Posts: 1
Joined: Mon Oct 23, 2017 8:34 am

Re: CrazyFlie PC client in VM 0.5 does not launch after update

Post by mitevva_t »

Hi I am trying to get all the tools that are preinstalled on the Bitcraze VM but I am using Parallels. I don't know if I can get all this hacks on Parallels without instaling Bitcraze VM. I already installed eclipse and there is no make file option and flesh with debugger option as well.
Thanks !
Post Reply