KIOS-Research/ImportPhotos

No new photos were added

Closed this issue · 2 comments

I have some problems using the plug-in:

While creating a new layer of picture localisation (trying both .shp and .gpkg) the layer is created but empty. Images are geotagged.
Works well with my colleagues computers.
The only differences are the version of QGis and the the way it has been installed : I use 3.22.12 and 3.28.0 recently installed with OSGeo4W (previously I used .exe)

There are some Python messages about the plug-in in the log
2022-11-22T10:26:47 WARNING warning:C:\Users/suco80d/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportPhotos\code\PhotosViewer.py:122: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python.
self.leftClick.setGeometry(QRect(self.left_newloc[0], self.left_newloc[1], self.left_newloc[2], self.left_newloc[3]))

         traceback: File "C:\Users/suco80d/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportPhotos\code\MouseClick.py", line 119, in canvasReleaseEvent
          self.photosDLG.viewer.resizeEvent([])
          File "C:\Users/suco80d/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportPhotos\code\PhotosViewer.py", line 122, in resizeEvent
          self.leftClick.setGeometry(QRect(self.left_newloc[0], self.left_newloc[1], self.left_newloc[2], self.left_newloc[3]))

2022-11-22T10:26:47 WARNING warning:C:\Users/suco80d/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportPhotos\code\PhotosViewer.py:128: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python.
self.rightClick.setGeometry(QRect(newloc[0], newloc[1], newloc[2], newloc[3]))

         traceback: File "C:\Users/suco80d/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportPhotos\code\MouseClick.py", line 119, in canvasReleaseEvent
          self.photosDLG.viewer.resizeEvent([])
          File "C:\Users/suco80d/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportPhotos\code\PhotosViewer.py", line 128, in resizeEvent
          self.rightClick.setGeometry(QRect(newloc[0], newloc[1], newloc[2], newloc[3]))

2022-11-22T10:48:47 WARNING warning:C:\Users/suco80d/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportPhotos\ImportPhotos.py:439: DeprecationWarning: QgsVectorFileWriter.writeAsVectorFormat() is deprecated
error_code, error_message = QgsVectorFileWriter.writeAsVectorFormat(

         traceback: File "C:\QGIS/apps/qgis/./python\qgis\core\additions\qgstaskwrapper.py", line 37, in run
          self.returned_values = self.function(self, *self.args, **self.kwargs)
          File "C:\Users/suco80d/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ImportPhotos\ImportPhotos.py", line 439, in import_photos_task
          error_code, error_message = QgsVectorFileWriter.writeAsVectorFormat(

Import Photos

Hi @Cantalou15, please check out the updated version ImportPhotos v3.0.5!
Thanks