i am stuck with a load of errors please help #15636
Replies: 5 comments 1 reply
-
Please format your code according to the guidelines. It would also help anyone reading your code if you provided URLs for your external modules (ili9341, xpt2046). Have you tested your SQL query at the REPL? I haven't used SQL for years so I may well be wrong - but the syntax looks odd to me. I'd also avoid using |
Beta Was this translation helpful? Give feedback.
-
If someone has adequate knowledge, please help |
Beta Was this translation helpful? Give feedback.
-
main() ` |
Beta Was this translation helpful? Give feedback.
-
Hi Akash. why you don't use try/ except on your defs to have more lisibility? it's hard to reproduce and to answer on your code.. |
Beta Was this translation helpful? Give feedback.
-
Under
The I do not understand why you have to do You can just do the "connect_to_db()" once and store the socket in self.db_socket after you have done the DB authentication. Anyway, "UnicodeError" is probably related to str.encode() and result.decode(). While the "ECONNRESET" (connection reset by DB server) and ECONNABORTED (your connection closed due to error). You can fix your script if you can find the places in your code where these errors occurred. My advice is to start with a simple script that does only
Repeat 4 and 5 several times. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't know what is wrong but I get these errors recursively
UnicodeError
OSError: [Errno 104] ECONNRESET
OSError: [Errno 103] ECONNABORTED
`import utime
import network
import usocket
from machine import Pin, SPI
import ili9341
import xpt2046
Initialize the ILI9341 display
class main():
def init (self):
SSID = "xxx"
PASSWORD = "xxx"
Run the main menu
main()
`
Beta Was this translation helpful? Give feedback.
All reactions