Hello,
I have installed Python 27 and Mapnik completely separate from the OSGeo4w path, to avoid any interference. PATH and PYTHONPATH both point to the standalone versions, while Qgis and Osgeo4w set their own path with qgis.bat and osgeo4w.bat until the end of the session.

Greetings,
André Joost

Am 31.01.2013 15:26, schrieb Stephane Goldstein:
Hello.

  I'm running QGIS 1.8 and 1.9 on Windows 7 x64. I installed them using the 
OSGeo4W installer.

  Everything was going fine untill I installed Python 2.7 to start learning 
Mapnik.
  I instaled Python x64, then realised it has to be x86 to run with Mapnik.
  I uninstaled the Python x64 and installed x86, and start going with Mapnik.

  Since then my QGIS started giving me a lot of errors. Sextante wouldn´t load, 
giving error message on start-up.
  I was able to fix this by removing the paths to Python and Mapnik I have 
added on the System Variables.

  But now I'm still having other problems, the main one for me right now beeing 
QSpatialite.

  I can run queries, but if I ask the output to be displayed in a QGIS layer I 
got the error pasted below.

  Is there something I can do to make things run smoothly again ? I already 
reinstalled all OSGeo4W packages, but no sucess.
  I see that OSGEO has it's own python, is this creating some kind of conflict ?

  Thank you

An error has occured while executing Python code:

  Traceback (most recent call last):
  File "C:/Users/winste/.qgis//python/plugins\QspatiaLite\QspatiaLiteApp.py", 
line 195, in runQuery
  loadInQGIS_spatial(self,self.db,query,geomfield,tablename)
  File 
"C:/Users/winste/.qgis//python/plugins\QspatiaLite\Utility_functions.py", line 
173, in loadInQGIS_spatial
  QgsMapLayerRegistry.instance().addMapLayer(layer)
  AttributeError: 'QgsMapLayerRegistry' object has no attribute 'addMapLayer'

  Python version:
  2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]


  QGIS version:
  1.9.0-Master Master, 2a4d79d

  Python path: ['C:/Users/winste/.qgis//python/plugins\\sextante', 
'C:/OSGeo4W/apps/qgis-dev/./python', 'C:/Users/winste/.qgis//python', 
'C:/Users/winste/.qgis//python/plugins', 
'C:/OSGeo4W/apps/qgis-dev/./python/plugins', 'C:\\OSGeo4W\\bin\\python27.zip', 
'C:\\OSGeo4W\\apps\\Python27\\DLLs', 'C:\\OSGeo4W\\apps\\Python27\\lib', 
'C:\\OSGeo4W\\apps\\Python27\\lib\\plat-win', 
'C:\\OSGeo4W\\apps\\Python27\\lib\\lib-tk', 'C:\\OSGeo4W\\bin', 
'C:\\OSGeo4W\\apps\\Python27', 
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages', 
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\PIL', 
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32', 
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32\\lib', 
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\Pythonwin', 
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 
'C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\fTools\\tools']




_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user


_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to