123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514 |
- 2021-10-07 12:59:50,446 - D:\git_workspace\sanoh\G01_0345\sql.py[line:46] - ERROR: mysql执行异常: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'serial = '2021100700001'' at line 1")
- Traceback (most recent call last):
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 41, in sql_action
- cursor.execute(sql)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
- result = self._query(query)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
- conn.query(q)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
- result.read()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
- first_packet = self.connection._read_packet()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
- packet.raise_for_error()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
- err.raise_mysql_exception(self._data)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
- raise errorclass(errno, errval)
- pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'serial = '2021100700001'' at line 1")
- Stack (most recent call last):
- File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_monkey.py", line 773, in __call__
- ret = self.original_func(*self.args, **self.kwargs)
- File "D:\Python\Python36-32\lib\threading.py", line 884, in _bootstrap
- self._bootstrap_inner()
- File "D:\Python\Python36-32\lib\threading.py", line 916, in _bootstrap_inner
- self.run()
- File "D:\git_workspace\sanoh\G01_0345\pro.py", line 554, in run
- self.air_work_pro()
- File "D:\git_workspace\sanoh\G01_0345\pro.py", line 280, in air_work_pro
- self.update_airdata(True)
- File "D:\git_workspace\sanoh\G01_0345\pro.py", line 235, in update_airdata
- self.update_data_tbl(stat)
- File "D:\git_workspace\sanoh\G01_0345\pro.py", line 306, in update_data_tbl
- self.sqlclient.sql_action_all(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 76, in sql_action_all
- result = self.sql_action(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 46, in sql_action
- self.log_file.logger.error('mysql执行异常: {0}'.format(e), exc_info=True, stack_info=True)
- 2021-10-10 23:25:58,934 - D:\git_workspace\sanoh\G01_0345\sql.py[line:61] - ERROR: mysql查询异常: (1054, "Unknown column 'stat' in 'where clause'")
- Traceback (most recent call last):
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 56, in sql_inquire
- cursor.execute(sql)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
- result = self._query(query)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
- conn.query(q)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
- result.read()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
- first_packet = self.connection._read_packet()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
- packet.raise_for_error()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
- err.raise_mysql_exception(self._data)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
- raise errorclass(errno, errval)
- pymysql.err.OperationalError: (1054, "Unknown column 'stat' in 'where clause'")
- Stack (most recent call last):
- File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
- app.gui_start()
- File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
- init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
- self.tk.mainloop(n)
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
- return self.func(*args)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 292, in <lambda>
- command=lambda: self.product_sel_button_event(0))
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
- self.input_param(idx)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 230, in input_param
- self.get_sel_product_idx_value(idx)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 131, in get_sel_product_idx_value
- paramresult = self.sqlclient.sql_inquire_all(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 68, in sql_inquire_all
- result = self.sql_inquire(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 61, in sql_inquire
- self.log_file.logger.error('mysql查询异常: {0}'.format(e), exc_info=True, stack_info=True)
- 2021-10-10 23:27:33,402 - D:\git_workspace\sanoh\G01_0345\sql.py[line:61] - ERROR: mysql查询异常: (1054, "Unknown column 'stat' in 'where clause'")
- Traceback (most recent call last):
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 56, in sql_inquire
- cursor.execute(sql)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
- result = self._query(query)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
- conn.query(q)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
- result.read()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
- first_packet = self.connection._read_packet()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
- packet.raise_for_error()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
- err.raise_mysql_exception(self._data)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
- raise errorclass(errno, errval)
- pymysql.err.OperationalError: (1054, "Unknown column 'stat' in 'where clause'")
- Stack (most recent call last):
- File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
- app.gui_start()
- File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
- init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
- self.tk.mainloop(n)
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
- return self.func(*args)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 292, in <lambda>
- command=lambda: self.product_sel_button_event(0))
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
- self.input_param(idx)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 230, in input_param
- self.get_sel_product_idx_value(idx)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 131, in get_sel_product_idx_value
- paramresult = self.sqlclient.sql_inquire_all(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 68, in sql_inquire_all
- result = self.sql_inquire(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 61, in sql_inquire
- self.log_file.logger.error('mysql查询异常: {0}'.format(e), exc_info=True, stack_info=True)
- 2021-10-10 23:29:51,562 - D:\git_workspace\sanoh\G01_0345\sql.py[line:61] - ERROR: mysql查询异常: (1054, "Unknown column 'stat' in 'where clause'")
- Traceback (most recent call last):
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 56, in sql_inquire
- cursor.execute(sql)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
- result = self._query(query)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
- conn.query(q)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
- result.read()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
- first_packet = self.connection._read_packet()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
- packet.raise_for_error()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
- err.raise_mysql_exception(self._data)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
- raise errorclass(errno, errval)
- pymysql.err.OperationalError: (1054, "Unknown column 'stat' in 'where clause'")
- Stack (most recent call last):
- File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
- app.gui_start()
- File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
- init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
- self.tk.mainloop(n)
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
- return self.func(*args)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 292, in <lambda>
- command=lambda: self.product_sel_button_event(0))
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
- self.input_param(idx)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 230, in input_param
- self.get_sel_product_idx_value(idx)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 131, in get_sel_product_idx_value
- paramresult = self.sqlclient.sql_inquire_all(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 68, in sql_inquire_all
- result = self.sql_inquire(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 61, in sql_inquire
- self.log_file.logger.error('mysql查询异常: {0}'.format(e), exc_info=True, stack_info=True)
- 2021-10-11 01:24:05,767 - D:\git_workspace\sanoh\G01_0345\sql.py[line:46] - ERROR: mysql执行异常: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALL, '17700-STD-0345', '17720-STD-0345', True)' at line 1")
- Traceback (most recent call last):
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 41, in sql_action
- cursor.execute(sql)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
- result = self._query(query)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
- conn.query(q)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
- result.read()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
- first_packet = self.connection._read_packet()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
- packet.raise_for_error()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
- err.raise_mysql_exception(self._data)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
- raise errorclass(errno, errval)
- pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALL, '17700-STD-0345', '17720-STD-0345', True)' at line 1")
- Stack (most recent call last):
- File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
- app.gui_start()
- File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
- init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
- self.tk.mainloop(n)
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
- return self.func(*args)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 690, in <lambda>
- command=lambda: self.product_sel_button_event(0))
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
- self.input_param(idx)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 670, in input_param
- self.input_frame.mainloop()
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
- self.tk.mainloop(n)
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
- return self.func(*args)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 366, in input_enter
- self.sqlclient.sql_action_all(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 76, in sql_action_all
- result = self.sql_action(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 46, in sql_action
- self.log_file.logger.error('mysql执行异常: {0}'.format(e), exc_info=True, stack_info=True)
- 2021-10-11 01:34:12,552 - D:\git_workspace\sanoh\G01_0345\sql.py[line:46] - ERROR: mysql执行异常: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE product_name='STD-0345-ALL'' at line 1")
- Traceback (most recent call last):
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 41, in sql_action
- cursor.execute(sql)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
- result = self._query(query)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
- conn.query(q)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
- result.read()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
- first_packet = self.connection._read_packet()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
- packet.raise_for_error()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
- err.raise_mysql_exception(self._data)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
- raise errorclass(errno, errval)
- pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE product_name='STD-0345-ALL'' at line 1")
- Stack (most recent call last):
- File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
- app.gui_start()
- File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
- init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
- self.tk.mainloop(n)
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
- return self.func(*args)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 691, in <lambda>
- command=lambda: self.product_sel_button_event(0))
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
- self.input_param(idx)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 671, in input_param
- self.input_frame.mainloop()
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
- self.tk.mainloop(n)
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
- return self.func(*args)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 386, in input_enter
- self.update_param_tbl(17700)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 285, in update_param_tbl
- self.sqlclient.sql_action_all(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 76, in sql_action_all
- result = self.sql_action(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 46, in sql_action
- self.log_file.logger.error('mysql执行异常: {0}'.format(e), exc_info=True, stack_info=True)
- 2021-10-11 01:34:12,570 - D:\git_workspace\sanoh\G01_0345\sql.py[line:46] - ERROR: mysql执行异常: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE product_name='STD-0345-ALL'' at line 1")
- Traceback (most recent call last):
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 41, in sql_action
- cursor.execute(sql)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
- result = self._query(query)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
- conn.query(q)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
- result.read()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
- first_packet = self.connection._read_packet()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
- packet.raise_for_error()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
- err.raise_mysql_exception(self._data)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
- raise errorclass(errno, errval)
- pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE product_name='STD-0345-ALL'' at line 1")
- Stack (most recent call last):
- File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
- app.gui_start()
- File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
- init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
- self.tk.mainloop(n)
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
- return self.func(*args)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 691, in <lambda>
- command=lambda: self.product_sel_button_event(0))
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
- self.input_param(idx)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 671, in input_param
- self.input_frame.mainloop()
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
- self.tk.mainloop(n)
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
- return self.func(*args)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 402, in input_enter
- self.update_param_tbl(17720)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 285, in update_param_tbl
- self.sqlclient.sql_action_all(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 76, in sql_action_all
- result = self.sql_action(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 46, in sql_action
- self.log_file.logger.error('mysql执行异常: {0}'.format(e), exc_info=True, stack_info=True)
- 2021-10-11 01:35:03,667 - D:\git_workspace\sanoh\G01_0345\sql.py[line:46] - ERROR: mysql执行异常: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE product_name='STD-0345-ALL'' at line 1")
- Traceback (most recent call last):
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 41, in sql_action
- cursor.execute(sql)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
- result = self._query(query)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
- conn.query(q)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
- result.read()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
- first_packet = self.connection._read_packet()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
- packet.raise_for_error()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
- err.raise_mysql_exception(self._data)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
- raise errorclass(errno, errval)
- pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE product_name='STD-0345-ALL'' at line 1")
- Stack (most recent call last):
- File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 2141, in <module>
- main()
- File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 2132, in main
- globals = debugger.run(setup['file'], None, None, is_module)
- File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1441, in run
- return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
- File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1448, in _exec
- pydev_imports.execfile(file, globals, locals) # execute the script
- File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
- exec(compile(contents+"\n", file, 'exec'), glob, loc)
- File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
- app.gui_start()
- File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
- init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
- self.tk.mainloop(n)
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
- return self.func(*args)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 691, in <lambda>
- command=lambda: self.product_sel_button_event(0))
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
- self.input_param(idx)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 671, in input_param
- self.input_frame.mainloop()
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
- self.tk.mainloop(n)
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
- return self.func(*args)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 386, in input_enter
- self.update_param_tbl(17700)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 285, in update_param_tbl
- self.sqlclient.sql_action_all(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 76, in sql_action_all
- result = self.sql_action(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 46, in sql_action
- self.log_file.logger.error('mysql执行异常: {0}'.format(e), exc_info=True, stack_info=True)
- 2021-10-11 01:35:03,680 - D:\git_workspace\sanoh\G01_0345\sql.py[line:46] - ERROR: mysql执行异常: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE product_name='STD-0345-ALL'' at line 1")
- Traceback (most recent call last):
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 41, in sql_action
- cursor.execute(sql)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
- result = self._query(query)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
- conn.query(q)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
- result.read()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
- first_packet = self.connection._read_packet()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
- packet.raise_for_error()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
- err.raise_mysql_exception(self._data)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
- raise errorclass(errno, errval)
- pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE product_name='STD-0345-ALL'' at line 1")
- Stack (most recent call last):
- File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 2141, in <module>
- main()
- File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 2132, in main
- globals = debugger.run(setup['file'], None, None, is_module)
- File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1441, in run
- return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
- File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1448, in _exec
- pydev_imports.execfile(file, globals, locals) # execute the script
- File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
- exec(compile(contents+"\n", file, 'exec'), glob, loc)
- File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
- app.gui_start()
- File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
- init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
- self.tk.mainloop(n)
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
- return self.func(*args)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 691, in <lambda>
- command=lambda: self.product_sel_button_event(0))
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
- self.input_param(idx)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 671, in input_param
- self.input_frame.mainloop()
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
- self.tk.mainloop(n)
- File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
- return self.func(*args)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 402, in input_enter
- self.update_param_tbl(17720)
- File "D:\git_workspace\sanoh\G01_0345\production.py", line 285, in update_param_tbl
- self.sqlclient.sql_action_all(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 76, in sql_action_all
- result = self.sql_action(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 46, in sql_action
- self.log_file.logger.error('mysql执行异常: {0}'.format(e), exc_info=True, stack_info=True)
- 2021-10-11 16:26:24,211 - D:\git_workspace\sanoh\G01_0345\sql.py[line:61] - ERROR: mysql查询异常: (1054, "Unknown column 'stat' in 'where clause'")
- Traceback (most recent call last):
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 56, in sql_inquire
- cursor.execute(sql)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
- result = self._query(query)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
- conn.query(q)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
- self._affected_rows = self._read_query_result(unbuffered=unbuffered)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
- result.read()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
- first_packet = self.connection._read_packet()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
- packet.raise_for_error()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
- err.raise_mysql_exception(self._data)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
- raise errorclass(errno, errval)
- pymysql.err.OperationalError: (1054, "Unknown column 'stat' in 'where clause'")
- Stack (most recent call last):
- File "D:\Python\Python36-32\lib\threading.py", line 884, in _bootstrap
- self._bootstrap_inner()
- File "D:\Python\Python36-32\lib\threading.py", line 916, in _bootstrap_inner
- self.run()
- File "D:\git_workspace\sanoh\G01_0345\output_file.py", line 225, in run
- self.get_product_param()
- File "D:\git_workspace\sanoh\G01_0345\output_file.py", line 40, in get_product_param
- results = self.sqlclient.sql_inquire_all(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 68, in sql_inquire_all
- result = self.sql_inquire(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 61, in sql_inquire
- self.log_file.logger.error('mysql查询异常: {0}'.format(e), exc_info=True, stack_info=True)
- 2021-10-12 13:57:31,231 - D:\git_workspace\sanoh\G01_0345\sql.py[line:24] - ERROR: mysql连接异常: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods
- Traceback (most recent call last):
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 21, in connect
- database=self.database)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 353, in __init__
- self.connect()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 633, in connect
- self._request_authentication()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 932, in _request_authentication
- auth_packet = _auth.caching_sha2_password_auth(self, auth_packet)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\_auth.py", line 265, in caching_sha2_password_auth
- data = sha2_rsa_encrypt(conn.password, conn.salt, conn.server_public_key)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\_auth.py", line 144, in sha2_rsa_encrypt
- "'cryptography' package is required for sha256_password or caching_sha2_password auth methods"
- RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods
- Stack (most recent call last):
- File "D:\Python\Python36-32\lib\threading.py", line 884, in _bootstrap
- self._bootstrap_inner()
- File "D:\Python\Python36-32\lib\threading.py", line 916, in _bootstrap_inner
- self.run()
- File "D:\git_workspace\sanoh\G01_0345\pro.py", line 584, in run
- self.product_name_set()
- File "D:\git_workspace\sanoh\G01_0345\pro.py", line 503, in product_name_set
- paramresult = self.sqlclient.sql_inquire_all(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 68, in sql_inquire_all
- self.connect()
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 24, in connect
- self.log_file.logger.error('mysql连接异常: {0}'.format(e), exc_info=True, stack_info=True)
- 2021-10-12 13:57:50,168 - D:\git_workspace\sanoh\G01_0345\sql.py[line:24] - ERROR: mysql连接异常: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods
- Traceback (most recent call last):
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 21, in connect
- database=self.database)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 353, in __init__
- self.connect()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 633, in connect
- self._request_authentication()
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 932, in _request_authentication
- auth_packet = _auth.caching_sha2_password_auth(self, auth_packet)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\_auth.py", line 265, in caching_sha2_password_auth
- data = sha2_rsa_encrypt(conn.password, conn.salt, conn.server_public_key)
- File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\_auth.py", line 144, in sha2_rsa_encrypt
- "'cryptography' package is required for sha256_password or caching_sha2_password auth methods"
- RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods
- Stack (most recent call last):
- File "D:\Python\Python36-32\lib\threading.py", line 884, in _bootstrap
- self._bootstrap_inner()
- File "D:\Python\Python36-32\lib\threading.py", line 916, in _bootstrap_inner
- self.run()
- File "D:\git_workspace\sanoh\G01_0345\pro.py", line 584, in run
- self.product_name_set()
- File "D:\git_workspace\sanoh\G01_0345\pro.py", line 503, in product_name_set
- paramresult = self.sqlclient.sql_inquire_all(sqlstr)
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 68, in sql_inquire_all
- self.connect()
- File "D:\git_workspace\sanoh\G01_0345\sql.py", line 24, in connect
- self.log_file.logger.error('mysql连接异常: {0}'.format(e), exc_info=True, stack_info=True)
|