Description: Python macro stopped functioning while Basic counterpart still works fine Steps to Reproduce: 1. display table relationships menu. Remove any present relations between tables, tables should exhibit no relationships. 2. run 'SetRelationships' Python script 3. check that 2 relations have been set 3. Actual Results: Python script fails: com.sun.star.uno.RuntimeException: Error during invoking function SetRelationships in module vnd.sun.star.tdoc:/58078120/Scripts/python/Relationships.py (<class 'AttributeError'>: 'NoneType' object has no attribute 'DataSource' File "/opt/libreoffice24.8/program/pythonscript.py", line 913, in invoke ret = self.func( *args ) File "vnd.sun.star.tdoc:/58078120/Scripts/python/Relationships.py", line 11, in SetRelationships Expected Results: cf. attached capture Reproducible: Always User Profile Reset: No Additional Info: Running equivalent Basic Standard.Module1.PysCreerRelation() works normally.
Created attachment 196608 [details] LibreOffice Base w/ Python script & BASIC macro counterpart
Created attachment 196609 [details] Tables to associate with script
Created attachment 196610 [details] Tables with added relationships
Which operating system? Can you bibisect this?
This problem probably has the same origin as bug #162962. On Windows this is caused by a "bug" in Scriptforge. In version 24.8.1 this bug occurs for the first time when calling Python scripts.
@Alain Romedenne Download LO(dev) version 24.8.2 from: https://dev-builds.libreoffice.org/daily/ Try this version on your database.
(In reply to John van Mersbergen from comment #6) > @Alain Romedenne > > Download LO(dev) version 24.8.2 from: > https://dev-builds.libreoffice.org/daily/ > > Try this version on your database. I am using LMDE 6 Nothing happens with: Version: 24.8.3.0.0+ (X86_64) / LibreOffice Community Build ID: b9fa13e7739fa86f3043df197a1fbdd9fb5738cd CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: gtk3 Locale: fr-FR (fr_FR.UTF-8); UI: en-US Calc: threaded It fails with 24.8.1.2 BTW can you provide uninstall instructions for the above LODev build?
(In reply to Alain Romedenne from comment #7) > (In reply to John van Mersbergen from comment #6) > > @Alain Romedenne > > > > Download LO(dev) version 24.8.2 from: > > https://dev-builds.libreoffice.org/daily/ > > > > Try this version on your database. > > I am using LMDE 6 > > Nothing happens with: > Version: 24.8.3.0.0+ (X86_64) / LibreOffice Community > Build ID: b9fa13e7739fa86f3043df197a1fbdd9fb5738cd > CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: gtk3 > Locale: fr-FR (fr_FR.UTF-8); UI: en-US > Calc: threaded > > It fails with 24.8.1.2 > > BTW can you provide uninstall instructions for the above LODev build? I don't think there is any special uninstallation required, just remove the files.