nakijun / qspatialite

Automatically exported from code.google.com/p/qspatialite
0 stars 0 forks source link

Python error on load (Mac) #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Load Qspatialite plugin
2.
3.

What is the expected output? What do you see instead?
"
Une erreur est apparue lors de l'exécution du code Python :

Traceback (most recent call last):
  File "/Users/my_account/.qgis2/python/plugins/QspatiaLite/qspatialite.py", line 68, in run
    dlg = QspatiaLiteApp(self.iface)
  File "/Users/my_account/.qgis2/python/plugins/QspatiaLite/QspatiaLiteApp.py", line 80, in __init__
    self.changeDb(max(0,self.connections['idx']))
  File "/Users/my_account/.qgis2/python/plugins/QspatiaLite/QspatiaLiteApp.py", line 141, in changeDb
    self.db=Database(self.connections['path'][index])
  File "/Users/my_account/.qgis2/python/plugins/QspatiaLite/Classes/Database.py", line 19, in __init__
    self.connection()
  File "/Users/my_account/.qgis2/python/plugins/QspatiaLite/Classes/Database.py", line 34, in connection
    self.connectionObject.enable_load_extension(True)
AttributeError: 'pysqlite2.dbapi2.Connection' object has no attribute 
'enable_load_extension'

Version de Python :
2.7.6 (default, Sep  9 2014, 15:04:36) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]

Version de QGIS :
2.6.1-Brighton Brighton, 

Chemin vers Python : ['/Users/my_account/.qgis2/python/plugins/processing', 
'/Applications/QGIS.app/Contents/MacOS/../Resources/python', 
u'/Users/my_account/.qgis2/python', u'/Users/my_account/.qgis2/python/plugins', 
'/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins', 
'/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7', 
'/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7', 
'/Library/Python/2.7/site-packages/numpy-override', 
'/Library/Python/2.7/site-packages/matplotlib-override', 
'/Library/Frameworks/GDAL.framework/Versions/1.11/Python/2.7/site-packages', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-dar
win', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/lib-scriptpackages', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',

'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old'
, 
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl
oad', 
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyOb
jC', '/Library/Python/2.7/site-packages', 
'/Users/my_account/.qgis2/python/plugins/MetaSearch/ext-libs', 
'/Users/my_account/.qgis2/python/plugins/mmqgis/forms', 
'/Users/my_account/.qgis2/python/plugins/QuickMultiAttributeEdit/forms', 
'/Applications/QGIS.app/Contents/Resources/python/plugins/fTools/tools']
"

What version of the product are you using? On what operating system?
7.0.3 on QGIS 2.6.1 Mac OS Yosomite

Please provide any additional information below.
Version 7.0 works.

Original issue reported on code.google.com by bellav...@gmail.com on 6 Feb 2015 at 1:29

GoogleCodeExporter commented 9 years ago
Somehow, your mac pysqlite doesn't support enable_load_extentsion.
This will be corrected in the next version, that will come today.

Original comment by romain.r...@gmail.com on 6 Feb 2015 at 7:46

GoogleCodeExporter commented 9 years ago
Fine. Thanks a lot for your great work!
Claude B.

Original comment by bellav...@gmail.com on 6 Feb 2015 at 1:25