[Qgis-developer] QGIS 0.9 on windows: QgsApplication.setPrefixPath() has an invalid type

Jesse Ayers jrayers at u.washington.edu
Tue Jul 31 14:18:54 EDT 2007


When attempting to run the \2_basic_main_window\mainwindow.py script from
the tutorials available here:
http://mapserver.sk/~wonder/qgis/tutorials.tar.gz

I receive this error:

Traceback (most recent call last):
  File "mainwindow.py", line 110, in <module>
    main(sys.argv)
  File "mainwindow.py", line 94, in main
    QgsApplication.setPrefixPath(qgis_prefix, True)
TypeError: argument 1 of QgsApplication.setPrefixPath() has an invalid type

Looking here
(http://svn.qgis.org/api_doc/html/classQgsApplication.html#4f540de6bcbc9ec14
dcf0499a9371c42) it would appear that a string is expected, which is what
the mainwindow.py script above passes.

Any ideas on solving this?

Thanks in advance

--
Jesse Ayers
Center for Urban Simulation and Policy Analysis
University of Washington
www.urbansim.org





More information about the Qgis-developer mailing list