qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.66k stars 3.02k forks source link

Python error when loading a mesh layer on QGIS 3.36.2 #57234

Closed Amalvir closed 7 months ago

Amalvir commented 7 months ago

What is the bug or the crash?

Hi everyone, When I load a mesh layer into QGIS, the following Python error appears. In the both cases, the layers load fine despite the error.

The same issue is raised when I load a project with mesh layers.

This issue doesn't appear in 3.36.1. This issue doesn't appear with a new profile

Am I alone with this issue ?

Traceback (most recent call last):
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\decorator.py", line 231, in fun
    args, kw = fix(args, kw, sig)
               ^^^^^^^^^^^^^^^^^^
  File "C:\OSGeo4W\apps\Python312\Lib\site-packages\decorator.py", line 203, in fix
    ba = sig.bind(*args, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OSGeo4W\apps\Python312\Lib\inspect.py", line 3242, in bind
    return self._bind(args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OSGeo4W\apps\Python312\Lib\inspect.py", line 3163, in _bind
    raise TypeError('too many positional arguments') from None
TypeError: too many positional arguments

Steps to reproduce the issue

Just load a mesh layer in a project in QGIS 3.36.2.

Versions

Version de QGIS | 3.36.2-Maidenhead | Révision du code | 6d250527 -- | -- | -- | -- Version de Qt | 5.15.13 Version de Python | 3.12.3 Version de GDAL/OGR | 3.8.5 Version de Proj | 9.4.0 Version de la base de données du registre EPSG | v11.004 (2024-02-24) Version de GEOS | 3.12.1-CAPI-1.18.1 Version de SQLite | 3.45.1 Version de PDAL | 2.6.3 Version du client PostgreSQL | 16.2 Version de SpatiaLite | 5.1.0 Version de QWT | 6.2.0 Version de QScintilla2 | 2.14.1 Version de l'OS | Windows 10 Version 2009   |   |   |   Extensions Python actives AnotherDXF2Shape | 1.3.1 autoSaver | 2.9 contour | 2.0.13 crayfish | 3.6.0 extract_dalles | 0.1 french_locator_filter | 1.1.0 go2streetview | 8.7 meshflow | 0.1.1 processing_saga_nextgen | 1.0.0 profiletool | 4.2.6 qfieldsync | v4.9.1 qgis_resource_sharing | 1.0.0 Serval | 3.32.0 valuetool | 3.0.19 db_manager | 0.1.20 grassprovider | 2.12.99 MetaSearch | 0.3.6 processing | 2.12.99

Supported QGIS version

New profile

Additional context

Thank you for your answers.

nicogodet commented 7 months ago

You are not alone ;)

This issue doesn't appear in 3.36.1. This issue doesn't appear with a new profile

So this is likely related to a plugin and related to recent changes in OSGeo4W with major upgrade in Python and libs

Amalvir commented 7 months ago

I've just found the plugin that's causing the problem. In my case it is Meshflow (https://github.com/vcloarec/meshflow), I will write a ticket on the project.

So it is not a bug ? Should I close the ticket ?

nicogodet commented 7 months ago

Yup, it should be closed.