Page 1 of 1

Install on MacBook

Posted: Sun Jan 12, 2014 7:50 pm
by casackett
Hi, I'm trying to install the cfclient on a sort of old MacBook, running Snow Leopard. I'm trying to use homebrew for the install.

It has been a little interesting, but I've gotten to the point of compiling the client. I get this error:

Code: Select all

Traceback (most recent call last):
  File "bin/cfclient", line 92, in <module>
    cfclient.main()
  File "/Users/drsackett/cfclient-2013.4.2/lib/cfclient/cfclient.py", line 99, in main
    from ui.main import MainUI
  File "/Users/drsackett/cfclient-2013.4.2/lib/cfclient/ui/main.py", line 46, in <module>
    from dialogs.connectiondialogue import ConnectDialogue
  File "/Users/drsackett/cfclient-2013.4.2/lib/cfclient/ui/dialogs/connectiondialogue.py", line 44, in <module>
    connect_widget_class, connect_widget_base_class = uic.loadUiType(sys.path[0] + '/cfclient/ui/dialogs/connectiondialogue.ui')
  File "/usr/local/lib/python2.7/site-packages/PyQt4/uic/__init__.py", line 215, in loadUiType
    return (ui_globals[winfo["uiclass"]], getattr(QtGui, winfo["baseclass"]))
AttributeError: 'module' object has no attribute 'QWidget'
I don't know what to do with this, can anyone help?

Re: Install on MacBook

Posted: Wed Jan 15, 2014 5:16 pm
by arnaud
Hi,

Looks like something is wrong with your pyqt installation.

I just managed to get the client to run on a recent mac-pro with homebrew and after some frustration to get pygame it worked for both the dev version and the version you are trying to run. I don't know how to reproduce your problem.

You can try to get a bleeding edge version of the client (https://bitbucket.org/bitcraze/crazyfli ... efault.zip) to see it it hits the same bug.

Re: Install on MacBook

Posted: Sat Jan 18, 2014 3:48 pm
by casackett
Thanks, maybe I will try reinstalling pyqt, or the newer version you suggested. I'll post the results.