AzurLaneAutoScript icon indicating copy to clipboard operation
AzurLaneAutoScript copied to clipboard

更新器无法读取到仓库

Open EnderAvaritia opened this issue 10 months ago • 6 comments

在提问之前...

  • [x] 我已经搜索了现有的 issues
  • [x] 我在提问题之前至少花费了 5 分钟来思考和准备
  • [x] 我已经阅读了 Wiki 中的 常见问题(FAQ)
  • [x] 我正在使用最新版的 Alas

描述你的问题

更新器无法拉取到提交

Image

点进去就报错

Image 报错附在下面了

是部署在arch上面的,改了下console.bat的内容并且执行了python -m deploy.set Repository=git://git.lyoko.io/AzurLaneAutoScript PypiMirror=https://mirrors.aliyun.com/pypi/simple,仍旧不能使用

如何复现

点进更新器就这样了,我挂了一个晚上什么都没干

预期行为

可以进行更新

相关 Logs

╭────────────────────────── Traceback (most recent call last) ───────────────────────────╮
│                                                                                        │
│ /home/EnderAvaritia/Desktop/AzurLaneAutoScript/venv/lib/python3.7/site-packages/pywebi │
│ o/session/threadbased.py:254 in run                                                    │
│                                                                                        │
│   253 │   │   │   │   try:                                                             │
│ ❱ 254 │   │   │   │   │   callback(event['data'])                                      │
│   255 │   │   │   │   except Exception as e:                                           │
│                                                                                        │
│ ╭────────────────────────────────────── locals ──────────────────────────────────────╮ │
│ │ callback = <function put_buttons.<locals>.click_callback at 0x7e5746e7e200>        │ │
│ │        e = TypeError("'NoneType' object is not iterable")                          │ │
│ │    event = {                                                                       │ │
│ │            │   'event': 'callback',                                                │ │
│ │            │   'task_id': 'CB-click_callback-6JxZvoDD9K',                          │ │
│ │            │   'data': 0                                                           │ │
│ │            }                                                                       │ │
│ │     self = <pywebio.session.threadbased.ThreadBasedSession object at               │ │
│ │            0x7e5744494510>                                                         │ │
│ ╰────────────────────────────────────────────────────────────────────────────────────╯ │
│ /home/EnderAvaritia/Desktop/AzurLaneAutoScript/venv/lib/python3.7/site-packages/pywebi │
│ o/output.py:801 in click_callback                                                      │
│                                                                                        │
│    800 │   │   if isinstance(onclick, Sequence):                                       │
│ ❱  801 │   │   │   return onclick[btn_idx]()                                           │
│    802 │   │   else:                                                                   │
│                                                                                        │
│ ╭────────────────────────────────────── locals ──────────────────────────────────────╮ │
│ │ btn_idx = 0                                                                        │ │
│ │    btns = [{'label': '更新器', 'value': 0, 'color': 'menu', 'disabled': False}]    │ │
│ │ onclick = [                                                                        │ │
│ │           │   <bound method AlasGUI.dev_update of <module.webui.app.AlasGUI object │ │
│ │           at 0x7e5744483b90>>                                                      │ │
│ │           ]                                                                        │ │
│ │  values = ['']                                                                     │ │
│ ╰────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                        │
│ /home/EnderAvaritia/Desktop/AzurLaneAutoScript/venv/lib/python3.7/site-packages/pywebi │
│ o/output.py:1796 in wrapper                                                            │
│                                                                                        │
│   1795 │   │   │   try:                                                                │
│ ❱ 1796 │   │   │   │   return func(*args, **kwargs)                                    │
│   1797 │   │   │   finally:                                                            │
│                                                                                        │
│ ╭──────────────────────────── locals ─────────────────────────────╮                    │
│ │   args = (<module.webui.app.AlasGUI object at 0x7e5744483b90>,) │                    │
│ │   func = <function AlasGUI.dev_update at 0x7e574e98aef0>        │                    │
│ │ kwargs = {}                                                     │                    │
│ │   self = <pywebio.output.use_scope_ object at 0x7e574ea011d0>   │                    │
│ ╰─────────────────────────────────────────────────────────────────╯                    │
│                                                                                        │
│ /home/EnderAvaritia/Desktop/AzurLaneAutoScript/module/webui/app.py:880 in dev_update   │
│                                                                                        │
│    879 │   │                                                                           │
│ ❱  880 │   │   update_table()                                                          │
│    881 │   │   self.task_handler.add(updater_switch.g(), delay=0.5, pending_delete=Tru │
│                                                                                        │
│ ╭────────────────────────────────────── locals ──────────────────────────────────────╮ │
│ │           self = <module.webui.app.AlasGUI object at 0x7e5744483b90>               │ │
│ │              u = <function AlasGUI.dev_update.<locals>.u at 0x7e57441cfe60>        │ │
│ │   update_table = <function AlasGUI.dev_update.<locals>.update_table at             │ │
│ │                  0x7e57441cf200>                                                   │ │
│ │ updater_switch = <module.webui.utils.Switch object at 0x7e574e92db90>              │ │
│ ╰────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                        │
│ /home/EnderAvaritia/Desktop/AzurLaneAutoScript/module/webui/app.py:761 in update_table │
│                                                                                        │
│    760 │   │   │   │   │   │   t("Gui.Update.Time"),                                   │
│ ❱  761 │   │   │   │   │   │   t("Gui.Update.Message"),                                │
│    762 │   │   │   │   │   ],                                                          │
│                                                                                        │
│ ╭────────────────── locals ──────────────────╮                                         │
│ │         history = (None, None, None, None) │                                         │
│ │    local_commit = (None, None, None, None) │                                         │
│ │ upstream_commit = (None, None, None, None) │                                         │
│ ╰────────────────────────────────────────────╯                                         │
│                                                                                        │
│ /home/EnderAvaritia/Desktop/AzurLaneAutoScript/venv/lib/python3.7/site-packages/pywebi │
│ o/io_ctrl.py:199 in inner                                                              │
│                                                                                        │
│   198 │   │   │   try:                                                                 │
│ ❱ 199 │   │   │   │   return func(*args, **kwargs)                                     │
│   200 │   │   │   except Exception:                                                    │
│                                                                                        │
│ ╭────────────────────────────────────── locals ──────────────────────────────────────╮ │
│ │          args = ([None, None, None, None],)                                        │ │
│ │         bound = OrderedDict([('tdata', [None, None, None, None]), ('header',       │ │
│ │                 ['SHA1', '作者', '提交时间', '提交信息'])])                        │ │
│ │ content_param = 'tdata'                                                            │ │
│ │          func = <function put_table at 0x7e574ed0a710>                             │ │
│ │        kwargs = {'header': ['SHA1', '作者', '提交时间', '提交信息']}               │ │
│ │         param = 'tdata'                                                            │ │
│ │        params = ['tdata']                                                          │ │
│ │           sig = <Signature (tdata, header=None, scope=None, position=-1) ->        │ │
│ │                 pywebio.io_ctrl.Output>                                            │ │
│ ╰────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                        │
│ /home/EnderAvaritia/Desktop/AzurLaneAutoScript/venv/lib/python3.7/site-packages/pywebi │
│ o/output.py:657 in put_table                                                           │
│                                                                                        │
│    656 │   else:                                                                       │
│ ❱  657 │   │   tdata = [list(i) for i in tdata]  # copy data                           │
│    658                                                                                 │
│                                                                                        │
│ ╭────────────────────── locals ───────────────────────╮                                │
│ │   header = ['SHA1', '作者', '提交时间', '提交信息'] │                                │
│ │ position = -1                                       │                                │
│ │    scope = None                                     │                                │
│ │    tdata = [None, None, None, None]                 │                                │
│ ╰─────────────────────────────────────────────────────╯                                │
│                                                                                        │
│ /home/EnderAvaritia/Desktop/AzurLaneAutoScript/venv/lib/python3.7/site-packages/pywebi │
│ o/output.py:657 in <listcomp>                                                          │
│                                                                                        │
│    656 │   else:                                                                       │
│ ❱  657 │   │   tdata = [list(i) for i in tdata]  # copy data                           │
│    658                                                                                 │
│                                                                                        │
│ ╭─────────────────── locals ────────────────────╮                                      │
│ │ .0 = <list_iterator object at 0x7e574428fe50> │                                      │
│ │  i = None                                     │                                      │
│ ╰───────────────────────────────────────────────╯                                      │
╰────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: 'NoneType' object is not iterable

截图

No response

还有别的吗?

No response

EnderAvaritia avatar Feb 27 '25 09:02 EnderAvaritia

该bug已有其他用户上报,请在alas根目录(即软件安装位置)查找console.bat文件,双击启动进入交互环境,并键入如下命令 python -m deploy.set Repository=git://git.lyoko.io/AzurLaneAutoScript PypiMirror=https://mirrors.aliyun.com/pypi/simple

yaoyaoman avatar Feb 27 '25 11:02 yaoyaoman

该bug已有其他用户上报,请在alas根目录(即软件安装位置)查找console.bat文件,双击启动进入交互环境,并键入如下命令 python -m deploy.set Repository=git://git.lyoko.io/AzurLaneAutoScript PypiMirror=https://mirrors.aliyun.com/pypi/simple

我在描述问题部分已经写了,我是在arch上部署的,并且改了改原有的console,.bat ,也执行了指令,结果是无效。

EnderAvaritia avatar Feb 27 '25 12:02 EnderAvaritia

确认你已经安装了 git

LmeSzinc avatar Feb 27 '25 13:02 LmeSzinc

确认你已经安装了 git

我确信我已经安装git,这是在虚拟环境外执行的截图:

Image

这是在虚拟环境内执行的截图:

Image

目前是自己写了个脚本手动更新。

EnderAvaritia avatar Feb 27 '25 13:02 EnderAvaritia

求一个更新脚本 我用docker部署有相同的问题

Dr1mH4X avatar Jun 21 '25 04:06 Dr1mH4X

求一个更新脚本 我用docker部署有相同的问题

git commit --quiet --all -m local_autocommit
git fetch
git merge -s recursive -X theirs

EnderAvaritia avatar Jun 21 '25 06:06 EnderAvaritia