AzurLaneAutoScript
AzurLaneAutoScript copied to clipboard
日服 运行科研任务时未滑动提示AttributeError:“列表”对象没有属性“较低”错误
在提问之前...
- [X] 我已经搜索了现有的 issues
- [X] 我在提问题之前至少花费了 5 分钟来思考和准备
- [X] 我已经阅读了 Wiki 中的 常见问题(FAQ)
- [X] 我正在使用最新版的 Alas
描述你的问题
运行科研任务时领取奖励返回军部研究室主页时,点击科研项目时几秒后出现错误
如何复现
1.前往‘军部研究室’ 2.点击“左方的研究队列并领取奖励,然后返回军部研究室主页” 3.点击军部研究室项目时几秒后未点击下一个按钮 4.出现问题
预期行为
点击军部研究室项目时几秒后点击下一个按钮并选择
相关 Logs
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
RESEARCH
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
2023-07-14 07:00:41.330 | INFO | Reuse forward: ForwardItem(serial='emulator-5554', local='tcp:20594',
remote='tcp:53516')
2023-07-14 07:00:41.561 | INFO | [Screen_size] 1280x720
2023-07-14 07:00:41.626 | INFO | <<< UI ENSURE >>>
2023-07-14 07:00:41.628 | INFO | UI get current page
2023-07-14 07:00:41.650 | INFO | [UI] page_main
2023-07-14 07:00:41.652 | INFO | Goto page_research
2023-07-14 07:00:41.654 | INFO | <<< UI GOTO PAGE_RESEARCH >>>
2023-07-14 07:00:41.665 | INFO | Page switch: page_main -> page_reshmenu
2023-07-14 07:00:41.666 | INFO | Click ( 688, 689) @ MAIN_GOTO_RESHMENU
2023-07-14 07:00:41.668 | INFO | <<< MINITOUCH INIT >>>
2023-07-14 07:00:41.687 | INFO | [Device Orientation] 0 (Normal)
2023-07-14 07:00:41.689 | INFO | Reuse forward: ForwardItem(serial='emulator-5554', local='tcp:20079',
remote='localabstract:minitouch')
2023-07-14 07:00:41.693 | INFO | v 1
2023-07-14 07:00:41.694 | INFO | ^ 10 1279 719 2
2023-07-14 07:00:41.695 | INFO | $ 4494
2023-07-14 07:00:41.696 | INFO | minitouch running on port: 20079, pid: 4494
2023-07-14 07:00:41.697 | INFO | max_contact: 10; max_x: 1279; max_y: 719; max_pressure: 2
2023-07-14 07:00:42.650 | INFO | Page switch: page_reshmenu -> page_research
2023-07-14 07:00:42.652 | INFO | Click ( 326, 337) @ RESHMENU_GOTO_RESEARCH
2023-07-14 07:00:43.238 | INFO | Page arrive: page_research
2023-07-14 07:00:43.239 | INFO | <<< UI CLICK >>>
2023-07-14 07:00:43.249 | INFO | Click ( 33, 244) @ RESEARCH_GOTO_QUEUE
════════════════════════════════════════════════════ QUEUE RECEIVE ════════════════════════════════════════════════════
2023-07-14 07:00:43.545 | INFO | QUEUE RECEIVE
2023-07-14 07:00:43.548 | INFO | Received rewards from 0 projects
2023-07-14 07:00:43.567 | INFO | Loading OCR model: ./bin/cnocr_models/azur_lane
2023-07-14 07:00:43.654 | INFO | [QUEUE_REMAIN 0.105s] 02:35:20
2023-07-14 07:00:43.656 | INFO | The first research ended at: 2023-07-14 09:36:03.549990
2023-07-14 07:00:43.658 | INFO | <<< UI CLICK >>>
2023-07-14 07:00:43.662 | INFO | Click ( 63, 42) @ BACK_ARROW
──────────────────────────────────────────────── RECEIVE 6TH RESEARCH ─────────────────────────────────────────────────
2023-07-14 07:00:44.516 | INFO | RECEIVE 6TH RESEARCH
2023-07-14 07:00:44.527 | INFO | Research status: ['detail', 'detail', 'detail', 'detail', 'detail']
2023-07-14 07:00:44.529 | INFO | No research has finished
2023-07-14 07:00:44.536 | INFO | Research status: ['detail', 'detail', 'detail', 'detail', 'detail']
═════════════════════════════════════════════════ RESEARCH FILL QUEUE ═════════════════════════════════════════════════
2023-07-14 07:00:44.539 | INFO | RESEARCH FILL QUEUE
2023-07-14 07:00:44.542 | INFO | Research queue: ['running', 'waiting', 'waiting', 'waiting', 'waiting']
2023-07-14 07:00:44.544 | INFO | [Research queue slot] 0
2023-07-14 07:00:44.550 | INFO | Research status: ['detail', 'detail', 'detail', 'detail', 'detail']
2023-07-14 07:00:44.552 | INFO | Select the 6th research
─────────────────────────────────────────────────── RESEARCH SELECT ───────────────────────────────────────────────────
2023-07-14 07:00:44.554 | INFO | RESEARCH SELECT
2023-07-14 07:00:44.555 | INFO | Research goto detail (project 3)
2023-07-14 07:00:44.564 | INFO | Click ( 852, 219) @ ENTRANCE_4
2023-07-14 07:00:46.058 | INFO | [DURATION_DETAIL 0.033s] 01:00:00
2023-07-14 07:00:46.177 | ERROR | AttributeError: 'list' object has no attribute 'lower'
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ │
│ D:\AzurLaneAutoScript\alas.py:68 in run │
│ │
│ 65 │ def run(self, command): │
│ 66 │ │ try: │
│ 67 │ │ │ self.device.screenshot() │
│ > 68 │ │ │ self.__getattribute__(command)() │
│ 69 │ │ │ return True │
│ 70 │ │ except TaskEnd: │
│ 71 │ │ │ return True │
│ │
│ ┌────────────────────────────── locals ──────────────────────────────┐ │
│ │ command = 'research' │ │
│ │ e = AttributeError("'list' object has no attribute 'lower'") │ │
│ │ self = <alas.AzurLaneAutoScript object at 0x00000200700A11C8> │ │
│ └────────────────────────────────────────────────────────────────────┘ │
│ D:\AzurLaneAutoScript\alas.py:185 in research │
│ │
│ 182 │ │
│ 183 │ def research(self): │
│ 184 │ │ from module.research.research import RewardResearch │
│ > 185 │ │ RewardResearch(config=self.config, device=self.device).run() │
│ 186 │ │
│ 187 │ def commission(self): │
│ 188 │ │ from module.commission.commission import RewardCommission │
│ │
│ ┌──────────────────────────────── locals ─────────────────────────────────┐ │
│ │ RewardResearch = <class 'module.research.research.RewardResearch'> │ │
│ │ self = <alas.AzurLaneAutoScript object at 0x00000200700A11C8> │ │
│ └─────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\AzurLaneAutoScript\module\research\research.py:576 in run │
│ │
│ 573 │ │ self.receive_6th_research() │
│ 574 │ │ │
│ 575 │ │ # Fill queue │
│ > 576 │ │ self.research_fill_queue() │
│ 577 │ │ slot = self.get_queue_slot() │
│ 578 │ │ # Scheduler │
│ 579 │ │ if slot == 5: │
│ │
│ ┌─────────────────────────────────── locals ────────────────────────────────────┐ │
│ │ self = <module.research.research.RewardResearch object at 0x0000020021E55EC8> │ │
│ └───────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\AzurLaneAutoScript\module\research\research.py:490 in research_fill_queue │
│ │
│ 487 │ │ │ status = self.get_research_status(self.device.image) │
│ 488 │ │ │ if 'waiting' not in status: │
│ 489 │ │ │ │ logger.info('Select the 6th research') │
│ > 490 │ │ │ │ self.research_queue_append(drop=drop, add_queue=False) │
│ 491 │ │ │ else: │
│ 492 │ │ │ │ logger.info('6th research already waiting') │
│ 493 │
│ │
│ ┌──────────────────────────────────── locals ─────────────────────────────────────┐ │
│ │ _ = 0 │ │
│ │ drop = <module.statistics.azurstats.DropImage object at 0x00000200228EE248> │ │
│ │ self = <module.research.research.RewardResearch object at 0x0000020021E55EC8> │ │
│ │ status = ['detail', 'detail', 'detail', 'detail', 'detail'] │ │
│ │ total = 0 │ │
│ └─────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\AzurLaneAutoScript\module\research\research.py:446 in research_queue_append │
│ │
│ 443 │ │ project_record = None │
│ 444 │ │ for _ in range(2): │
│ 445 │ │ │ logger.hr('Research select', level=2) │
│ > 446 │ │ │ self.research_project_list_init(from_queue=True) │
│ 447 │ │ │ project_record = self.device.image │
│ 448 │ │ │ priority = self.research_sort_filter() │
│ 449 │ │ │ result = self.research_select(priority, drop=drop, add_queue=add_queue) │
│ │
│ ┌──────────────────────────────────────── locals ─────────────────────────────────────────┐ │
│ │ _ = 0 │ │
│ │ add_queue = False │ │
│ │ drop = <module.statistics.azurstats.DropImage object at 0x00000200228EE248> │ │
│ │ project_record = None │ │
│ │ self = <module.research.research.RewardResearch object at 0x0000020021E55EC8> │ │
│ └─────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\AzurLaneAutoScript\module\research\research.py:430 in research_project_list_init │
│ │
│ 427 │ │ │ self.device.screenshot() │
│ 428 │ │ if not from_queue: │
│ 429 │ │ │ self.ensure_research_center_stable() │
│ > 430 │ │ self.research_detect() │
│ 431 │ │
│ 432 │ def research_queue_append(self, drop=None, add_queue=True): │
│ 433 │ │ """ │
│ │
│ ┌────────────────────────────────────── locals ───────────────────────────────────────┐ │
│ │ from_queue = True │ │
│ │ self = <module.research.research.RewardResearch object at 0x0000020021E55EC8> │ │
│ └─────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\AzurLaneAutoScript\module\base\decorator.py:70 in wrapper │
│ │
│ 67 │ │ │ │ │ if not all(flag): │
│ 68 │ │ │ │ │ │ continue │
│ 69 │ │ │ │ │ │
│ > 70 │ │ │ │ │ return record['func'](self, *args, **kwargs) │
│ 71 │ │ │ │ │
│ 72 │ │ │ │ logger.warning(f'No option fits for {name}, using the last define │
│ func.') │
│ 73 │ │ │ │ return func(self, *args, **kwargs) │
│ │
│ ┌──────────────────────────────────────── locals ────────────────────────────────────────┐ │
│ │ args = () │ │
│ │ cls = <class 'module.base.decorator.Config'> │ │
│ │ flag = [True] │ │
│ │ func = <function ResearchSelector.research_detect at 0x000002002281DDC8> │ │
│ │ kwargs = {} │ │
│ │ logger = <Logger alas (INFO)> │ │
│ │ name = 'research_detect' │ │
│ │ record = { │ │
│ │ │ 'options': {'SERVER': 'jp'}, │ │
│ │ │ 'func': <function ResearchSelector.research_detect at 0x000002002281DB88> │ │
│ │ } │ │
│ │ self = <module.research.research.RewardResearch object at 0x0000020021E55EC8> │ │
│ └────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\AzurLaneAutoScript\module\research\selector.py:77 in research_detect │
│ │
│ 74 │ │ │ 'image' is a null argument as described above. │
│ 75 │ │ │ What we need here is the current screen 'self.device.image'. │
│ 76 │ │ │ """ │
│ > 77 │ │ │ project = research_jp_detect(self.device.image) │
│ 78 │ │ │ logger.attr('Project', project) │
│ 79 │ │ │ projects.append(project) │
│ 80 │ │ │ self.research_detail_quit() │
│ │
│ ┌─────────────────────────────────────── locals ───────────────────────────────────────┐ │
│ │ _ = 0 │ │
│ │ proj_sorted = [] │ │
│ │ projects = [] │ │
│ │ self = <module.research.research.RewardResearch object at 0x0000020021E55EC8> │ │
│ └──────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\AzurLaneAutoScript\module\research\project.py:352 in research_jp_detect │
│ │
│ 349 │ if project.ship: │
│ 350 │ │ project.ship_rarity = 'dr' if project.ship in project.DR_SHIP else 'pry' │
│ 351 │ project.name = f'{project.series}-{project.genre}-{project.duration}{project.ship}' │
│ > 352 │ if not project.check_valid(): │
│ 353 │ │ logger.warning(f'Invalid research {project}') │
│ 354 │ return project │
│ 355 │
│ │
│ ┌────────────────────────────────────── locals ──────────────────────────────────────┐ │
│ │ cost = 'need_part' │ │
│ │ costs = {'need_coin': False, 'need_cube': True, 'need_part': False} │ │
│ │ image = array([[[41, 42, 41], │ │
│ │ │ │ [41, 42, 41], │ │
│ │ │ │ [41, 41, 41], │ │
│ │ │ │ ..., │ │
│ │ │ │ [28, 29, 47], │ │
│ │ │ │ [25, 28, 44], │ │
│ │ │ │ [25, 28, 41]], │ │
│ │ │ │ │
│ │ │ [[41, 42, 41], │ │
│ │ │ │ [41, 41, 41], │ │
│ │ │ │ [41, 41, 41], │ │
│ │ │ │ ..., │ │
│ │ │ │ [28, 29, 47], │ │
│ │ │ │ [25, 28, 44], │ │
│ │ │ │ [25, 28, 41]], │ │
│ │ │ │ │
│ │ │ [[41, 42, 41], │ │
│ │ │ │ [41, 42, 41], │ │
│ │ │ │ [41, 41, 41], │ │
│ │ │ │ ..., │ │
│ │ │ │ [28, 29, 47], │ │
│ │ │ │ [25, 28, 44], │ │
│ │ │ │ [25, 28, 41]], │ │
│ │ │ │ │
│ │ │ ..., │ │
│ │ │ │ │
│ │ │ [[25, 24, 33], │ │
│ │ │ │ [25, 24, 33], │ │
│ │ │ │ [25, 24, 33], │ │
│ │ │ │ ..., │ │
│ │ │ │ [25, 24, 33], │ │
│ │ │ │ [25, 24, 33], │ │
│ │ │ │ [25, 24, 33]], │ │
│ │ │ │ │
│ │ │ [[25, 24, 33], │ │
│ │ │ │ [25, 24, 33], │ │
│ │ │ │ [25, 24, 33], │ │
│ │ │ │ ..., │ │
│ │ │ │ [25, 24, 33], │ │
│ │ │ │ [25, 24, 33], │ │
│ │ │ │ [25, 24, 33]], │ │
│ │ │ │ │
│ │ │ [[25, 24, 33], │ │
│ │ │ │ [25, 24, 33], │ │
│ │ │ │ [25, 24, 33], │ │
│ │ │ │ ..., │ │
│ │ │ │ [25, 24, 33], │ │
│ │ │ │ [25, 24, 33], │ │
│ │ │ │ [25, 24, 33]]], dtype=uint8) │ │
│ │ project = <module.research.project.ResearchProjectJp object at 0x00000200228CED08> │ │
│ └────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
│ D:\AzurLaneAutoScript\module\research\project.py:594 in check_valid │
│ │
│ 591 │ │
│ 592 │ def check_valid(self): │
│ 593 │ │ self.valid = False │
│ > 594 │ │ if self.series.lower() == "s0": │
│ 595 │ │ │ return False │
│ 596 │ │ if self.genre.lower() not in self.GENRE: │
│ 597 │ │ │ return False │
│ │
│ ┌──────────────────────────────────── locals ─────────────────────────────────────┐ │
│ │ self = <module.research.project.ResearchProjectJp object at 0x00000200228CED08> │ │
│ └─────────────────────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
AttributeError: 'list' object has no attribute 'lower'
2023-07-14 07:00:46.896 | WARNING | Saving error: ./log/error/1689289246896
截图
还有别的吗?
ALAS配置、错误日志和视频 1689290660205.zip
日服,蓝叠模拟器,遇到同样报错 1689292629089.zip
同样问题,能开一下控制科研选项跑不跑的设置吗
日服,夜神模拟器,遇到同样问题,错误信息与主楼相同
科研任务可以正常使用了,感谢