error.log.2021-10-12 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. 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")
  2. Traceback (most recent call last):
  3. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 41, in sql_action
  4. cursor.execute(sql)
  5. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
  6. result = self._query(query)
  7. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
  8. conn.query(q)
  9. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
  10. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  11. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
  12. result.read()
  13. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
  14. first_packet = self.connection._read_packet()
  15. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
  16. packet.raise_for_error()
  17. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
  18. err.raise_mysql_exception(self._data)
  19. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
  20. raise errorclass(errno, errval)
  21. 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")
  22. Stack (most recent call last):
  23. 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__
  24. ret = self.original_func(*self.args, **self.kwargs)
  25. File "D:\Python\Python36-32\lib\threading.py", line 884, in _bootstrap
  26. self._bootstrap_inner()
  27. File "D:\Python\Python36-32\lib\threading.py", line 916, in _bootstrap_inner
  28. self.run()
  29. File "D:\git_workspace\sanoh\G01_0345\pro.py", line 554, in run
  30. self.air_work_pro()
  31. File "D:\git_workspace\sanoh\G01_0345\pro.py", line 280, in air_work_pro
  32. self.update_airdata(True)
  33. File "D:\git_workspace\sanoh\G01_0345\pro.py", line 235, in update_airdata
  34. self.update_data_tbl(stat)
  35. File "D:\git_workspace\sanoh\G01_0345\pro.py", line 306, in update_data_tbl
  36. self.sqlclient.sql_action_all(sqlstr)
  37. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 76, in sql_action_all
  38. result = self.sql_action(sqlstr)
  39. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 46, in sql_action
  40. self.log_file.logger.error('mysql执行异常: {0}'.format(e), exc_info=True, stack_info=True)
  41. 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'")
  42. Traceback (most recent call last):
  43. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 56, in sql_inquire
  44. cursor.execute(sql)
  45. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
  46. result = self._query(query)
  47. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
  48. conn.query(q)
  49. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
  50. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  51. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
  52. result.read()
  53. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
  54. first_packet = self.connection._read_packet()
  55. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
  56. packet.raise_for_error()
  57. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
  58. err.raise_mysql_exception(self._data)
  59. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
  60. raise errorclass(errno, errval)
  61. pymysql.err.OperationalError: (1054, "Unknown column 'stat' in 'where clause'")
  62. Stack (most recent call last):
  63. File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
  64. app.gui_start()
  65. File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
  66. init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
  67. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
  68. self.tk.mainloop(n)
  69. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
  70. return self.func(*args)
  71. File "D:\git_workspace\sanoh\G01_0345\production.py", line 292, in <lambda>
  72. command=lambda: self.product_sel_button_event(0))
  73. File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
  74. self.input_param(idx)
  75. File "D:\git_workspace\sanoh\G01_0345\production.py", line 230, in input_param
  76. self.get_sel_product_idx_value(idx)
  77. File "D:\git_workspace\sanoh\G01_0345\production.py", line 131, in get_sel_product_idx_value
  78. paramresult = self.sqlclient.sql_inquire_all(sqlstr)
  79. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 68, in sql_inquire_all
  80. result = self.sql_inquire(sqlstr)
  81. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 61, in sql_inquire
  82. self.log_file.logger.error('mysql查询异常: {0}'.format(e), exc_info=True, stack_info=True)
  83. 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'")
  84. Traceback (most recent call last):
  85. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 56, in sql_inquire
  86. cursor.execute(sql)
  87. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
  88. result = self._query(query)
  89. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
  90. conn.query(q)
  91. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
  92. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  93. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
  94. result.read()
  95. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
  96. first_packet = self.connection._read_packet()
  97. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
  98. packet.raise_for_error()
  99. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
  100. err.raise_mysql_exception(self._data)
  101. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
  102. raise errorclass(errno, errval)
  103. pymysql.err.OperationalError: (1054, "Unknown column 'stat' in 'where clause'")
  104. Stack (most recent call last):
  105. File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
  106. app.gui_start()
  107. File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
  108. init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
  109. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
  110. self.tk.mainloop(n)
  111. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
  112. return self.func(*args)
  113. File "D:\git_workspace\sanoh\G01_0345\production.py", line 292, in <lambda>
  114. command=lambda: self.product_sel_button_event(0))
  115. File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
  116. self.input_param(idx)
  117. File "D:\git_workspace\sanoh\G01_0345\production.py", line 230, in input_param
  118. self.get_sel_product_idx_value(idx)
  119. File "D:\git_workspace\sanoh\G01_0345\production.py", line 131, in get_sel_product_idx_value
  120. paramresult = self.sqlclient.sql_inquire_all(sqlstr)
  121. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 68, in sql_inquire_all
  122. result = self.sql_inquire(sqlstr)
  123. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 61, in sql_inquire
  124. self.log_file.logger.error('mysql查询异常: {0}'.format(e), exc_info=True, stack_info=True)
  125. 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'")
  126. Traceback (most recent call last):
  127. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 56, in sql_inquire
  128. cursor.execute(sql)
  129. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
  130. result = self._query(query)
  131. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
  132. conn.query(q)
  133. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
  134. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  135. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
  136. result.read()
  137. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
  138. first_packet = self.connection._read_packet()
  139. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
  140. packet.raise_for_error()
  141. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
  142. err.raise_mysql_exception(self._data)
  143. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
  144. raise errorclass(errno, errval)
  145. pymysql.err.OperationalError: (1054, "Unknown column 'stat' in 'where clause'")
  146. Stack (most recent call last):
  147. File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
  148. app.gui_start()
  149. File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
  150. init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
  151. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
  152. self.tk.mainloop(n)
  153. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
  154. return self.func(*args)
  155. File "D:\git_workspace\sanoh\G01_0345\production.py", line 292, in <lambda>
  156. command=lambda: self.product_sel_button_event(0))
  157. File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
  158. self.input_param(idx)
  159. File "D:\git_workspace\sanoh\G01_0345\production.py", line 230, in input_param
  160. self.get_sel_product_idx_value(idx)
  161. File "D:\git_workspace\sanoh\G01_0345\production.py", line 131, in get_sel_product_idx_value
  162. paramresult = self.sqlclient.sql_inquire_all(sqlstr)
  163. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 68, in sql_inquire_all
  164. result = self.sql_inquire(sqlstr)
  165. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 61, in sql_inquire
  166. self.log_file.logger.error('mysql查询异常: {0}'.format(e), exc_info=True, stack_info=True)
  167. 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")
  168. Traceback (most recent call last):
  169. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 41, in sql_action
  170. cursor.execute(sql)
  171. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
  172. result = self._query(query)
  173. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
  174. conn.query(q)
  175. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
  176. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  177. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
  178. result.read()
  179. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
  180. first_packet = self.connection._read_packet()
  181. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
  182. packet.raise_for_error()
  183. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
  184. err.raise_mysql_exception(self._data)
  185. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
  186. raise errorclass(errno, errval)
  187. 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")
  188. Stack (most recent call last):
  189. File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
  190. app.gui_start()
  191. File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
  192. init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
  193. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
  194. self.tk.mainloop(n)
  195. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
  196. return self.func(*args)
  197. File "D:\git_workspace\sanoh\G01_0345\production.py", line 690, in <lambda>
  198. command=lambda: self.product_sel_button_event(0))
  199. File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
  200. self.input_param(idx)
  201. File "D:\git_workspace\sanoh\G01_0345\production.py", line 670, in input_param
  202. self.input_frame.mainloop()
  203. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
  204. self.tk.mainloop(n)
  205. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
  206. return self.func(*args)
  207. File "D:\git_workspace\sanoh\G01_0345\production.py", line 366, in input_enter
  208. self.sqlclient.sql_action_all(sqlstr)
  209. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 76, in sql_action_all
  210. result = self.sql_action(sqlstr)
  211. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 46, in sql_action
  212. self.log_file.logger.error('mysql执行异常: {0}'.format(e), exc_info=True, stack_info=True)
  213. 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")
  214. Traceback (most recent call last):
  215. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 41, in sql_action
  216. cursor.execute(sql)
  217. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
  218. result = self._query(query)
  219. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
  220. conn.query(q)
  221. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
  222. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  223. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
  224. result.read()
  225. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
  226. first_packet = self.connection._read_packet()
  227. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
  228. packet.raise_for_error()
  229. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
  230. err.raise_mysql_exception(self._data)
  231. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
  232. raise errorclass(errno, errval)
  233. 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")
  234. Stack (most recent call last):
  235. File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
  236. app.gui_start()
  237. File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
  238. init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
  239. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
  240. self.tk.mainloop(n)
  241. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
  242. return self.func(*args)
  243. File "D:\git_workspace\sanoh\G01_0345\production.py", line 691, in <lambda>
  244. command=lambda: self.product_sel_button_event(0))
  245. File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
  246. self.input_param(idx)
  247. File "D:\git_workspace\sanoh\G01_0345\production.py", line 671, in input_param
  248. self.input_frame.mainloop()
  249. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
  250. self.tk.mainloop(n)
  251. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
  252. return self.func(*args)
  253. File "D:\git_workspace\sanoh\G01_0345\production.py", line 386, in input_enter
  254. self.update_param_tbl(17700)
  255. File "D:\git_workspace\sanoh\G01_0345\production.py", line 285, in update_param_tbl
  256. self.sqlclient.sql_action_all(sqlstr)
  257. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 76, in sql_action_all
  258. result = self.sql_action(sqlstr)
  259. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 46, in sql_action
  260. self.log_file.logger.error('mysql执行异常: {0}'.format(e), exc_info=True, stack_info=True)
  261. 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")
  262. Traceback (most recent call last):
  263. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 41, in sql_action
  264. cursor.execute(sql)
  265. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
  266. result = self._query(query)
  267. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
  268. conn.query(q)
  269. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
  270. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  271. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
  272. result.read()
  273. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
  274. first_packet = self.connection._read_packet()
  275. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
  276. packet.raise_for_error()
  277. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
  278. err.raise_mysql_exception(self._data)
  279. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
  280. raise errorclass(errno, errval)
  281. 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")
  282. Stack (most recent call last):
  283. File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
  284. app.gui_start()
  285. File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
  286. init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
  287. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
  288. self.tk.mainloop(n)
  289. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
  290. return self.func(*args)
  291. File "D:\git_workspace\sanoh\G01_0345\production.py", line 691, in <lambda>
  292. command=lambda: self.product_sel_button_event(0))
  293. File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
  294. self.input_param(idx)
  295. File "D:\git_workspace\sanoh\G01_0345\production.py", line 671, in input_param
  296. self.input_frame.mainloop()
  297. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
  298. self.tk.mainloop(n)
  299. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
  300. return self.func(*args)
  301. File "D:\git_workspace\sanoh\G01_0345\production.py", line 402, in input_enter
  302. self.update_param_tbl(17720)
  303. File "D:\git_workspace\sanoh\G01_0345\production.py", line 285, in update_param_tbl
  304. self.sqlclient.sql_action_all(sqlstr)
  305. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 76, in sql_action_all
  306. result = self.sql_action(sqlstr)
  307. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 46, in sql_action
  308. self.log_file.logger.error('mysql执行异常: {0}'.format(e), exc_info=True, stack_info=True)
  309. 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")
  310. Traceback (most recent call last):
  311. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 41, in sql_action
  312. cursor.execute(sql)
  313. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
  314. result = self._query(query)
  315. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
  316. conn.query(q)
  317. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
  318. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  319. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
  320. result.read()
  321. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
  322. first_packet = self.connection._read_packet()
  323. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
  324. packet.raise_for_error()
  325. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
  326. err.raise_mysql_exception(self._data)
  327. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
  328. raise errorclass(errno, errval)
  329. 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")
  330. Stack (most recent call last):
  331. File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 2141, in <module>
  332. main()
  333. File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 2132, in main
  334. globals = debugger.run(setup['file'], None, None, is_module)
  335. File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1441, in run
  336. return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
  337. File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1448, in _exec
  338. pydev_imports.execfile(file, globals, locals) # execute the script
  339. 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
  340. exec(compile(contents+"\n", file, 'exec'), glob, loc)
  341. File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
  342. app.gui_start()
  343. File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
  344. init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
  345. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
  346. self.tk.mainloop(n)
  347. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
  348. return self.func(*args)
  349. File "D:\git_workspace\sanoh\G01_0345\production.py", line 691, in <lambda>
  350. command=lambda: self.product_sel_button_event(0))
  351. File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
  352. self.input_param(idx)
  353. File "D:\git_workspace\sanoh\G01_0345\production.py", line 671, in input_param
  354. self.input_frame.mainloop()
  355. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
  356. self.tk.mainloop(n)
  357. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
  358. return self.func(*args)
  359. File "D:\git_workspace\sanoh\G01_0345\production.py", line 386, in input_enter
  360. self.update_param_tbl(17700)
  361. File "D:\git_workspace\sanoh\G01_0345\production.py", line 285, in update_param_tbl
  362. self.sqlclient.sql_action_all(sqlstr)
  363. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 76, in sql_action_all
  364. result = self.sql_action(sqlstr)
  365. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 46, in sql_action
  366. self.log_file.logger.error('mysql执行异常: {0}'.format(e), exc_info=True, stack_info=True)
  367. 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")
  368. Traceback (most recent call last):
  369. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 41, in sql_action
  370. cursor.execute(sql)
  371. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
  372. result = self._query(query)
  373. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
  374. conn.query(q)
  375. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
  376. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  377. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
  378. result.read()
  379. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
  380. first_packet = self.connection._read_packet()
  381. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
  382. packet.raise_for_error()
  383. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
  384. err.raise_mysql_exception(self._data)
  385. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
  386. raise errorclass(errno, errval)
  387. 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")
  388. Stack (most recent call last):
  389. File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 2141, in <module>
  390. main()
  391. File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 2132, in main
  392. globals = debugger.run(setup['file'], None, None, is_module)
  393. File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1441, in run
  394. return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
  395. File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1448, in _exec
  396. pydev_imports.execfile(file, globals, locals) # execute the script
  397. 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
  398. exec(compile(contents+"\n", file, 'exec'), glob, loc)
  399. File "D:/git_workspace/sanoh/G01_0345/main.py", line 8, in <module>
  400. app.gui_start()
  401. File "D:\git_workspace\sanoh\G01_0345\app.py", line 809, in gui_start
  402. init_window.mainloop() #父窗口进入事件循环,可以理解为保持窗口运行,否则界面不展示
  403. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
  404. self.tk.mainloop(n)
  405. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
  406. return self.func(*args)
  407. File "D:\git_workspace\sanoh\G01_0345\production.py", line 691, in <lambda>
  408. command=lambda: self.product_sel_button_event(0))
  409. File "D:\git_workspace\sanoh\G01_0345\production.py", line 102, in product_sel_button_event
  410. self.input_param(idx)
  411. File "D:\git_workspace\sanoh\G01_0345\production.py", line 671, in input_param
  412. self.input_frame.mainloop()
  413. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1280, in mainloop
  414. self.tk.mainloop(n)
  415. File "D:\Python\Python36-32\lib\tkinter\__init__.py", line 1702, in __call__
  416. return self.func(*args)
  417. File "D:\git_workspace\sanoh\G01_0345\production.py", line 402, in input_enter
  418. self.update_param_tbl(17720)
  419. File "D:\git_workspace\sanoh\G01_0345\production.py", line 285, in update_param_tbl
  420. self.sqlclient.sql_action_all(sqlstr)
  421. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 76, in sql_action_all
  422. result = self.sql_action(sqlstr)
  423. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 46, in sql_action
  424. self.log_file.logger.error('mysql执行异常: {0}'.format(e), exc_info=True, stack_info=True)
  425. 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'")
  426. Traceback (most recent call last):
  427. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 56, in sql_inquire
  428. cursor.execute(sql)
  429. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 148, in execute
  430. result = self._query(query)
  431. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\cursors.py", line 310, in _query
  432. conn.query(q)
  433. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 548, in query
  434. self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  435. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
  436. result.read()
  437. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 1156, in read
  438. first_packet = self.connection._read_packet()
  439. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
  440. packet.raise_for_error()
  441. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
  442. err.raise_mysql_exception(self._data)
  443. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
  444. raise errorclass(errno, errval)
  445. pymysql.err.OperationalError: (1054, "Unknown column 'stat' in 'where clause'")
  446. Stack (most recent call last):
  447. File "D:\Python\Python36-32\lib\threading.py", line 884, in _bootstrap
  448. self._bootstrap_inner()
  449. File "D:\Python\Python36-32\lib\threading.py", line 916, in _bootstrap_inner
  450. self.run()
  451. File "D:\git_workspace\sanoh\G01_0345\output_file.py", line 225, in run
  452. self.get_product_param()
  453. File "D:\git_workspace\sanoh\G01_0345\output_file.py", line 40, in get_product_param
  454. results = self.sqlclient.sql_inquire_all(sqlstr)
  455. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 68, in sql_inquire_all
  456. result = self.sql_inquire(sqlstr)
  457. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 61, in sql_inquire
  458. self.log_file.logger.error('mysql查询异常: {0}'.format(e), exc_info=True, stack_info=True)
  459. 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
  460. Traceback (most recent call last):
  461. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 21, in connect
  462. database=self.database)
  463. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 353, in __init__
  464. self.connect()
  465. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 633, in connect
  466. self._request_authentication()
  467. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 932, in _request_authentication
  468. auth_packet = _auth.caching_sha2_password_auth(self, auth_packet)
  469. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\_auth.py", line 265, in caching_sha2_password_auth
  470. data = sha2_rsa_encrypt(conn.password, conn.salt, conn.server_public_key)
  471. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\_auth.py", line 144, in sha2_rsa_encrypt
  472. "'cryptography' package is required for sha256_password or caching_sha2_password auth methods"
  473. RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods
  474. Stack (most recent call last):
  475. File "D:\Python\Python36-32\lib\threading.py", line 884, in _bootstrap
  476. self._bootstrap_inner()
  477. File "D:\Python\Python36-32\lib\threading.py", line 916, in _bootstrap_inner
  478. self.run()
  479. File "D:\git_workspace\sanoh\G01_0345\pro.py", line 584, in run
  480. self.product_name_set()
  481. File "D:\git_workspace\sanoh\G01_0345\pro.py", line 503, in product_name_set
  482. paramresult = self.sqlclient.sql_inquire_all(sqlstr)
  483. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 68, in sql_inquire_all
  484. self.connect()
  485. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 24, in connect
  486. self.log_file.logger.error('mysql连接异常: {0}'.format(e), exc_info=True, stack_info=True)
  487. 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
  488. Traceback (most recent call last):
  489. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 21, in connect
  490. database=self.database)
  491. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 353, in __init__
  492. self.connect()
  493. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 633, in connect
  494. self._request_authentication()
  495. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\connections.py", line 932, in _request_authentication
  496. auth_packet = _auth.caching_sha2_password_auth(self, auth_packet)
  497. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\_auth.py", line 265, in caching_sha2_password_auth
  498. data = sha2_rsa_encrypt(conn.password, conn.salt, conn.server_public_key)
  499. File "D:\git_workspace\sanoh\G01_0345\venv_win32\lib\site-packages\pymysql\_auth.py", line 144, in sha2_rsa_encrypt
  500. "'cryptography' package is required for sha256_password or caching_sha2_password auth methods"
  501. RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods
  502. Stack (most recent call last):
  503. File "D:\Python\Python36-32\lib\threading.py", line 884, in _bootstrap
  504. self._bootstrap_inner()
  505. File "D:\Python\Python36-32\lib\threading.py", line 916, in _bootstrap_inner
  506. self.run()
  507. File "D:\git_workspace\sanoh\G01_0345\pro.py", line 584, in run
  508. self.product_name_set()
  509. File "D:\git_workspace\sanoh\G01_0345\pro.py", line 503, in product_name_set
  510. paramresult = self.sqlclient.sql_inquire_all(sqlstr)
  511. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 68, in sql_inquire_all
  512. self.connect()
  513. File "D:\git_workspace\sanoh\G01_0345\sql.py", line 24, in connect
  514. self.log_file.logger.error('mysql连接异常: {0}'.format(e), exc_info=True, stack_info=True)