[Qgis-user] plugin builder - exifread modul missing in photo2shape

Torsten Lange torsten.lange at mail.de
Sun Feb 22 05:20:39 PST 2015


Hi,

I had my first contact to "how to create my first simple qgis-plugin"...

It began with a fail, because 'exifread' couldn't be imported from photoimporter.py of photo2shape package. It was simply missing.
Btw, for what purpose photo2shape is a required package here?

Isn't exifread supposed to be provided in the QGis installation or was it just expected that I personally had to install it in a step befor?
Just asking to know, if I should tell someone that this should be fixed - or not.

Torsten

Error-Log from the first try of installing the autogenerated plugin:
--------------------------------------------------------------
Konnte Erweiterung photo2shape nicht laden wegen eines Fehler beim Aufruf seiner classFactory()-Methode

Traceback (most recent call last):
 File "C:/PROGRA~1/GIS/QGISBR~1/apps/qgis/./pythonqgisutils.py", line 208, in startPlugin
 plugins[packageName] = package.classFactory(iface)
 File "C:/Users/tlange/.qgis2/python/pluginsphoto2shape__init__.py", line 30, in classFactory
 from photo2shape.photo2shape_plugin import Photo2ShapePlugin
 File "C:/PROGRA~1/GIS/QGISBR~1/apps/qgis/./pythonqgisutils.py", line 460, in _import
 mod = _builtin_import(name, globals, locals, fromlist, level)
 File "C:/Users/tlange/.qgis2/python/pluginsphoto2shapephoto2shape_plugin.py", line 35, in 
 from photo2shape.gui.photo2shapedialog import Photo2ShapeDialog
 File "C:/PROGRA~1/GIS/QGISBR~1/apps/qgis/./pythonqgisutils.py", line 460, in _import
 mod = _builtin_import(name, globals, locals, fromlist, level)
 File "C:/Users/tlange/.qgis2/python/pluginsphoto2shapeguiphoto2shapedialog.py", line 36, in 
 from photo2shape.photoimporter import PhotoImporter
 File "C:/PROGRA~1/GIS/QGISBR~1/apps/qgis/./pythonqgisutils.py", line 460, in _import
 mod = _builtin_import(name, globals, locals, fromlist, level)
 File "C:/Users/tlange/.qgis2/python/pluginsphoto2shapephotoimporter.py", line 30, in 
 import exifread
 File "C:/PROGRA~1/GIS/QGISBR~1/apps/qgis/./pythonqgisutils.py", line 460, in _import
 mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named exifread

Python-Version:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]

QGIS-Version:
2.6.1-Brighton Brighton, e2a51df

Python-Pfad: ['C:/PROGRA~1/GIS/QGISBR~1/apps/qgis/./python', u'C:/Users/tlange/.qgis2/python', u'C:/Users/tlange/.qgis2/python/plugins', 'C:/PROGRA~1/GIS/QGISBR~1/apps/qgis/./python/plugins', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\nose-1.3.3-py2.7.egg', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\tornado-4.0.1-py2.7-win-amd64.egg', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\backports.ssl_match_hostname-3.4.0.2-py2.7.egg', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\certifi-14.05.14-py2.7.egg', 'C:\Program Files\GIS\QGIS Brighton\apps\Python27\Lib', 'C:\PROGRA~1\GIS\QGISBR~1\bin\python27.zip', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\DLLs', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\plat-win', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\lib-tk', 'C:\PROGRA~1\GIS\QGISBR~1\bin', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\win32', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\six-1.3.0-py2.7.egg', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg', 'C:\PROGRA~1\GIS\QGISBR~1\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg', 'C:\Users\tlange\.qgis2\python\plugins\DigitizingTools\tools']
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150222/aee00d86/attachment.html>


More information about the Qgis-user mailing list