No it isn't set in my ~/.bash_profile it comes from elsewhere. I did : set PYTHONPATH to '' in my "~/.bash_profile", restart the computer and try again, the results :
LO still crash when launched by dobleclick; Lo works fine when launched by command line. actually i do have : .-[yt@d620.local:~]-[12:08:41] '->$ echo $PYTHONPATH .-[yt@d620.local:~]-[12:11:50] '->$ that's to say PYTHONPATH is empty on terminal. for the time being, i did a small AppleScript Launcher for LO as a workaound: *set* stdout *to* *do shell script* "export PYTHONPATH=''; /Applications/LibreOffice.app/Contents/MacOS/soffice" {stdout} it works when dobleclicking... *--* *YT* 2015-01-29 12:00 GMT+01:00 Stephan Bergmann <sberg...@redhat.com>: > On 01/29/2015 06:48 AM, Yvon Thoraval wrote: > >> $ /Applications/LibreOffice.app/Contents/MacOS/soffice >> Your PYTHONPATH points to a site-packages dir for Python 2.x but you are >> running Python 3.x! >> PYTHONPATH is currently: >> "/Applications/LibreOffice.app/Contents/MacOS/../MacOS/ >> LibreOfficePython.framework/Versions/Current/lib/python3. >> 3:/Applications/LibreOffice.app/Contents/MacOS/../MacOS/ >> LibreOfficePython.framework/Versions/Current/lib/python3. >> 3/lib-dynload:/Applications/LibreOffice.app/Contents/MacOS/../MacOS/ >> LibreOfficePython.framework/Versions/Current/lib/python3. >> 3/lib-tk:/Applications/LibreOffice.app/Contents/MacOS/../MacOS/ >> LibreOfficePython.framework/Versions/Current/lib/python3. >> 3/site-packages:/Applications/LibreOffice.app/Contents/ >> MacOS/../MacOS:/usr/local/lib/python2.7/site-packages:/usr/ >> local/lib/python2.7/site-packages" >> You should `unset PYTHONPATH` to fix this. >> >> >> Then, I set PYTHONPATH to '' and LO works great. >> >> However i wonder how to fix this definitely. because i don't plan using LO >> from cli. >> > > soffice prepends its own paths to the PYTHONPATH env var > (prependPythonPath in pyuno/source/loader/pyuno_loader.cxx), that's where > the leading "/Applications/LibreOffice.app/Contents/MacOS/../MacOS/ > LibreOfficePython.framework/Versions/Current/lib/python3. > 3:[...]:/Applications/LibreOffice.app/Contents/MacOS/../MacOS" part is > coming from. > > But the remaining, apparently problematic "/usr/local/lib/python2.7/ > site-packages:/usr/local/lib/python2.7/site-packages" part must come from > your environment, likely set in your ~/.bash_profile? > >
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice