Crazyflie Client does not start

Post here to get support
Newk
Beginner
Posts: 27
Joined: Sun Oct 23, 2016 1:53 pm
Location: Rotterdam / Berlin
Contact:

Re: Crazyflie Client does not start

Post by Newk » Thu Nov 03, 2016 12:24 am

awesome! this sure will open up some interesting tinkering and can save us loads of time figuring out what thrust-level equals which frequency.
Loads of fun incoming :twisted:
thank you for pointing at the code



binx
Beginner
Posts: 11
Joined: Tue Feb 07, 2017 4:42 am

Re: Crazyflie Client does not start

Post by binx » Tue Feb 07, 2017 4:47 am

Newk wrote:ok, just had to make it current directory:

Code: Select all

newk@A7U:~/crazyflie2-install/crazyflie-clients-python$ cd bin
newk@A7U:~/crazyflie2-install/crazyflie-clients-python/bin$ dir
cfclient  cfheadless  cfloader	cfzmq
newk@A7U:~/crazyflie2-install/crazyflie-clients-python/bin$ ./cfclient
but now it seems i missed something when i installed it..

Code: Select all

newk@A7U:~/crazyflie2-install/crazyflie-clients-python/bin$ ./cfclient
INFO:cfclient.gui:Disabling STL printouts
INFO:cfclient.utils.input.inputreaders:Input readers: ['linuxjsdev', 'pysdl2']
INFO:cfclient.utils.input.inputreaders:Successfully initialized [linuxjsdev]
INFO:cfclient.utils.input.inputreaders:Could not initialize [pysdl2]: No SDL2 support on Linux
INFO:cfclient.utils.input.inputinterfaces:Found interfaces: ['leapmotion', 'wiimote', 'zmqpull']
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [leapmotion]: Leap Motion library probably not installed (No module named 'leapsdk')
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [wiimote]: Missing cwiid (wiimote) driver No module named 'cwiid'
INFO:cfclient.utils.config:Dist config read from /home/newk/crazyflie2-install/crazyflie-clients-python/src/cfclient/configs/config.json
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [zmqpull]: ZMQ input disabled in config file
INFO:cfclient.utils.zmq_param:Biding ZMQ for parameters at tcp://*:1213
INFO:cfclient.utils.zmq_led_driver:Biding ZMQ for LED driverat tcp://*:1214
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
INFO:cflib.crtp.radiodriver:v0.53 dongle with serial N/A found
INFO:cfclient.utils.input:Selected MUX: Normal
INFO:cfclient.ui.main:Role of Microsoft X-Box 360 pad is Device
INFO:cfclient.utils.input.mux:Adding device Microsoft X-Box 360 pad to MUX Normal
INFO:cfclient.ui.main:Select first device
INFO:cflib.drivers.cfusb:Looking for devices....
Segmentation fault (core dumped)
the segmentation fault happens when i click the window border

after i read it's missing pysdl2
i searched in repositories of ubuntu 16.04 and only found pysdl2-doc

but i then found python-sdl2 and python3-sdl2
i installed both of them just to make sure

but it didn't change cfclient not finding pysdl2
do i need to rebuild/reinstall it?

Hi Newk, I found a same problem as you have encountered, that is No module named 'cfclient'. How did you solve this problem?

graboosky
Beginner
Posts: 15
Joined: Mon Jan 27, 2020 8:11 am

Re: Crazyflie Client does not start

Post by graboosky » Mon Jan 27, 2020 8:15 am

Hi, I think I might meet similar problem, could you point me what is wrong? I am on mac osx and that is what I can see after typing `cfclient` in terminal:

Code: Select all

Patryks-Mac:~ patryk_grabowski$ cfclient
INFO:cfclient.gui:Disabling STL printouts
INFO:cfclient.gui:Foundation not found. Menu will show python as application name
INFO:cfclient.utils.input.inputreaders:Input readers: ['linuxjsdev', 'pysdl2']
INFO:cfclient.utils.input.inputreaders:Could not initialize [linuxjsdev]: Only supported on Linux
INFO:cfclient.utils.input.inputreaders:Successfully initialized [pysdl2]
INFO:cfclient.utils.input.inputinterfaces:Found interfaces: ['leapmotion', 'wiimote', 'zmqpull']
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [leapmotion]: Leap Motion library probably not installed (No module named 'leapsdk')
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [wiimote]: Missing cwiid (wiimote) driver No module named 'cwiid'
INFO:cfclient.utils.config:Dist config read from /Users/patryk_grabowski/Documents/Repositories/crazyflie-clients-python/src/cfclient/configs/config.json
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [zmqpull]: ZMQ input disabled in config file
INFO:cfclient.ui.main:This is a MAC - checking if we can apply Progress Bar Stylesheet for Yosemite Skinny Bars 
INFO:cfclient.ui.main:Found Yosemite - applying stylesheet
INFO:cfclient.utils.zmq_param:Biding ZMQ for parameters at tcp://*:1213
INFO:cfclient.utils.zmq_led_driver:Biding ZMQ for LED driverat tcp://*:1214
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
===== 2020.01.27 09:01:46 =====
Traceback (most recent call last):
  File "/usr/local/bin/cfclient", line 11, in <module>
    load_entry_point('cfclient', 'console_scripts', 'cfclient')()
  File "/Users/patryk_grabowski/Documents/Repositories/crazyflie-clients-python/src/cfclient/gui.py", line 159, in main
    main_window = MainUI()
  File "/Users/patryk_grabowski/Documents/Repositories/crazyflie-clients-python/src/cfclient/ui/main.py", line 201, in __init__
    self._mux_group = QActionGroup(self._menu_inputdevice, exclusive=True)
TypeError: 'exclusive' is an unknown keyword argument
Patryks-Mac:~ patryk_grabowski$ 
Have no idea what is happen there:/

kimberly
Bitcraze
Posts: 250
Joined: Fri Jul 06, 2018 11:13 am

Re: Crazyflie Client does not start

Post by kimberly » Mon Jan 27, 2020 12:42 pm

@Binx Seems like cfclient has not been installed on your system... Did you follow the steps on the github read-me? Could you please start a new forum thread if you are still encountering a problem, since this seems to be a different issue than @Graboosky has encountered.

@Graboosky. Could you try to remove and reinstall your client? This also contain instructions how to install it on a Mac (https://github.com/bitcraze/crazyflie-clients-python), so please check if you installed all packages. If it still does not work, please start a new forum thread. This makes it easier for us to help you.

graboosky
Beginner
Posts: 15
Joined: Mon Jan 27, 2020 8:11 am

Re: Crazyflie Client does not start

Post by graboosky » Sun Feb 02, 2020 7:38 am

Thanks. I will try to reinstall all dependencies and if not help I will start a new thread.

Post Reply