Qt PyQt4 license incompatible

1 July 2009

PyQt-mac-gpl-4.5.1 has a bug in configure.py

It will complain that the license is incompatible between itself and the "Desktop" version of Qt.

The solution is to download a more recent snapshot (not the stable build at the top of the page, go further down the page). That compiles fine.

update: no, sadly it does not install completely. see below.

My eyes tend to glaze over when the license stuff comes up. I'm just playing around here, I'm not a lawyer.

$ python configure.py
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.5.1 (licensed under the GNU General Public
License) for Python 2.5.2 on darwin.
Error: This version of PyQt and the Desktop edition of Qt have incompatible
licenses.

This Qt SDK is what is referred to here as the Desktop Edition.

Uninstalling: Mac seems to have removed the ability of the Installer to Uninstall. You used to be able to double click on the .pkg that is left in /Library/Receipts and uninstall.

In any case in /Developer/Tools there is an uninstall-qtsdk.py script that nobody told nobody about. (ok, I guess it was mentioned in the Installer)

Now when installing the correct "framework only" version, take notice that you can select your license in the installer. select GPL.

When running PyQt configure.py you will be asked to agree to the terms of the license.

PyQt 4.5.2 fails to install on os x 10.4.11:

/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: can't locate file for: -lqpycore
collect2: ld returned 1 exit status
make[1]: [QtCore.so] Error 1
make:
[install] Error 2

Programming is for saps and asshats. Not sure why I'm wasting my time just trying to test some framework.


  • more posts in tech notes
    • django.db.utils.DatabaseError: relation "django_content_type" does not exist

      p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} I was getting an error while running unit tests and the test database was failing to be created.django.db.utils.DatabaseError: relation "django_content_type" does not existeventually found the problem.  I had the following in a file that was imported to a models.py:hrd_type = ContentType.objects.get_for_model(HttpReferrerDomain)The idea being that it can just set the var when it loads up and after that its always there.  But this means for creating a fresh database, the db is ...

    • django has two classes called ValidationError

      There is one in django.core.exceptions and one in django.forms.util Using that space age IDE Eclipse I have to say I'm enjoying how much time I've saved just going shift-command-O to organize and resolve all of my imports.  But today I've just lost a few hours due to my ok-ing the wrong class. Quite mysterious it was, I raised a ValidationError (core exceptions one) in my form's clean() and watched as the try: except ValidationError: in django's full_clean() completely ignored my ...

    • GDAL fails to build: `.rodata' can not be used when making a shared object; recompile with -fPIC

        libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtbeginS.o .libs/libgdal.la.lnkscript  -L/usr/local/lib /usr/local/lib/libgeos_c.so /usr/local/lib/libgeos.so /usr/local/lib/libexpat.so -L/usr/lib -lpq -lrt -ldl /usr/lib/libcurl.so -lssl -lcrypto -lz -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1 -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/crtn.o         -Wl,-soname -Wl,libgdal.so.1 -o .libs/libgdal.so.1.13.2 /usr/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libz.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [libgdal.la] Error 1 make[1]: Leaving directory `/home/crucial/tmp/gdal-1.6.2' ...

    • installing MySQLdb on Ubuntu (mysql-python)

      MySQLdb is the python support bindings for MySQL.  Not that the name would lead you to beleive that. Its sourceforge page calls it http://sourceforge.net/projects/mysql-python/ which makes more sense. you need setuptools, which you usually already have:     sudo aptitude install python-setuptools You need MySQL-devel to compile, but its not called that, its called: libmysql++-dev on Ubuntu     sudo apt-get install libmysql++-dev download MySQLdb itself from:     http://sourceforge.net/projects/mysql-python/     # the version you download will be more recent     tar xfz ...

    • Full index for tech notes
Downward Spiral (Timeblind Remix) Timeblind : Divided by Zero
Backwardation : Version 12"