[Qgis-developer] qgis.gui crash on mac os x 10.4

William Kyngesburye woklist at kyngchaos.com
Tue Sep 11 18:14:22 EDT 2007


On Sep 11, 2007, at 11:16 AM, Luca Mandolesi wrote:

> Hi William,
> the path it's right beacause I can import succesfully qgis.core.
>
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.

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).

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike.  Cheating, murdering, lying,  
fighting, and all for things that the beasts of the jungle would not  
deign to possess - money to purchase the effeminate pleasures of  
weaklings.  And yet withal bound down by silly customs that make them  
slaves to their unhappy lot while firm in the belief that they be the  
lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan





More information about the Qgis-developer mailing list