| Summary: | Blank character in LibreOffice installation directory leads to error message when bootstrapping from Python script | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Hossein <hossein> |
| Component: | sdk | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | aron.budea, ilmari.lauhakangas, mihai.vasiliu.93 |
| Priority: | medium | ||
| Version: | 7.6.0.3 release | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | target:24.8.0 | ||
| Crash report or crash signature: | Regression By: | ||
| Attachments: |
A sample Python scripts that uses bootstrap() method
Screenshot of error dialog box, which says soffice.exe does not exist |
||
|
Description
Hossein
2023-09-08 22:44:20 UTC
Created attachment 189445 [details]
Screenshot of error dialog box, which says soffice.exe does not exist
You are barking the wrong tree… This is neither a bug of Libreoffice nor python. (In reply to Werner Tietz from comment #2) > You are barking the wrong tree… > This is neither a bug of Libreoffice nor python. 1) In the bug report it is stated that the problem is from the "LibreOffice SDK", and not the LibreOffice program itself or even Python. 2) If you claim it is not a correct bug filing, you have to describe what you mean exactly, pointing to the possible problems. 3) In simple words, to reproduce the problem, you only have to run the internal python, and then invoke bootstrap() function: C:\>"c:\Program Files\LibreOffice\program\python.exe" Python 3.8.17 (default, Aug 9 2023, 17:36:19) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import officehelper >>> officehelper.bootstrap() And you will see the error message. (In reply to Hossein from comment #3) > C:\>"c:\Program Files\LibreOffice\program\python.exe" > Python 3.8.17 (default, Aug 9 2023, 17:36:19) [MSC v.1929 64 bit (AMD64)] > on win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> import officehelper > >>> officehelper.bootstrap() > > And you will see the error message. Repro. If using PowerShell, launch with &("c:\Program Files\LibreOffice\program\python.exe") Alain Romedenne committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/d8978a8c4ffabd6b36a691fd3e2df68563808234 tdf#116156 tdf#157162 tdf#159528 Fix glitches in officehelper.py It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. |