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