[PyQt] Latest PyQt4 snapshot not installable

Giovanni Bajo rasky at develer.com
Sat Jul 7 22:06:22 BST 2007


On 07/07/2007 11.20, Detlev Offenbach wrote:

> python configure.py -c -j2
> 
> Traceback (most recent call last):
>   File "configure.py", line 1731, in <module>
>     main(sys.argv)
>   File "configure.py", line 1685, in main
>     pyqt.check_modules()
>   File "configure.py", line 227, in check_modules
>     check_module("QtGui", "qwidget.h", "new QWidget()")
>   File "configure.py", line 922, in check_module
>     if len(opts.enabled) > 0 and mname not in opts.enabled:
> TypeError: object of type 'NoneType' has no len()

Sorry about that!

Just add default=[] to the definition of the "-e" option around line 130, like 
this:

     g.add_option("-e", "--enable", action="append", metavar="MODULE", 
dest="enabled", default=[],
                  help="enable the specified MODULE "
                       "[default: all modules will be enabled]")

-- 
Giovanni Bajo



More information about the PyQt mailing list