[Qgis-developer] qgis.gui crash on mac os x 10.4
Luca Mandolesi
mandoluca at gmail.com
Wed Sep 12 06:05:55 EDT 2007
> Are you running the Python stuff from within Qgis? Or from a
> Terminal without Qgis running? Qgis adds its internal python to the
> sys.path automatically, so that's probably why core loads if run from
> Qgis.
I'm running python from IDLE out from QGIS.
>
> Even so, sys.path.append adds to the end of the search list, so the
> Qgis bundle will be searched last, and your installed PyQt/SIP will
> be found first. A better way might be to insert instead of append.
> Try this instead of the sys.path.append:
>
> sys.path.insert(1,'/Applications/qgis0.9.0.app/Contents/MacOS/share/
> qgis/python')
>
> This should put it at the beginning of the search list, but after the
> script path (item 0).
> sys.path.insert(1,'/Applications/qgis0.9.0.app/Contents/MacOS/share/
> qgis/python')
Great! It was the problem!
Now I can launch correctly the Martin Dobias tutorial!
Thanks, thanks a lot!
More information about the Qgis-developer
mailing list