cfclient fails to start

Post here to get support
Post Reply
tintin
Member
Posts: 30
Joined: Sun Feb 16, 2020 2:00 pm

cfclient fails to start

Post by tintin »

Hi,
after recently updating/pulling the cfclient source the client gui fails to start under Linux Mint 20.1
I've tried reinstalling the client but that didn't help either.

Here's the console output:

python3 -m cfclient.gui
INFO:__main__: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/ngl/Development/bitcraze/crazyflie-clients-python/src/cfclient/configs/config.json
INFO:cfclient.utils.config:Config file read from [/home/ngl/.config/cfclient/config.json]
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [zmqpull]: ZMQ input disabled in config file
===== 2021.02.05 11:02:28 =====
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/ngl/Development/bitcraze/crazyflie-clients-python/src/cfclient/gui.py", line 197, in <module>
main()
File "/home/ngl/Development/bitcraze/crazyflie-clients-python/src/cfclient/gui.py", line 164, in main
from .ui.main import MainUI
File "/home/ngl/Development/bitcraze/crazyflie-clients-python/src/cfclient/ui/main.py", line 34, in <module>
import cfclient.ui.tabs
File "/home/ngl/Development/bitcraze/crazyflie-clients-python/src/cfclient/ui/tabs/__init__.py", line 44, in <module>
from .lighthouse_tab import LighthouseTab
File "/home/ngl/Development/bitcraze/crazyflie-clients-python/src/cfclient/ui/tabs/lighthouse_tab.py", line 43, in <module>
from cflib.crazyflie.mem.lighthouse_memory import LighthouseMemHelper
ImportError: cannot import name 'LighthouseMemHelper' from 'cflib.crazyflie.mem.lighthouse_memory' (/home/ngl/.local/lib/python3.8/site-packages/cflib/crazyflie/mem/lighthouse_memory.py)
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: cfclient fails to start

Post by kimberly »

Hi!

There are a lot of changes happening now with both the cfclient and the cflib, so you will need to get the very latest version of the cflib as well.

If you are not focussed in developing cfclient or the cflib, it would be better to revert the source to latest release tag and try again.
tintin
Member
Posts: 30
Joined: Sun Feb 16, 2020 2:00 pm

Re: cfclient fails to start

Post by tintin »

Hi,
o.k., thanks for the info and the suggestion. Would it also help to use the version available via snap?
tintin
Member
Posts: 30
Joined: Sun Feb 16, 2020 2:00 pm

Re: cfclient fails to start

Post by tintin »

I've just installed the cflib from source. Now everything seems to work again.
Thanks again for pointing me towards this dependency!
Post Reply