Thank you very much, Nyall! Following your hint, we managed to fix our tests also using the qgis/qgis:stable docker. Cheers, Paolo
On Wed, Feb 26, 2025 at 3:13 AM Nyall Dawson <nyall.daw...@gmail.com> wrote: > On Tue, 25 Feb 2025 at 20:13, Paolo Tormene via QGIS-Developer > <qgis-developer@lists.osgeo.org> wrote: > > > > Dear QGIS developers, > > we have some tests that ceased to work two days ago, running on docker > qgis/qgis:stable, giving the following traceback: > > > > Traceback (most recent call last): > > File "/usr/lib/python3/dist-packages/qgis/testing/__init__.py", line > 1103, in start_app > > QGISAPP > > NameError: name 'QGISAPP' is not defined > > Looks like you're running tests from WITHIN the QGIS application. In > this case you should not be calling start_app(), as there is > **already** a QGIS application running. > > QGIS 3.42 introduced new checks to explicitly prevent this, as it > causes instability. > > Nyall > > > > > > During handling of the above exception, another exception occurred: > > > > Traceback (most recent call last): > > File "<string>", line 175, in __run_test > > File "<string>", line 70, in __get_test_function > > File "/usr/lib/python3.12/importlib/__init__.py", line 90, in > import_module > > return _bootstrap._gcd_import(name[level:], package, level) > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File "<frozen importlib._bootstrap>", line 1387, in _gcd_import > > File "<frozen importlib._bootstrap>", line 1360, in _find_and_load > > File "<frozen importlib._bootstrap>", line 1331, in > _find_and_load_unlocked > > File "<frozen importlib._bootstrap>", line 935, in _load_unlocked > > File "<frozen importlib._bootstrap_external>", line 995, in exec_module > > File "<frozen importlib._bootstrap>", line 488, in > _call_with_frames_removed > > File > "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/svir/test/integration/test_drive_oq_engine.py", > line 58, in <module> > > QGIS_APP = start_app() > > ^^^^^^^^^^^ > > File "/usr/lib/python3/dist-packages/qgis/testing/__init__.py", line > 1130, in start_app > > QGISAPP.initQgis() > > TypeError: _qgis_app_init_qgis() takes 0 positional arguments but 1 was > given > > > > The same tests run without issues using docker qgis/qgis:ltr. > > Do you have any suggestions about this? Do you have any documentation > about what changed in the stable docker two days ago, so we can have some > hints on what we could further investigate? > > > > Thank you very much, > > Paolo > > > > -- > > > > PAOLO TORMENE senior software developer +39 0382 5169882 > > > > GLOBAL EARTHQUAKE MODEL working together to assess risk > > > > GEM - globalquakemodel.org T - @GEMwrld F - GEMwrld > > _______________________________________________ > > QGIS-Developer mailing list > > QGIS-Developer@lists.osgeo.org > > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > -- *PAOLO TORMENE* senior software developer +39 0382 5169882 *GLOBAL EARTHQUAKE MODEL * working together to assess risk *GEM -* globalquakemodel.org <http://www.globalquakemodel.org> *T -* @GEMwrld <http://twitter.com/GEMwrld> *F -* GEMwrld <http://www.facebook.com/GEMwrld>
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer