Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


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?


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.