Page 1 of 1

Cannot start cfclient on mac

Posted: Thu Aug 08, 2019 11:30 am
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

Re: Cannot start cfclient on mac

Posted: Thu Aug 08, 2019 1:48 pm
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 :)

Re: Cannot start cfclient on mac

Posted: Fri Aug 09, 2019 7:05 am
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?

Re: Cannot start cfclient on mac

Posted: Sat Aug 10, 2019 2:16 pm
by ponkie
I think I did the opposite order, I can try again and see if it helps

Re: Cannot start cfclient on mac

Posted: Sat Aug 10, 2019 2:26 pm
by ponkie
Changing the order of installation didn't help :/

Re: Cannot start cfclient on mac

Posted: Sat Aug 10, 2019 2:34 pm
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 :)

Re: Cannot start cfclient on mac

Posted: Sat Aug 10, 2019 3:33 pm
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.

Re: Cannot start cfclient on mac

Posted: Mon Aug 12, 2019 8:32 am
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.