Der Fehler steht direkt im Traceback:

  File "C:/Users/leiner/.qgis2/python\expressions\scratch.py", line 6
    from qgis.core import *
   ^
IndentationError: unexpected indent

Dort dürfte am Zeilenanfang kein Whitespace stehen. Entweder den Fehler dort beheben oder das komplette QGIS-Profil löschen.

Gruß,
  Christian

Am 30.06.2015 13:58, schrieb Claas Leiner:
Hallo Zusammen,

sehr merkwürdig, nach dem Updaten auf QGIS 2.10, startet die
2.8.2er-version nur noch Ohne Python-Unterstützung. Die weiter unten
gelistete Fehlermeldung wird ausgegeben. Auch nach einer
Neuinstallation von QGIS 2.8 bleibt es dabei.

Kann es jemand erklären?

Viele Grüße,

Claas

(QGIS 32Bit auf Windows 7)
------------------------------------------------------------
Kann qgis.user nicht laden.
Die Python-Unterstützung wird abgeschaltet.


Traceback (most recent call last):
  File "", line 1, in
File "C:/OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/OSGeo4W/apps/qgis-ltr/./python\qgis\user.py", line 42, in
    expressions.load(expressionspath)
  File "C:/OSGeo4W/apps/qgis-ltr/./python\qgis\user.py", line 19, in
load_user_expressions
    __import__("expressions.{0}".format(name), locals(), globals())
File "C:/OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/leiner/.qgis2/python\expressions\scratch.py", line 6
    from qgis.core import *
   ^
IndentationError: unexpected indent


Python-Version:
2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]

QGIS-Version:
2.8.2-Wien 'Wien', 8702138

Python-Pfad:
['C:/OSGeo4W/apps/qgis-ltr/./python',
u'C:/Users/leiner/.qgis2/python',
u'C:/Users/leiner/.qgis2/python/plugins',
'C:/OSGeo4W/apps/qgis-ltr/./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\\jinja2-2.7.2-py2.7.egg',
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\markupsafe-0.23-py2.7-win32.egg',
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\python_dateutil-2.2-py2.7.egg',
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\pytz-2014.2-py2.7.egg',
'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\\Shapely-1.2.18-py2.7-win32.egg',
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\six-1.6.1-py2.7.egg',
'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
u'C:/Users/leiner/.qgis2//python']
--
-----------------------------------------
GKG-Kassel - Dr.-Ing. Claas Leiner
QGIS-Support und mehr

Geodatenservice, Kartenwerkstatt &
GIS-Schule Kassel

Wilhelmshöher Allee 304 E
34131 Kassel
Tel. 0561/56013445
[email protected]
http://www.gkg-kassel.de
----------------------------------------
--
....................................................................
FOSSGIS und OpenStreetMap auf der Agit 2015 in Salzburg
8.-10. Juli, Universität Salzburg
http://www.agit.at

FOSSGIS e.V, der Verein zur Förderung von Freier Software aus dem
GIS-Bereich und Freier Geodaten!
http://www.fossgis.de/             https://twitter.com/fossgis_eV

____________________________________________________________________
FOSSGIS-Talk-Liste mailing list
[email protected]
https://lists.fossgis.de/mailman/listinfo/fossgis-talk-liste
--
....................................................................
FOSSGIS und OpenStreetMap auf der Agit 2015 in Salzburg
8.-10. Juli, Universität Salzburg
http://www.agit.at

FOSSGIS e.V, der Verein zur Förderung von Freier Software aus dem
GIS-Bereich und Freier Geodaten!
http://www.fossgis.de/             https://twitter.com/fossgis_eV

____________________________________________________________________
FOSSGIS-Talk-Liste mailing list
[email protected]
https://lists.fossgis.de/mailman/listinfo/fossgis-talk-liste

Antwort per Email an