Skip to content

Deprecation Warning: QgsVectorFileWriter.writeAsVectorFormat() #129

Description

@sekirankai

I just got this message:

2025-08-05T13:06:44 WARNING warning:C:\Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportPhotos\ImportPhotos.py:484: DeprecationWarning: QgsVectorFileWriter.writeAsVectorFormat() is deprecated
error_code, error_message = QgsVectorFileWriter.writeAsVectorFormat(

         traceback: File "C:\PROGRA~1/QGIS34~1.8/apps/qgis-ltr/./python\qgis\core\additions\qgstaskwrapper.py", line 34, in run
          self.returned_values = self.function(self, *self.args, **self.kwargs)
          File "C:\Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportPhotos\ImportPhotos.py", line 484, in import_photos_task
          error_code, error_message = QgsVectorFileWriter.writeAsVectorFormat(

Only about 1/3 of the pictures I tried to import were imported succesfully, however I do not know if it's unrelated or not. The box said "X files skipped because of missing location", which I don't really understand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions