Fragen wg. Fehlermeldungen

Wenn du dir nicht sicher bist, in welchem der anderen Foren du die Frage stellen sollst, dann bist du hier im Forum für allgemeine Fragen sicher richtig.
Antworten
TanjaLorenz
User
Beiträge: 8
Registriert: Sonntag 8. April 2018, 09:28

Hallo, mein Code hat an der Seite einen durchgehenden grünen Balken, es werden keine Fehler oder Hinweise angezeigt. Trotzdem erscheinen beim debugging folgende Fehlerhinweise: Mein Wunsch: Es sollte auch ohne argv oder **kwargs funktionieren.
Wer kennt diese Fehlermeldungen und kann mir einen Hinweis geben? Dieses Programm wird zukünftig in meiner Firma verwendet, deshalb darf ich den Code nicht posten.
Ich nutze Visual Studio 2019 auf einem Windows 7, 64 BIT PC
Diese Programmlinks sind auf meinem PC vorhanden, diese wurden mit der Instasllation von Visual Studio 2019 angelegt.

Danke


Traceback (most recent call last):
File "c:\program files\microsoft visual studio\2019\community\common7\ide\exte
nsions\microsoft\python\core\ptvsd_launcher.py", line 119, in <module>
vspd.debug(filename, port_num, debug_id, debug_options, run_as)
File "c:\program files\microsoft visual studio\2019\community\common7\ide\exte
nsions\microsoft\python\core\Packages\ptvsd\debugger.py", line 37, in debug
run(address, filename, *args, **kwargs)
File "c:\program files\microsoft visual studio\2019\community\common7\ide\exte
nsions\microsoft\python\core\Packages\ptvsd\_local.py", line 79, in run_file
run(argv, addr, **kwargs)
File "c:\program files\microsoft visual studio\2019\community\common7\ide\exte
nsions\microsoft\python\core\Packages\ptvsd\_local.py", line 140, in _run
_pydevd.main()
File "c:\program files\microsoft visual studio\2019\community\common7\ide\exte
nsions\microsoft\python\core\Packages\ptvsd\_vendored\pydevd\pydevd.py", line 19
34, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "c:\program files\microsoft visual studio\2019\community\common7\ide\exte
nsions\microsoft\python\core\Packages\ptvsd\_vendored\pydevd\pydevd.py", line 12
83, in run
return self._exec(is_module, entry_point_fn, module_name, file, globals, loc
als)
File "c:\program files\microsoft visual studio\2019\community\common7\ide\exte
nsions\microsoft\python\core\Packages\ptvsd\_vendored\pydevd\pydevd.py", line 12
90, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "c:\program files\microsoft visual studio\2019\community\common7\ide\exte
nsions\microsoft\python\core\Packages\ptvsd\_vendored\pydevd\_pydev_imps\_pydev_
execfile.py", line 25, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:\Users\Michael\source\repos\PythonApplication2\PythonApplication2\Pyth
onApplication2.py", line 2901
x = x + 1;
^
IndentationError: unindent does not match any outer indentation level
Press any key to continue . . .
__deets__
User
Beiträge: 14545
Registriert: Mittwoch 14. Oktober 2015, 14:29

Hast du den Fehler mal gegoogelt? Ist dir bewusst, wozu Einrückungen (englisch: Indentation) in Python wichtig sind?
Benutzeravatar
__blackjack__
User
Beiträge: 14042
Registriert: Samstag 2. Juni 2018, 10:21
Wohnort: 127.0.0.1
Kontaktdaten:

Was hat das mit argv und **kwargs zu tun? Was soll der Wunsch das es auch ohne argv und **kwargs funktionieren soll überhaupt für eine Bedeutung‽

Und warum ist da ein Semikolon am Ende der Zeile? Warum wird kein ``+=`` verwendet? Und warum wird da *überhaupt* eine Variable manuell um 1 erhöht? Und ist ein Modul mit mindestens 2900 Zeilen nicht ein bisschen sehr lang?
„A life is like a garden. Perfect moments can be had, but not preserved, except in memory. LLAP” — Leonard Nimoy's last tweet.
Benutzeravatar
kbr
User
Beiträge: 1508
Registriert: Mittwoch 15. Oktober 2008, 09:27

__blackjack__ hat geschrieben: Sonntag 28. April 2019, 10:31Und ist ein Modul mit mindestens 2900 Zeilen nicht ein bisschen sehr lang?
Nicht, falls das Modul nur eine Funktion beinhaltet ... 8)
Antworten