-
Notifications
You must be signed in to change notification settings - Fork 16
Code Highlighter extension for LibreOffice is not working on macOS High Sierra #14
Comments
Also, trying to install it by opening the .oxt file from the UI sends LibreOffice to 160% CPU use, no longer answering the system. Had to kill it. |
hi, I have solved the problem loading pygments in the right place. import pip
pip.main(['install', 'pygments']) Take also a look at issue #10 . max |
I have Mac High Sierra If open python shell from: and execute your code:
Obtain he error:
The Makefile is on /Applications/LibreOffice.app/Contents/Frameworks/LibreOfficePython.framework/Versions/3.5/lib/python3.5/config-3.5m/Makefile not in the other folder How can I resolve the problem? |
Hi, $ sudo /Applications/LibreOffice.app/Contents/Resources/python |
@masalinas try the following:
If you run into permissions issues when creating the symbolic links above you might want to prefix the commands with And then run as suggested:
|
this worked for me on macOS Catalina. thank you. |
I'm experiencing a problem here as well. I'm running OS X 10.11.6 with LibreOffice v 6.4.0.3. So, when I attempt to install 'pygments' by invoking pip directly (as in the top of the first post in this thread) I get a completely different error.
Then, I run into problems with the very last line with the command to install pigments. I get this error:
(This is after I created the symbolic links...) All the files appear to be properly installed, and this is a fresh install of LibreOffice. Perhaps the problem is that I'm not entirely sure what this means:
I have interpreted it to mean that I need to run the command while running python which is contained in LibreOffice. However, it could also mean that I need to be running the LibreOffice app and somehow execute a script containing that command. However, I am not familiar with how to summon a console in LibreOffice and I don't know how else I could run a script in the app. So, I proceeded with the assumption that my first interpretation must be correct since the alternate interpretation seems impossible. But it's distinctly possible that this is my problem. I'd be very grateful for any ideas, insight, pointers or assistance! THANK YOU! |
I tried to use the Code Highlighter extension with LibreOffice 5.4.2.2 on macOS 10.13 High Sierra. The extension installs without error. However, formatting source code fails, as the extension doesn't find pygments. LibreOffice.app on macOS has Python 3.5 embedded. Therefore, I tried to install it with the embedded
pip3.5
version. However, this fails with the following errors:The text was updated successfully, but these errors were encountered: