log_ctrl.txt 1.8 KB

123456789101112131415161718192021222324252627
  1. 2022-04-27 21:10:03,244 - ERROR - (KeyError('factory'),)
  2. 2022-04-27 21:10:03,629 - ERROR - Traceback (most recent call last):
  3. File "C:\Users\NING MEI\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\indexes\base.py", line 3361, in get_loc
  4. return self._engine.get_loc(casted_key)
  5. File "pandas\_libs\index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc
  6. File "pandas\_libs\index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
  7. File "pandas\_libs\hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item
  8. File "pandas\_libs\hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item
  9. KeyError: 'factory'
  10. The above exception was the direct cause of the following exception:
  11. Traceback (most recent call last):
  12. File "d:\01WorkSpace\python\data_analyze_platform\USER\SPF\alibaba\08BatCrtl\main.py", line 53, in ctrl_cal
  13. df_ram_rlyctrl, df_ram_statectrl=BatCrtl.bat_crtl()
  14. File "d:\01WorkSpace\python\data_analyze_platform\USER\SPF\alibaba\08BatCrtl\CBMSBatCtrl.py", line 34, in bat_crtl
  15. df_res1=self._bat_rlycrtl()
  16. File "d:\01WorkSpace\python\data_analyze_platform\USER\SPF\alibaba\08BatCrtl\CBMSBatCtrl.py", line 56, in _bat_rlycrtl
  17. factory=self.df_bms.iloc[0]['factory']
  18. File "C:\Users\NING MEI\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\series.py", line 942, in __getitem__
  19. return self._get_value(key)
  20. File "C:\Users\NING MEI\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\series.py", line 1051, in _get_value
  21. loc = self.index.get_loc(label)
  22. File "C:\Users\NING MEI\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\indexes\base.py", line 3363, in get_loc
  23. raise KeyError(key) from err
  24. KeyError: 'factory'