Die Suche ergab 3 Treffer
- Mittwoch 1. Juli 2020, 19:56
- Forum: Datenbankprogrammierung mit Python
- Thema: Fehlermeldung TypeError: can only concatenate str (not "list") to str
- Antworten: 6
- Zugriffe: 5094
Re: Fehlermeldung TypeError: can only concatenate str (not "list") to str
Nach zwei änderungen hat der Code funktioniert. Hier noch einmal der Code: import mysql.connector from RPi import GPIO import MFRC522 def connect_to_database(): return mysql.connector.connect( host="localhost", user="username", password="password", database="databa...
- Mittwoch 1. Juli 2020, 05:47
- Forum: Datenbankprogrammierung mit Python
- Thema: Fehlermeldung TypeError: can only concatenate str (not "list") to str
- Antworten: 6
- Zugriffe: 5094
Re: Fehlermeldung TypeError: can only concatenate str (not "list") to str
@_blackjack_ Ich habe die Stelle im Code geändert und bekomme jetzt eine andere Fehlermeldung. geänderter Code # Insert in DB mycursor = mydb.cursor() sql = "INSERT INTO RFID_Chips (nummer, uid, name_ascii, name) VALUES (%s, %s, %s, %s)" val = (nummer, str(uid[0])+str(uid[1])+str(uid[2])+s...
- Dienstag 30. Juni 2020, 15:15
- Forum: Datenbankprogrammierung mit Python
- Thema: Fehlermeldung TypeError: can only concatenate str (not "list") to str
- Antworten: 6
- Zugriffe: 5094
Fehlermeldung TypeError: can only concatenate str (not "list") to str
Hallo Nach langer Suche habe ich noch keine Passene Lösung für mein Problem gefunden und hoffe, dass mir hier jemand helfen kann. Ich möchte für ein Projekt RFID-Karten beschreiben und auslesen und die ausgelesenen Daten in eine MySQL-Datenbank speichern. Das Beschreiben und Auslesen funktioniert oh...