Aktionen
300 Python-Fehler und Debug » Historie » Revision 2
« Zurück |
Revision 2/8
(diff)
| Weiter »
[X] Daniel S, 27.08.2018 10:52
Python-Fehler und Debug¶
- Im Formdesigner das Debugging für Python aktivieren
- Die entstehende Python-Datei auf dem Desktop speichern
- Mit Editor die Python-Datei öffnen
- Auf der Konsole die Python Datei ausführen
im folgenden Bsp habe ich die fehlerhafte Datei in Notepad bearbeitet und anschliessend wieder gestestet, mit positiviem Ergebnis > ich habe das Script wieder in PRODAT übertragen.
D:\>ProdatERP\CNC\Prodat\python\python.exe C:\Users\ProdatAdmin\Desktop\27.py
Traceback (most recent call last):
File "C:\Users\ProdatAdmin\Desktop\27.py", line 31, in <module>
Sql.sql_add(Sql.add_and('mpl_formonth', edyear+combomonth))
TypeError: cannot concatenate 'str' and 'int' objects
D:\>ProdatERP\CNC\Prodat\python\python.exe C:\Users\ProdatAdmin\Desktop\27.py
WHERE
(mpl_minr) LIKE ('60')
AND
(mpl_formonth) LIKE ('201800')
ORDER BY mpl_minr, mpl_date, bd_anf
D:\>
Von [X] Daniel S vor etwa 7 Jahren aktualisiert · 2 Revisionen