[PyQt] sip --configuration error

Sebastian Elsner sebastianelsner at freenet.de
Tue Jun 3 11:45:47 BST 2014


Hello,

I was just trying out the --configure flag on sip and get a strange error:

R:\libraries\sip-4.16>python configure.py --configuration sip.config
This is SIP 4.16 for Python 2.6.6 on win32.
Reading configuration from R:\libraries\sip-4.16\sip.config...
An internal error occured.  Please report all the output from the program,
including the following traceback, to support at riverbankcomputing.com.
Traceback (most recent call last):
   File "configure.py", line 870, in <module>
     main(sys.argv)
   File "configure.py", line 794, in main
     update_from_configuration_file(opts.config_file)
   File "configure.py", line 536, in update_from_configuration_file
     parts = l.split('=', maxsplit=1)
TypeError: split() takes no keyword arguments

the line it fails on is this (first line):

py_major = 2


according to the docs split does take that keyword argument... If 
removed that bit of code works.

Cheers

Sebastian


More information about the PyQt mailing list