LmeSzinc / AzurLaneAutoScript

Azur Lane bot (CN/EN/JP/TW) 碧蓝航线脚本 | 无缝委托科研,全自动大世界
https://alas.azurlane.cloud
GNU General Public License v3.0
6.87k stars 824 forks source link

[Errno 2] No such file or directory: 'F:\\AzurLaneAutoScript\\_ufuncs.pyx'. ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。 #2111

Closed hotaru-hoshizora closed 1 year ago

hotaru-hoshizora commented 1 year ago

在提问之前...

描述你的问题

今日碧蓝航线维护导致脚本正常报错 进行简单维护排障之后重新开启脚本调用等待开服时出现了致命错误:

ALAs无法运行相应文件,导致包括性能测试在内的所有操作均无法运行。 在进行重启电脑,重新解压缩(尝试资源修复)和初始化Alas之后,仍然无法解决和运行alas。 更新器的更新日期为1月11日(SHA:67F53D84),在问题提交时仍为最新版本。

如何复现

  1. 周三晚上保持运行Alas(0点之前)
  2. 之后长挂到周四9点,碧蓝航线进行维护,alas无法识别维护界面ui,随后报错。
  3. 10点起床修复错误,调整参数(存油)并重新启动脚本,唤醒脚本的服务器检测循环。
  4. 在14点左右,游戏维护完成,alas完成检测循环之后无法调用文件,出现问题并导致设备占用异常(高占用)。
  5. 其尝试使用性能测试等工具尝试查错,未果。

预期行为

在昨晚长挂至碧蓝维护之后,alas会因为无法识别弹出的pop窗口而报错,因此在起床后会修正参数并且重新挂起函数. (事实上也成功重新挂起并且进入了等待循环)

但服务器维护完成之后,成功执行了服务器识别,但在启动工作的时候无法正常调用,随后瘫痪。

相关 Logs

因为日志超出字符上限(65536字节),此处仅粘贴部分输出内容。
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐

    F:\AzurLaneAutoScript\module\webui\process_manager.py:136 in run_process

    133                  
    134                          if e is not None:
    135                                 AzurLaneAutoScript.stop_event = e 
    > 136                          AzurLaneAutoScript(config_name=config_name).loop()
    137                   elif func == "Daemon": 
    138                          from module.daemon.daemon import AzurLaneDaemon
    139 

    ┌────────────────────────────────────── locals ───────────────────────────────────────┐
        AzurLaneAutoScript = <class 'alas.AzurLaneAutoScript'>    
    AzurLaneConfig = <class 'module.config.config.AzurLaneConfig'>    
    config_name = 'alas'    
        e = ImportError('DLL load failed: %1 不是有效的 Win32 应用程序。')    
        func = 'alas'    
        q = <AutoProxy[Queue] object, typeid 'Queue' at 0x25658d4bec8>    
    └─────────────────────────────────────────────────────────────────────────────────────┘
    F:\AzurLaneAutoScript\alas.py:483 in loop 

    480                          logger.info('Server or network is recovered. Restart game client') 
    481                          self.config.task_call('Restart')
    482                   # Get task 
    > 483                   task = self.get_next_task()
    484                   # Init device and change server 
    485                   _ = self.device
    486                   # Skip first restart 

    ┌──────────────────────────────── locals ─────────────────────────────────┐
        failure_record = {}    
        is_first = True    
    self = <alas.AzurLaneAutoScript object at 0x0000025657DDE208>    
    └─────────────────────────────────────────────────────────────────────────┘

    F:\AzurLaneAutoScript\alas.py:418 in get_next_task 

    415                  
    416                   from module.base.resource import release_resources 
    417                   if self.config.task.command != 'Alas': 
    > 418                          release_resources(next_task=task.command)
    419                  
    420                   if task.next_run > datetime.now(): 
    421                          logger.info(f'Wait until {task.next_run} for task `{task.command}`')

    ┌────────────────────────────────── locals ──────────────────────────────────┐
        release_resources = <function release_resources at 0x0000025659901558>    
    self = <alas.AzurLaneAutoScript object at 0x0000025657DDE208>    
    task = Restart (Enable, 2023-01-12 15:42:53)    
    └────────────────────────────────────────────────────────────────────────────┘

    F:\AzurLaneAutoScript\module\base\resource.py:121 in release_resources 

    118            obj.resource_release()
    119
    120        # Release cached images for map detection
    > 121        from module.map_detection.utils_assets import ASSETS 
    122        attr_list = [ 
    123            'ui_mask',
    124            'ui_mask_os',

    ┌─────────────────────────────── locals ────────────────────────────────┐ 
    model = 'tw'
        models = ['cnocr', 'jp', 'tw']
        next_task = 'Restart'
        OCR_MODEL = <module.ocr.models.OcrModel object at 0x0000025677F22DC8>
    State = <class 'module.webui.setting.State'>
    └───────────────────────────────────────────────────────────────────────┘ 

    F:\AzurLaneAutoScript\module\map_detection\utils_assets.py:5 in <module>

    2 import numpy as np 
    3 
    4 from module.base.decorator import cached_property
    >5 from module.base.mask import Mask 
    6 from module.base.utils import crop
    7 
    8 UI_MASK = Mask(file='./assets/mask/MASK_MAP_UI.png')

        __builtins__ = {
    '__name__': 'builtins',
    '__doc__': 'Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the
        `nil'+46,
    '__package__': '',
    '__loader__': <class '_frozen_importlib.BuiltinImporter'>, 
    '__spec__': ModuleSpec(name='builtins', loader=<class
        '_frozen_importlib.BuiltinImporter'>), 
    '__build_class__': <built-in function __build_class__>, 
    '__import__': <built-in function __import__>,
    'abs': <built-in function abs>, 
    'all': <built-in function all>, 
    'any': <built-in function any>, 
    ... +144
        }
        __cached__ = 'F:\\AzurLaneAutoScript\\module\\map_detection\\__pycache__\\utils_assets.cpython-37.p'+2 
        __doc__ = None
    __file__ = 'F:\\AzurLaneAutoScript\\module\\map_detection\\utils_assets.py'
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x000002567FFEBB88> 
    __name__ = 'module.map_detection.utils_assets' 
    __package__ = 'module.map_detection'
    __spec__ = ModuleSpec(name='module.map_detection.utils_assets',
        loader=<_frozen_importlib_external.SourceFileLoader object at 0x000002567FFEBB88>,
        origin='F:\\AzurLaneAutoScript\\module\\map_detection\\utils_assets.py')
        cached_property = <class 'module.base.decorator.cached_property'> 
        cv2 = <module 'cv2.cv2' from
        'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\cv2\\cv2.cp37-win_amd64.pyd'> 
    np = <module 'numpy' from 
        'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\numpy\\__init__.py'> 

    F:\AzurLaneAutoScript\module\base\mask.py:4 in <module> 

    1 import cv2
    2 import numpy as np 
    3 
    >4 from module.base.template import Template 
    5 from module.base.utils import image_channel, load_image, rgb2gray 
    6 
    7 

        __builtins__ = {
    '__name__': 'builtins',
    '__doc__': 'Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the
        `nil'+46,
    '__package__': '',
    '__loader__': <class '_frozen_importlib.BuiltinImporter'>, 
    '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>),
    '__build_class__': <built-in function __build_class__>, 
    '__import__': <built-in function __import__>,
    'abs': <built-in function abs>, 
    'all': <built-in function all>, 
    'any': <built-in function any>, 
    ... +144
        }
        __cached__ = 'F:\\AzurLaneAutoScript\\module\\base\\__pycache__\\mask.cpython-37.pyc'
        __doc__ = None
    __file__ = 'F:\\AzurLaneAutoScript\\module\\base\\mask.py' 
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x00000256362DB108> 
    __name__ = 'module.base.mask'
    __package__ = 'module.base'
    __spec__ = ModuleSpec(name='module.base.mask', loader=<_frozen_importlib_external.SourceFileLoader object
        at 0x00000256362DB108>, origin='F:\\AzurLaneAutoScript\\module\\base\\mask.py')
        cv2 = <module 'cv2.cv2' from
        'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\cv2\\cv2.cp37-win_amd64.pyd'> 
    np = <module 'numpy' from 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\numpy\\__init__.py'> 

    F:\AzurLaneAutoScript\module\base\template.py:10 in <module>

    7 from module.base.resource import Resource 
    8 from module.base.utils import * 
    9 from module.config.server import VALID_SERVER
    >10 from module.map_detection.utils import Points
    11 
    12 
    13 class Template(Resource): 

        __builtins__ = {
    '__name__': 'builtins',
    '__doc__': 'Built-in functions, exceptions, and other
        objects.\n\nNoteworthy: None is the `nil'+46,
    '__package__': '',
    '__loader__': <class '_frozen_importlib.BuiltinImporter'>, 
    '__spec__': ModuleSpec(name='builtins', loader=<class
        '_frozen_importlib.BuiltinImporter'>), 
    '__build_class__': <built-in function __build_class__>, 
    '__import__': <built-in function __import__>,
    'abs': <built-in function abs>, 
    'all': <built-in function all>, 
    'any': <built-in function any>, 
    ... +144
        }
        __cached__ = 'F:\\AzurLaneAutoScript\\module\\base\\__pycache__\\template.cpython-37.pyc'
        __doc__ = None
    __file__ = 'F:\\AzurLaneAutoScript\\module\\base\\template.py'
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x00000256362DB448> 
    __name__ = 'module.base.template'
    __package__ = 'module.base'
    __spec__ = ModuleSpec(name='module.base.template',
        loader=<_frozen_importlib_external.SourceFileLoader object at
        0x00000256362DB448>, 
        origin='F:\\AzurLaneAutoScript\\module\\base\\template.py') 
        area_cross_area = <function area_cross_area at 0x0000025677E32AF8>
        area_in_area = <function area_in_area at 0x0000025677E32A68>
        area_limit = <function area_limit at 0x0000025677E32828>
    area_offset = <function area_offset at 0x0000025677E32678> 
    area_pad = <function area_pad at 0x0000025677E32708> 
        area_size = <function area_size at 0x0000025677E328B8>
        Button = <class 'module.base.button.Button'> 
        cached_property = <class 'module.base.decorator.cached_property'> 
    color_bar_percentage = <function color_bar_percentage at 0x0000025677F168B8> 
        color_mapping = <function color_mapping at 0x0000025677F16708>
        color_similar = <function color_similar at 0x0000025677F16438>
        color_similar_1d = <function color_similar_1d at 0x0000025677F164C8>
        color_similarity = <function color_similarity at 0x0000025677F163A8>
        color_similarity_2d = <function color_similarity_2d at 0x0000025677F16558>
        crop = <function crop at 0x0000025677E32EE8>
        cv2 = <module 'cv2.cv2' from
        'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\cv2\\cv2.cp37-win_amd64…
        ensure_int = <function ensure_int at 0x0000025677E324C8>
    ensure_time = <function ensure_time at 0x0000025677E32438> 
        extract_letters = <function extract_letters at 0x0000025677F165E8>
        extract_white_letters = <function extract_white_letters at 0x0000025677F16678>
        float2str = <function float2str at 0x0000025677E32B88>
    get_bbox = <function get_bbox at 0x0000025677F16318> 
        get_color = <function get_color at 0x0000025677F16288>
    Image = <module 'PIL.Image' from
        'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\PIL\\Image.py'>
        image_channel = <function image_channel at 0x0000025677F16048>
        image_left_strip = <function image_left_strip at 0x0000025677F16798>
        image_size = <function image_size at 0x0000025677F160D8>
        imageio = <module 'imageio' from
        'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\imageio\\__init__.py'>
    limit_in = <function limit_in at 0x0000025677E32798> 
        load_image = <function load_image at 0x0000025677E32DC8>
        location2node = <function location2node at 0x0000025677E32D38>
        node2location = <function node2location at 0x0000025677E32CA8>
    np = <module 'numpy' from 
        'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\numpy\\__init__.py'> 
    os = <module 'os' from 'F:\\AzurLaneAutoScript\\toolkit\\lib\\os.py'>
        point2str = <function point2str at 0x0000025677E32C18>
        point_in_area = <function point_in_area at 0x0000025677E329D8>
    point_limit = <function point_limit at 0x0000025677E32948> 
    random_line_segments = <function random_line_segments at 0x0000025677E323A8> 
        random_normal_distribution_int = <function random_normal_distribution_int at 0x0000025677E08DC8>
        random_rectangle_point = <function random_rectangle_point at 0x0000025677E32318>
    random_rectangle_vector = <function random_rectangle_vector at 0x0000025677E321F8> 
    random_rectangle_vector_opted = <function random_rectangle_vector_opted at 0x0000025677E325E8> 
        red_overlay_transparency = <function red_overlay_transparency at 0x0000025677F16828>
        resize = <function resize at 0x0000025677E32F78>
    Resource = <class 'module.base.resource.Resource'>
    rgb2gray = <function rgb2gray at 0x0000025677F16168> 
        rgb2hsv = <function rgb2hsv at 0x0000025677F161F8>
        save_image = <function save_image at 0x0000025677E32E58>
        VALID_SERVER = ['cn', 'en', 'jp', 'tw']

    F:\AzurLaneAutoScript\module\map_detection\utils.py:2 in <module> 

    1 import numpy as np
    > 2 from scipy import optimize 
    3 
    4 from module.base.utils import area_pad 
    5 

        __builtins__ = {
    '__name__': 'builtins',
    '__doc__': 'Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the
        `nil'+46,
    '__package__': '',
    '__loader__': <class '_frozen_importlib.BuiltinImporter'>, 
    '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>),
    '__build_class__': <built-in function __build_class__>, 
    '__import__': <built-in function __import__>,
    'abs': <built-in function abs>, 
    'all': <built-in function all>, 
    'any': <built-in function any>, 
    ... +144
        }
        __cached__ = 'F:\\AzurLaneAutoScript\\module\\map_detection\\__pycache__\\utils.cpython-37.pyc'
        __doc__ = None
    __file__ = 'F:\\AzurLaneAutoScript\\module\\map_detection\\utils.py'
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x00000256362DBE08> 
    __name__ = 'module.map_detection.utils'
    __package__ = 'module.map_detection'
    __spec__ = ModuleSpec(name='module.map_detection.utils',
        loader=<_frozen_importlib_external.SourceFileLoader object at 0x00000256362DBE08>,
        origin='F:\\AzurLaneAutoScript\\module\\map_detection\\utils.py') 
    np = <module 'numpy' from 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\numpy\\__init__.py'> 

    F:\AzurLaneAutoScript\toolkit\lib\site-packages\scipy\optimize\__init__.py:390 in <module>

    387 from __future__ import division, print_function, absolute_import 
    388 
    389 from .optimize import * 
    > 390 from ._minimize import *
    391 from ._root import * 
    392 from ._root_scalar import *
    393 from .minpack import * 

    __builtins__ = { 
           '__name__': 'builtins',
           '__doc__': 'Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is
    the `nil'+46, 
           '__package__': '', 
           '__loader__': <class '_frozen_importlib.BuiltinImporter'>,
           '__spec__': ModuleSpec(name='builtins', loader=<class
    '_frozen_importlib.BuiltinImporter'>),
           '__build_class__': <built-in function __build_class__>,
           '__import__': <built-in function __import__>, 
           'abs': <built-in function abs>,
           'all': <built-in function all>,
           'any': <built-in function any>,
           ... +144
    } 
        __cached__ = 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\__pycache__\\__in…
        __doc__ = '\n=====================================================\nOptimization and Root 
    Fin'+11017 
        __file__ = 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\__init__.py'
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x00000256362F4C88>
        __name__ = 'scipy.optimize' 
        __package__ = 'scipy.optimize' 
        __path__ = ['F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize']
        __spec__ = ModuleSpec(name='scipy.optimize', loader=<_frozen_importlib_external.SourceFileLoader 
    object at 0x00000256362F4C88>,
    origin='F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\__init__.p…
    submodule_search_locations=['F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\…
    _trlib = <module 'scipy.optimize._trlib' from
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_trlib\\__init__.…
    _trustregion = <module 'scipy.optimize._trustregion' from
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_trustregion.py'> 
        _trustregion_dogleg = <module 'scipy.optimize._trustregion_dogleg' from 
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_trustregion_dogl…
    _trustregion_exact = <module 'scipy.optimize._trustregion_exact' from
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_trustregion_exac…
        _trustregion_krylov = <module 'scipy.optimize._trustregion_krylov' from 
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_trustregion_kryl…
        _trustregion_ncg = <module 'scipy.optimize._trustregion_ncg' from 
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_trustregion_ncg.…
    absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384) 
        approx_fprime = <function approx_fprime at 0x000002563630BDC8> 
        bracket = <function bracket at 0x000002563630E9D8> 
        brent = <function brent at 0x000002563630E4C8>
        brute = <function brute at 0x000002563630ECA8>
        check_grad = <function check_grad at 0x000002563630BE58> 
        division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
        fmin = <function fmin at 0x000002563630BC18> 
    fmin_bfgs = <function fmin_bfgs at 0x000002563630E048>
        fmin_cg = <function fmin_cg at 0x000002563630E168> 
        fmin_ncg = <function fmin_ncg at 0x000002563630E288>
        fmin_powell = <function fmin_powell at 0x000002563630EAF8>
    fminbound = <function fminbound at 0x000002563630E3A8>
    golden = <function golden at 0x000002563630E8B8>
        line_search = <function line_search_wolfe2 at 0x000002563630B048>
        linesearch = <module 'scipy.optimize.linesearch' from 
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\linesearch.py'>
        minpack2 = <module 'scipy.optimize.minpack2' from
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\minpack2.cp37-win…
        optimize = <module 'scipy.optimize.optimize' from
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\optimize.py'>
        OptimizeResult = <class 'scipy.optimize.optimize.OptimizeResult'>
    OptimizeWarning = <class 'scipy.optimize.optimize.OptimizeWarning'> 
        print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536) 
        rosen = <function rosen at 0x000002563630B948>
    rosen_der = <function rosen_der at 0x000002563630B9D8>
        rosen_hess = <function rosen_hess at 0x000002563630BA68> 
    rosen_hess_prod = <function rosen_hess_prod at 0x000002563630BAF8>
    show_options = <function show_options at 0x000002563630ED38>

    F:\AzurLaneAutoScript\toolkit\lib\site-packages\scipy\optimize\_minimize.py:30 in <module>

    27 from ._trustregion_ncg import _minimize_trust_ncg 
    28 from ._trustregion_krylov import _minimize_trust_krylov 
    29 from ._trustregion_exact import _minimize_trustregion_exact 
    >30 from ._trustregion_constr import _minimize_trustregion_constr 
    31 
    32 # constrained minimization 
    33 from .lbfgsb import _minimize_lbfgsb

        __all__ = ['minimize', 'minimize_scalar']
        __builtins__ = {
    '__name__': 'builtins',
    '__doc__': 'Built-in functions, exceptions, and other objects.\n\nNoteworthy:
        None is the `nil'+46,
    '__package__': '',
    '__loader__': <class '_frozen_importlib.BuiltinImporter'>, 
    '__spec__': ModuleSpec(name='builtins', loader=<class
        '_frozen_importlib.BuiltinImporter'>), 
    '__build_class__': <built-in function __build_class__>, 
    '__import__': <built-in function __import__>,
    'abs': <built-in function abs>, 
    'all': <built-in function all>, 
    'any': <built-in function any>, 
    ... +144
        }
        __cached__ = 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\__pycache…
        __doc__ = '\nUnified interfaces to minimization algorithms.\n\nFunctions\n---------\n-
        minimize '+115 
    __file__ = 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_minimize…
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x00000256362F9648> 
    __name__ = 'scipy.optimize._minimize' 
    __package__ = 'scipy.optimize'
    __spec__ = ModuleSpec(name='scipy.optimize._minimize',
        loader=<_frozen_importlib_external.SourceFileLoader object at
        0x00000256362F9648>, 
        origin='F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_m…
    _minimize_bfgs = <function _minimize_bfgs at 0x000002563630E0D8> 
        _minimize_cg = <function _minimize_cg at 0x000002563630E1F8>
        _minimize_dogleg = <function _minimize_dogleg at 0x00000256362FB048>
    _minimize_neldermead = <function _minimize_neldermead at 0x000002563630BCA8> 
        _minimize_newtoncg = <function _minimize_newtoncg at 0x000002563630E318>
        _minimize_powell = <function _minimize_powell at 0x000002563630EB88>
        _minimize_scalar_bounded = <function _minimize_scalar_bounded at 0x000002563630E438>
        _minimize_scalar_brent = <function _minimize_scalar_brent at 0x000002563630E828>
    _minimize_scalar_golden = <function _minimize_scalar_golden at 0x000002563630E948> 
        _minimize_trust_krylov = <function _minimize_trust_krylov at 0x0000025636312E58>
        _minimize_trust_ncg = <function _minimize_trust_ncg at 0x0000025636312558>
        _minimize_trustregion_exact = <function _minimize_trustregion_exact at 0x0000025636316558>
        absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)
    callable = <function callable at 0x000002567F1FAB88> 
    division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
        MemoizeJac = <class 'scipy.optimize.optimize.MemoizeJac'> 
    np = <module 'numpy' from 
        'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\numpy\\__init__.py'> 
    print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536)
        warn = <built-in function warn>

    F:\AzurLaneAutoScript\toolkit\lib\site-packages\scipy\optimize\_trustregion_constr\__init__.py:4 in <module>

    1 """This module contains the equality constrained SQP solver.""" 
    2
    3
    > 4 from .minimize_trustregion_constr import _minimize_trustregion_constr 
    5
    6 __all__ = ['_minimize_trustregion_constr'] 
    7

        __builtins__ = {
    '__name__': 'builtins',
    '__doc__': 'Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the
        `nil'+46,
    '__package__': '',
    '__loader__': <class '_frozen_importlib.BuiltinImporter'>, 
    '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>),
    '__build_class__': <built-in function __build_class__>, 
    '__import__': <built-in function __import__>,
    'abs': <built-in function abs>, 
    'all': <built-in function all>, 
    'any': <built-in function any>, 
    ... +144
        }
        __cached__ = 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_trustregion_cons'+38 
        __doc__ = 'This module contains the equality constrained SQP solver.' 
    __file__ = 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_trustregion_cons'+14 
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x000002563631FF88> 
    __name__ = 'scipy.optimize._trustregion_constr'
    __package__ = 'scipy.optimize._trustregion_constr'
    __path__ = ['F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_trustregion_cons'+2]
    __spec__ = ModuleSpec(name='scipy.optimize._trustregion_constr', 
        loader=<_frozen_importlib_external.SourceFileLoader object at 0x000002563631FF88>,
        origin='F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_trustregion_cons…
        submodule_search_locations=['F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimi…

    F:\AzurLaneAutoScript\toolkit\lib\site-packages\scipy\optimize\_trustregion_constr\minimize_trustregion_constr.py:4 
    in <module> 

    1 from __future__ import division, print_function, absolute_import 
    2 import time 
    3 import numpy as np
    > 4 from scipy.sparse.linalg import LinearOperator 
    5 from .._differentiable_functions import VectorFunction
    6 from .._constraints import ( 
    7        NonlinearConstraint, LinearConstraint, PreparedConstraint, strict_bounds) 

        __builtins__ = {
    '__name__': 'builtins',
    '__doc__': 'Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the
        `nil'+46,
    '__package__': '',
    '__loader__': <class '_frozen_importlib.BuiltinImporter'>, 
    '__spec__': ModuleSpec(name='builtins', loader=<class
        '_frozen_importlib.BuiltinImporter'>), 
    '__build_class__': <built-in function __build_class__>, 
    '__import__': <built-in function __import__>,
    'abs': <built-in function abs>, 
    'all': <built-in function all>, 
    'any': <built-in function any>, 
    ... +144
        }
        __cached__ = 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_trustregion_cons'+57 
        __doc__ = None
    __file__ = 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_trustregion_cons'+33 
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x0000025636324208> 
    __name__ = 'scipy.optimize._trustregion_constr.minimize_trustregion_constr'
    __package__ = 'scipy.optimize._trustregion_constr'
    __spec__ = ModuleSpec(name='scipy.optimize._trustregion_constr.minimize_trustregion_constr',
        loader=<_frozen_importlib_external.SourceFileLoader object at 0x0000025636324208>,
        origin='F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\optimize\\_trustregion_c…
        absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)
    division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
    np = <module 'numpy' from 
        'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\numpy\\__init__.py'> 
    print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536)
        time = <module 'time' (built-in)> 

    F:\AzurLaneAutoScript\toolkit\lib\site-packages\scipy\sparse\linalg\__init__.py:117 in <module> 

    114 from .dsolve import *
    115 from .interface import *
    116 from .eigen import * 
    > 117 from .matfuncs import * 
    118 from ._onenormest import * 
    119 from ._norm import * 
    120 from ._expm_multiply import * 

    __builtins__ = { 
           '__name__': 'builtins',
           '__doc__': 'Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is
    the `nil'+46, 
           '__package__': '', 
           '__loader__': <class '_frozen_importlib.BuiltinImporter'>,
           '__spec__': ModuleSpec(name='builtins', loader=<class
    '_frozen_importlib.BuiltinImporter'>),
           '__build_class__': <built-in function __build_class__>,
           '__import__': <built-in function __import__>, 
           'abs': <built-in function abs>,
           'all': <built-in function all>,
           'any': <built-in function any>,
           ... +144
    } 
        __cached__ = 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\__pycache__…
        __doc__ = '\nSparse linear algebra (:mod:`scipy.sparse.linalg`)\n============================'+2935
        __file__ = 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\__init__.py'
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x0000025636329E48>
        __name__ = 'scipy.sparse.linalg'
        __package__ = 'scipy.sparse.linalg'
        __path__ = ['F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg']
        __spec__ = ModuleSpec(name='scipy.sparse.linalg',
    loader=<_frozen_importlib_external.SourceFileLoader object at 0x0000025636329E48>, 
    origin='F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\__in…
    submodule_search_locations=['F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\…
    absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384) 
    arpack = <module 'scipy.sparse.linalg.eigen.arpack.arpack' from
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\eigen\\arpa…
        ArpackError = <class 'scipy.sparse.linalg.eigen.arpack.arpack.ArpackError'> 
        ArpackNoConvergence = <class 'scipy.sparse.linalg.eigen.arpack.arpack.ArpackNoConvergence'>
        aslinearoperator = <function aslinearoperator at 0x0000025636346678> 
        bicg = <function bicg at 0x00000256363485E8> 
        bicgstab = <function bicgstab at 0x0000025636348828>
        cg = <function cg at 0x0000025636348A68>
    cgs = <function cgs at 0x0000025636348CA8>
        division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
    dsolve = <module 'scipy.sparse.linalg.dsolve' from
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\dsolve\\__i…
        eigen = <module 'scipy.sparse.linalg.eigen' from 
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\eigen\\__in…
        eigs = <function eigs at 0x000002563637F3A8> 
        eigsh = <function eigsh at 0x000002563637F438>
        factorized = <function factorized at 0x0000025636359D38> 
        gcrotmk = <function gcrotmk at 0x0000025636352AF8> 
        gmres = <function gmres at 0x0000025636348E58>
    interface = <module 'scipy.sparse.linalg.interface' from
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\interface.p…
    isolve = <module 'scipy.sparse.linalg.isolve' from
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\isolve\\__i…
    iterative = <module 'scipy.sparse.linalg.isolve.iterative' from
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\isolve\\ite…
    lgmres = <function lgmres at 0x00000256363521F8>
        LinearOperator = <class 'scipy.sparse.linalg.interface.LinearOperator'>
        linsolve = <module 'scipy.sparse.linalg.dsolve.linsolve' from
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\dsolve\\lin…
    lobpcg = <function lobpcg at 0x0000025636379798>
        lsmr = <function lsmr at 0x0000025636352DC8> 
        lsqr = <function lsqr at 0x0000025636352C18> 
        MatrixRankWarning = <class 'scipy.sparse.linalg.dsolve.linsolve.MatrixRankWarning'>
    minres = <function minres at 0x000002563632EF78>
        print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536) 
    qmr = <function qmr at 0x00000256363520D8>
        spilu = <function spilu at 0x0000025636359CA8>
        splu = <function splu at 0x0000025636359C18> 
        spsolve = <function spsolve at 0x0000025636359B88> 
    spsolve_triangular = <function spsolve_triangular at 0x0000025636359DC8>
        SuperLU = <class 'SuperLU'>
        svds = <function svds at 0x000002563637F678> 
        use_solver = <function use_solver at 0x00000256363590D8> 
        utils = <module 'scipy.sparse.linalg.isolve.utils' from
    'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\isolve\\uti…

    F:\AzurLaneAutoScript\toolkit\lib\site-packages\scipy\sparse\linalg\matfuncs.py:19 in <module> 

    16 
    17 import numpy as np
    18 
    >19 import scipy.special 
    20 from scipy.linalg.basic import solve, solve_triangular
    21 
    22 from scipy.sparse.base import isspmatrix 

        __all__ = ['expm', 'inv']
        __builtins__ = {
    '__name__': 'builtins',
    '__doc__': 'Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the
        `nil'+46,
    '__package__': '',
    '__loader__': <class '_frozen_importlib.BuiltinImporter'>, 
    '__spec__': ModuleSpec(name='builtins', loader=<class
        '_frozen_importlib.BuiltinImporter'>), 
    '__build_class__': <built-in function __build_class__>, 
    '__import__': <built-in function __import__>,
    'abs': <built-in function abs>, 
    'all': <built-in function all>, 
    'any': <built-in function any>, 
    ... +144
        }
        __cached__ = 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\__pycache__\\'+…
        __doc__ = '\nSparse matrix functions\n' 
    __file__ = 'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\matfuncs.py' 
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x000002563635D908> 
    __name__ = 'scipy.sparse.linalg.matfuncs'
    __package__ = 'scipy.sparse.linalg'
    __spec__ = ModuleSpec(name='scipy.sparse.linalg.matfuncs', 
        loader=<_frozen_importlib_external.SourceFileLoader object at 0x000002563635D908>,
        origin='F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\scipy\\sparse\\linalg\\matfuncs…
        absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)
    division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
        math = <module 'math' (built-in)> 
    np = <module 'numpy' from 
        'F:\\AzurLaneAutoScript\\toolkit\\lib\\site-packages\\numpy\\__init__.py'> 
    print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536)

    F:\AzurLaneAutoScript\toolkit\lib\site-packages\scipy\special\__init__.py:634 in <module> 

    631 
    632 from .sf_error import SpecialFunctionWarning, SpecialFunctionError
    633 
    > 634 from . import _ufuncs
    635 from ._ufuncs import * 
    636 
    637 from . import _basic 

    __builtins__ = { 
           '__name__': 'builtins',
           '__doc__': 'Built-in functions, exceptions, and other objects.\n\nNoteworthy: None
    is the `nil'+46, 
           '__package__': '', 
           '__loader__': <class '_frozen_importlib.BuiltinImporter'>,

截图

完整记录:https://1drv.ms/u/s!AsuNkoZKMSAWik7LrsCIxOOTlLf4?e=07Jrrk (相关错误位置:2023-01-12 14:13:21.168) (无法粘贴文件的原因在前面已说明)

还有别的吗?

暗影精灵 r9000p 版本 Windows 10 专业工作站版 版本号 21H2 安装日期 ‎2022/‎7/‎30 操作系统内部版本 19044.2364 体验 Windows Feature Experience Pack 120.2212.4190.0

使用bluestacks5-hyperv进行工作。 模拟器截图方案:aScreenCap 模拟器控制方案:minitouch

LmeSzinc commented 1 year ago

可能是依赖库的文件损坏了,尝试重新安装 Alas,将 config 文件夹复制到新的里面即可保留设置

chanjx1204 commented 1 year ago

我试过重新安装Alas, 还是会有一样的问题

hotaru-hoshizora commented 1 year ago

通过删除文件仅留下核心程序让Alas重新下载依赖文件,Alas已经重新初始化并且正常工作了。

  1. 备份config文件夹里的所有json,移动到另外的目录.
  2. 清空Alas目录下的所有文件(即卸载Alas)
  3. 重新下载Alas的安装包进行解压,并将之前备份的config进行覆盖。
  4. 启动新的Alas使其自行下载依赖库文件,完成。

在"开发->工具"内新增"手动校验并重载资源"相关的按钮用于更便捷的修复是否有可行性?

chanjx1204 commented 1 year ago

已试过以上的方法 第一次开启alas 会有以下问题,重新开启后才能运行,可是还是不能正常工作(和hotaru一样的问题)

"C:\Users\Admin\Desktop\AzurLaneAutoScript ==================== SHOW DEPLOY CONFIG ==================== Theme: dark Traceback (most recent call last): File "C:\Users\Admin\Desktop\AzurLaneAutoScript\toolkit\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Users\Admin\Desktop\AzurLaneAutoScript\toolkit\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\Admin\Desktop\AzurLaneAutoScript\deploy\installer.py", line 22, in <module> Installer().install() File "C:\Users\Admin\Desktop\AzurLaneAutoScript\deploy\config.py", line 76, in __init__ self.show_config() File "C:\Users\Admin\Desktop\AzurLaneAutoScript\deploy\config.py", line 83, in show_config if self.config_template[k] == v: KeyError: 'SSLVerify'