Cannot start cfclient on mac

Post here to get support
Post Reply
ponkie
Beginner
Posts: 6
Joined: Thu Aug 08, 2019 11:18 am

Cannot start cfclient on mac

Post by ponkie »

Hi,

I am trying to start cfclient on mac. Installation seemed to go well using homebrew, but when I try to start using

Code: Select all

cfclient
I get the following error:

Code: Select all

AttributeError: __getattribute__

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/cfclient", line 11, in <module>
    load_entry_point('cfclient', 'console_scripts', 'cfclient')()
  File "/Users/kielen/Documents/crazyflie-clients-python/src/cfclient/gui.py", line 159, in main
    main_window = MainUI()
  File "/Users/kielen/Documents/crazyflie-clients-python/src/cfclient/ui/main.py", line 324, in __init__
    tab = tabClass(self.tabs, cfclient.ui.pluginhelper)
  File "/Users/kielen/Documents/crazyflie-clients-python/src/cfclient/ui/tabs/QualisysTab.py", line 182, in __init__
    self.setupUi(self)
  File "<string>", line 385, in setupUi
SystemError: <built-in function connectSlotsByName> returned a result with an error set
Any idea how I should continue debugging this?

Thanks,
Pontus
ponkie
Beginner
Posts: 6
Joined: Thu Aug 08, 2019 11:18 am

Re: Cannot start cfclient on mac

Post by ponkie »

By installing with

Code: Select all

pip3 install cfclient
instead of

Code: Select all

pip3 install -e .
I get it to work. I guess I will have to do without playing with the source code for now :)
kimberly
Bitcraze
Posts: 559
Joined: Fri Jul 06, 2018 11:13 am

Re: Cannot start cfclient on mac

Post by kimberly »

Hi!
Good that you were able to get it started, but it is still strange that the source install didn't work. Did you try to install the cflib before the cfclient?
ponkie
Beginner
Posts: 6
Joined: Thu Aug 08, 2019 11:18 am

Re: Cannot start cfclient on mac

Post by ponkie »

I think I did the opposite order, I can try again and see if it helps
ponkie
Beginner
Posts: 6
Joined: Thu Aug 08, 2019 11:18 am

Re: Cannot start cfclient on mac

Post by ponkie »

Changing the order of installation didn't help :/
ponkie
Beginner
Posts: 6
Joined: Thu Aug 08, 2019 11:18 am

Re: Cannot start cfclient on mac

Post by ponkie »

If I remove the QualisysTab from the __init__.py I can launch fine. Maybe it is a problem with space or arranging the tabs (I don't know anything about qt). What is in the QualisysTab?

EDIT: I see the tab is about the motion capuring system. I can live without it for now :)
ponkie
Beginner
Posts: 6
Joined: Thu Aug 08, 2019 11:18 am

Re: Cannot start cfclient on mac

Post by ponkie »

I have located the origin of the error in the git history to commit 2abd845a152bdfcc28db625ca617beac9ba04be2 with commit message is "All statuses are set through properties & signals". I will stop searching here, maybe someone with more insight into the code can figure it out :). Before this commit I could launch fine.
kimberly
Bitcraze
Posts: 559
Joined: Fri Jul 06, 2018 11:13 am

Re: Cannot start cfclient on mac

Post by kimberly »

Thanks for investigating it! It is probably worth to make a github issue out of this.

Could you also let me know your version of MAC OS? and anything you can thing of that can have an influence? The latest cfclient does work on the macs here in the office so it would be good information to fix this issue.
Post Reply