Bug 168739 - Mac OS : can't connect to Libreoffice or launch python in Terminal
Summary: Mac OS : can't connect to Libreoffice or launch python in Terminal
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
25.8.1.1 release
Hardware: x86-64 (AMD64) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-08 08:36 UTC by Dorange-Pattoret Didier
Modified: 2025-12-15 16:29 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
RunBasicMacro for testings (1.46 KB, text/x-python)
2025-10-08 08:39 UTC, Dorange-Pattoret Didier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dorange-Pattoret Didier 2025-10-08 08:36:21 UTC
Description:
It's not possible to connect to LO since LO25.8
It's a regression.

It works fine until LO25.2


Steps to Reproduce:
1.Create a Main macro in Standard.Module1 like
Function Main(myParam)
   Print myParam
   Main = myParam & "return"
End Function
2.Put the RunBasicMacro.py in your home folder
3. Write in a terminal /Applications/LibreOffice.app/Contents/Resources/python '/Users/didier/Documents/RunBasicMacro.py' 'Standard.Module1.Main' 'MonDidou'
4. Adapt file and command line to your configuration
5. Click Enter in the terminal

Actual Results:
Kill 9

Expected Results:
The message from Print and MonDidou in the terminal


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Run with : 
Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 4; OS: macOS 14.4.1; UI render: Skia/Raster; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

Do'nt run with :
Version: 25.8.1.1 (X86_64)
Build ID: 54047653041915e595ad4e45cccea684809c77b5
CPU threads: 4; OS: macOS 14.4.1; UI render: Skia/Raster; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded
Comment 1 Dorange-Pattoret Didier 2025-10-08 08:39:13 UTC
Created attachment 203199 [details]
RunBasicMacro for testings

For testing
Comment 2 Dorange-Pattoret Didier 2025-10-20 11:41:06 UTC
Hello Everybody,
Someone to confirm the bug - regression ?

Thanks in advance.
Didier DP.
Comment 3 Dorange-Pattoret Didier 2025-10-21 08:52:09 UTC
Hello,

Simply try in Terminal :
cd /Applications/LibreOffice.app/Contents/Resources/../Resources
./python

It works (in MacOs) with LO25.2 but not with 25.8

It's a real regression ...

Thanks for your help.
Comment 4 Matthias Knäppper 2025-11-15 10:10:44 UTC
To whom it may concern,

I can't confirm that this is a solution.
Here is what happens on my macbook. In contrast to the ticket description my may runs with an ARM processor.

cd /Applications/LibreOffice.app/Contents/Resources/../Resources
pwd
/Applications/LibreOffice.app/Contents/Resources
./python 
Killed: 9

All hints I followed up to now like executing a codesign or what ever did not lead to successful python prompt.

It would be a pleasure if someone would have solution for this issue....

Thanks in advance.

Matthias
Comment 5 Andy Wood 2025-12-15 16:29:49 UTC
Hi there

I also see this in LibreOffice 25.8.3 installed from DMG on macOS on 14.7.8.

Running `/Applications/LibreOffice.app/Contents/Resources/python` gives `zsh: killed`.  However, I also get a 'LibreOfficePython quit unexpectedly.' dialog and clicking on Report... gives:

```
Hardware Model:      Mac14,10
Process:             LibreOfficePython [6845]
Path:                /Applications/LibreOffice.app/Contents/Frameworks/LibreOfficePython.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/LibreOfficePython
Identifier:          org.python.libreofficepython
Version:             3.11.14 (3.11.14)
Code Type:           ARM-64 (Native)
```

```
Exception Type:  EXC_CRASH (SIGKILL (Code Signature Invalid))
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: CODESIGNING 4 Launch Constraint Violation
```

I am attempting to use `import uno` for development.