<div dir="ltr">No it isn't set in my <span style="font-size:12.8000001907349px">~/.bash_profile it comes from elsewhere.</span><div><span style="font-size:12.8000001907349px">I did :</span></div><div><span style="font-size:12.8000001907349px">set PYTHONPATH to '' in my "</span><span style="font-size:12.8000001907349px">~/.bash_profile", restart the computer and try again, the results :</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">LO still crash when launched by dobleclick;</span></div><div><span style="font-size:12.8000001907349px">Lo works fine when launched by command line.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">actually i do have :</span></div><div><div style><span style="font-size:12.8000001907349px">.-[yt@d620.local:~]-[12:08:41]                                                                                                                                           </span></div><div style><span style="font-size:12.8000001907349px">'->$ echo $PYTHONPATH</span></div><div style><span style="font-size:12.8000001907349px"><br></span></div><div style><span style="font-size:12.8000001907349px">.-[yt@d620.local:~]-[12:11:50]                                                                                                                                           </span></div><div style><span style="font-size:12.8000001907349px">'->$ </span></div><div style="font-size:12.8000001907349px"><br></div></div><div style="font-size:12.8000001907349px">that's to say PYTHONPATH is empty on terminal.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">for the time being, i did a small AppleScript Launcher for LO as a workaound:</div><div style="font-size:12.8000001907349px">







<p class=""><b>set</b> <span class="">stdout</span> <b>to</b> <span class=""><b>do shell script</b></span> "export PYTHONPATH=''; /Applications/LibreOffice.app/Contents/MacOS/soffice"</p>
<p class=""><span class="">{</span>stdout<span class="">}</span></p><p class=""><span class="">it works when dobleclicking...</span></p><p class=""><br></p></div><div><span style="font-size:12.8000001907349px"><br></span></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><font face="'comic sans ms', sans-serif" size="4" color="#cc0000"><i><b>--</b></i></font></div><div><font face="'comic sans ms', sans-serif" size="4" color="#cc0000"><i><b>YT</b></i></font></div><div><br></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2015-01-29 12:00 GMT+01:00 Stephan Bergmann <span dir="ltr"><<a href="mailto:sbergman@redhat.com" target="_blank">sbergman@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 01/29/2015 06:48 AM, Yvon Thoraval wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$ /Applications/LibreOffice.app/<u></u>Contents/MacOS/soffice<br>
Your PYTHONPATH points to a site-packages dir for Python 2.x but you are<br>
running Python 3.x!<br>
      PYTHONPATH is currently:<br>
"/Applications/LibreOffice.<u></u>app/Contents/MacOS/../MacOS/<u></u>LibreOfficePython.framework/<u></u>Versions/Current/lib/python3.<u></u>3:/Applications/LibreOffice.<u></u>app/Contents/MacOS/../MacOS/<u></u>LibreOfficePython.framework/<u></u>Versions/Current/lib/python3.<u></u>3/lib-dynload:/Applications/<u></u>LibreOffice.app/Contents/<u></u>MacOS/../MacOS/<u></u>LibreOfficePython.framework/<u></u>Versions/Current/lib/python3.<u></u>3/lib-tk:/Applications/<u></u>LibreOffice.app/Contents/<u></u>MacOS/../MacOS/<u></u>LibreOfficePython.framework/<u></u>Versions/Current/lib/python3.<u></u>3/site-packages:/Applications/<u></u>LibreOffice.app/Contents/<u></u>MacOS/../MacOS:/usr/local/lib/<u></u>python2.7/site-packages:/usr/<u></u>local/lib/python2.7/site-<u></u>packages"<br>
      You should `unset PYTHONPATH` to fix this.<br>
<br>
<br>
Then, I set PYTHONPATH to '' and LO works great.<br>
<br>
However i wonder how to fix this definitely. because i don't plan using LO<br>
from cli.<br>
</blockquote>
<br></span>
soffice prepends its own paths to the PYTHONPATH env var (prependPythonPath in pyuno/source/loader/pyuno_<u></u>loader.cxx), that's where the leading "/Applications/LibreOffice.<u></u>app/Contents/MacOS/../MacOS/<u></u>LibreOfficePython.framework/<u></u>Versions/Current/lib/python3.<u></u>3:[...]:/Applications/<u></u>LibreOffice.app/Contents/<u></u>MacOS/../MacOS" part is coming from.<br>
<br>
But the remaining, apparently problematic "/usr/local/lib/python2.7/<u></u>site-packages:/usr/local/lib/<u></u>python2.7/site-packages" part must come from your environment, likely set in your ~/.bash_profile?<br>
<br>
</blockquote></div><br></div>