Closed hongcanqiang closed 1 year ago
运行alas后,出现该错误:ImportError: DLL load failed: 系统无法访问此文件。
我尝试过给alas管理员权限运行,但还是会出现这样的错误
2022-04-08 20:21:26.712 | INFO | [Server] cn 2022-04-08 20:21:26.740 | INFO | Bind task {'General', 'Alas'} ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ START ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ 2022-04-08 20:21:27.818 | INFO | Start scheduler loop: alas 2022-04-08 20:21:27.829 | INFO | [Server] cn 2022-04-08 20:21:27.854 | INFO | Bind task {'General', 'Alas'} 2022-04-08 20:21:27.863 | INFO | Pending tasks: ['WarArchives'] 2022-04-08 20:21:27.866 | INFO | [Task] WarArchives (Enable, 2020-01-01 00:00:00) 2022-04-08 20:21:27.871 | INFO | Bind task {'General', 'WarArchives', 'Alas'} 2022-04-08 20:21:32.580 | ERROR | ImportError: DLL load failed: 系统无法访问此文件。 ╭───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────╮ │ │ │ D:\Program Files\AzurLaneAutoScript\module\webui\process_manager.py:134 in run_process │ │ │ │ 131 │ │ │ │ │ │ 132 │ │ │ │ if e is not None: │ │ 133 │ │ │ │ │ AzurLaneAutoScript.stop_event = e │ │ ❱ 134 │ │ │ │ AzurLaneAutoScript(config_name=config_name).loop() │ │ 135 │ │ │ elif func == "Daemon": │ │ 136 │ │ │ │ from module.daemon.daemon import AzurLaneDaemon │ │ 137 │ │ │ │ ╭──────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────╮ │ │ │ AzurLaneAutoScript = <class 'alas.AzurLaneAutoScript'> │ │ │ │ AzurLaneConfig = <class 'module.config.config.AzurLaneConfig'> │ │ │ │ config = <module.config.config.AzurLaneConfig object at 0x000001E428310C48> │ │ │ │ config_name = 'alas' │ │ │ │ e = ImportError('DLL load failed: 系统无法访问此文件。') │ │ │ │ func = 'Alas' │ │ │ │ q = <AutoProxy[Queue] object, typeid 'Queue' at 0x1e42839f608> │ │ │ │ server = <module 'module.config.server' from 'D:\\Program │ │ │ │ Files\\AzurLaneAutoScript\\module\\config\\server.py'> │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ D:\Program Files\AzurLaneAutoScript\alas.py:384 in loop │ │ │ │ 381 │ │ │ │ │ logger.info("Update event detected") │ │ 382 │ │ │ │ │ logger.info(f"Alas [{self.config_name}] exited.") │ │ 383 │ │ │ │ │ break │ │ ❱ 384 │ │ │ task = self.get_next_task() │ │ 385 │ │ │ │ │ 386 │ │ │ # Skip first restart │ │ 387 │ │ │ if is_first and task == 'Restart': │ │ │ │ ╭──────────────────────────────── locals ─────────────────────────────────╮ │ │ │ failure_record = {} │ │ │ │ is_first = True │ │ │ │ self = <alas.AzurLaneAutoScript object at 0x000001E428A32C08> │ │ │ ╰─────────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\Program Files\AzurLaneAutoScript\alas.py:344 in get_next_task │ │ │ │ 341 │ │ │ │ 342 │ │ from module.base.resource import release_resources │ │ 343 │ │ if self.config.task.command != 'Alas': │ │ ❱ 344 │ │ │ release_resources(next_task=task.command) │ │ 345 │ │ │ │ 346 │ │ if task.next_run > datetime.now(): │ │ 347 │ │ │ logger.info(f'Wait until {task.next_run} for task `{task.command}`') │ │ │ │ ╭────────────────────────────────── locals ──────────────────────────────────╮ │ │ │ release_resources = <function release_resources at 0x000001E428AF5798> │ │ │ │ self = <alas.AzurLaneAutoScript object at 0x000001E428A32C08> │ │ │ │ task = WarArchives (Enable, 2020-01-01 00:00:00) │ │ │ ╰────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\Program Files\AzurLaneAutoScript\module\base\resource.py:110 in release_resources │ │ │ │ 107 │ │ obj.resource_release() │ │ 108 │ │ │ 109 │ # Release cached images for map detection │ │ ❱ 110 │ from module.map_detection.utils_assets import ASSETS │ │ 111 │ attr_list = [ │ │ 112 │ │ 'ui_mask', │ │ 113 │ │ 'ui_mask_os', │ │ │ │ ╭─────────────────────────────── locals ────────────────────────────────╮ │ │ │ model = 'tw' │ │ │ │ models = ['cnocr', 'jp', 'tw'] │ │ │ │ next_task = 'WarArchives' │ │ │ │ OCR_MODEL = <module.ocr.models.OcrModel object at 0x000001E42FDE8288> │ │ │ ╰───────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\Program Files\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') │ │ │ │ ╭──────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────╮ │ │ │ __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>, │ │ │ │ │ ... +145 │ │ │ │ } │ │ │ │ __cached__ = 'D:\\Program Files\\AzurLaneAutoScript\\module\\map_detection\\__pycache__\\utils_asset'+16 │ │ │ │ __doc__ = None │ │ │ │ __file__ = 'D:\\Program Files\\AzurLaneAutoScript\\module\\map_detection\\utils_assets.py' │ │ │ │ __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x000001E437DCE5C8> │ │ │ │ __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 0x000001E437DCE5C8>, │ │ │ │ origin='D:\\Program Files\\AzurLaneAutoScript\\module\\map_detection\\utils_assets.py') │ │ │ │ cached_property = <class 'module.base.decorator.cached_property'> │ │ │ │ cv2 = <module 'cv2.cv2' from │ │ │ │ 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\cv2\\cv2.cp37-win_amd64.pyd'> │ │ │ │ np = <module 'numpy' from │ │ │ │ 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\numpy\\__init__.py'> │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\Program Files\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 load_image, rgb2gray, image_channel │ │ 6 │ │ 7 │ │ │ │ ╭──────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────╮ │ │ │ __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>, │ │ │ │ │ ... +145 │ │ │ │ } │ │ │ │ __cached__ = 'D:\\Program Files\\AzurLaneAutoScript\\module\\base\\__pycache__\\mask.cpython-37.pyc' │ │ │ │ __doc__ = None │ │ │ │ __file__ = 'D:\\Program Files\\AzurLaneAutoScript\\module\\base\\mask.py' │ │ │ │ __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x000001E437DE5608> │ │ │ │ __name__ = 'module.base.mask' │ │ │ │ __package__ = 'module.base' │ │ │ │ __spec__ = ModuleSpec(name='module.base.mask', loader=<_frozen_importlib_external.SourceFileLoader object │ │ │ │ at 0x000001E437DE5608>, origin='D:\\Program Files\\AzurLaneAutoScript\\module\\base\\mask.py') │ │ │ │ cv2 = <module 'cv2.cv2' from │ │ │ │ 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\cv2\\cv2.cp37-win_amd64.pyd'> │ │ │ │ np = <module 'numpy' from │ │ │ │ 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\numpy\\__init__.py'> │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\Program Files\AzurLaneAutoScript\module\base\template.py:10 in <module> │ │ │ │ 7 from module.base.decorator import cached_property │ │ 8 from module.base.resource import Resource │ │ 9 from module.base.utils import * │ │ ❱ 10 from module.map_detection.utils import Points │ │ 11 │ │ 12 │ │ 13 class Template(Resource): │ │ │ │ ╭──────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────╮ │ │ │ __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>, │ │ │ │ │ ... +145 │ │ │ │ } │ │ │ │ __cached__ = 'D:\\Program │ │ │ │ Files\\AzurLaneAutoScript\\module\\base\\__pycache__\\template.cpython-37.'+3 │ │ │ │ __doc__ = None │ │ │ │ __file__ = 'D:\\Program Files\\AzurLaneAutoScript\\module\\base\\template.py' │ │ │ │ __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x000001E437DE5A48> │ │ │ │ __name__ = 'module.base.template' │ │ │ │ __package__ = 'module.base' │ │ │ │ __spec__ = ModuleSpec(name='module.base.template', │ │ │ │ loader=<_frozen_importlib_external.SourceFileLoader object at │ │ │ │ 0x000001E437DE5A48>, origin='D:\\Program │ │ │ │ Files\\AzurLaneAutoScript\\module\\base\\template.py') │ │ │ │ area_cross_area = <function area_cross_area at 0x000001E42F96B678> │ │ │ │ area_in_area = <function area_in_area at 0x000001E42F96B5E8> │ │ │ │ area_limit = <function area_limit at 0x000001E42F96B3A8> │ │ │ │ area_offset = <function area_offset at 0x000001E42F96B1F8> │ │ │ │ area_pad = <function area_pad at 0x000001E42F96B288> │ │ │ │ area_size = <function area_size at 0x000001E42F96B438> │ │ │ │ Button = <class 'module.base.button.Button'> │ │ │ │ cached_property = <class 'module.base.decorator.cached_property'> │ │ │ │ color_bar_percentage = <function color_bar_percentage at 0x000001E42F9693A8> │ │ │ │ color_mapping = <function color_mapping at 0x000001E42F969288> │ │ │ │ color_similar = <function color_similar at 0x000001E42F96BF78> │ │ │ │ color_similar_1d = <function color_similar_1d at 0x000001E42F969048> │ │ │ │ color_similarity = <function color_similarity at 0x000001E42F96BEE8> │ │ │ │ color_similarity_2d = <function color_similarity_2d at 0x000001E42F9690D8> │ │ │ │ crop = <function crop at 0x000001E42F96BA68> │ │ │ │ cv2 = <module 'cv2.cv2' from │ │ │ │ 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\cv2\\cv2.cp37-win_a… │ │ │ │ ensure_int = <function ensure_int at 0x000001E42F96B048> │ │ │ │ ensure_time = <function ensure_time at 0x000001E42F96B0D8> │ │ │ │ extract_letters = <function extract_letters at 0x000001E42F969168> │ │ │ │ extract_white_letters = <function extract_white_letters at 0x000001E42F9691F8> │ │ │ │ float2str = <function float2str at 0x000001E42F96B708> │ │ │ │ get_bbox = <function get_bbox at 0x000001E42F96BE58> │ │ │ │ get_color = <function get_color at 0x000001E42F96BDC8> │ │ │ │ Image = <module 'PIL.Image' from │ │ │ │ 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\PIL\\Image.py'> │ │ │ │ image_channel = <function image_channel at 0x000001E42F96BB88> │ │ │ │ image_size = <function image_size at 0x000001E42F96BC18> │ │ │ │ imageio = <module 'imageio' from │ │ │ │ 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\imageio\\__init__.p… │ │ │ │ limit_in = <function limit_in at 0x000001E42F96B318> │ │ │ │ load_image = <function load_image at 0x000001E42F96B948> │ │ │ │ location2node = <function location2node at 0x000001E42F96B8B8> │ │ │ │ node2location = <function node2location at 0x000001E42F96B828> │ │ │ │ np = <module 'numpy' from │ │ │ │ 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\numpy\\__init__.py'> │ │ │ │ os = <module 'os' from 'D:\\software\\anaconda3\\envs\\alas\\lib\\os.py'> │ │ │ │ point2str = <function point2str at 0x000001E42F96B798> │ │ │ │ point_in_area = <function point_in_area at 0x000001E42F96B558> │ │ │ │ point_limit = <function point_limit at 0x000001E42F96B4C8> │ │ │ │ random_line_segments = <function random_line_segments at 0x000001E42F96B168> │ │ │ │ random_normal_distribution_int = <function random_normal_distribution_int at 0x000001E42F856798> │ │ │ │ random_rectangle_point = <function random_rectangle_point at 0x000001E42F887B88> │ │ │ │ random_rectangle_vector = <function random_rectangle_vector at 0x000001E42F887DC8> │ │ │ │ random_rectangle_vector_opted = <function random_rectangle_vector_opted at 0x000001E42F887D38> │ │ │ │ red_overlay_transparency = <function red_overlay_transparency at 0x000001E42F969318> │ │ │ │ resize = <function resize at 0x000001E42F96BAF8> │ │ │ │ Resource = <class 'module.base.resource.Resource'> │ │ │ │ rgb2gray = <function rgb2gray at 0x000001E42F96BCA8> │ │ │ │ rgb2hsv = <function rgb2hsv at 0x000001E42F96BD38> │ │ │ │ save_image = <function save_image at 0x000001E42F96B9D8> │ │ │ │ server = <module 'module.config.server' from 'D:\\Program │ │ │ │ Files\\AzurLaneAutoScript\\module\\config\\server.py'> │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\Program Files\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 │ │ │ │ ╭──────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────╮ │ │ │ __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>, │ │ │ │ │ ... +145 │ │ │ │ } │ │ │ │ __cached__ = 'D:\\Program Files\\AzurLaneAutoScript\\module\\map_detection\\__pycache__\\utils.cpyth'+9 │ │ │ │ __doc__ = None │ │ │ │ __file__ = 'D:\\Program Files\\AzurLaneAutoScript\\module\\map_detection\\utils.py' │ │ │ │ __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x000001E437DDDA48> │ │ │ │ __name__ = 'module.map_detection.utils' │ │ │ │ __package__ = 'module.map_detection' │ │ │ │ __spec__ = ModuleSpec(name='module.map_detection.utils', │ │ │ │ loader=<_frozen_importlib_external.SourceFileLoader object at 0x000001E437DDDA48>, │ │ │ │ origin='D:\\Program Files\\AzurLaneAutoScript\\module\\map_detection\\utils.py') │ │ │ │ np = <module 'numpy' from │ │ │ │ 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\numpy\\__init__.py'> │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\software\anaconda3\envs\alas\lib\site-packages\scipy\optimize\__init__.py:389 in <module> │ │ │ │ 386 │ │ 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 * │ │ │ │ ╭──────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────╮ │ │ │ __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>, │ │ │ │ │ ... +145 │ │ │ │ } │ │ │ │ __cached__ = 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\scipy\\optimize\\__pycache__\\__i'… │ │ │ │ __doc__ = '\n=====================================================\nOptimization and Root Fin'+11017 │ │ │ │ __file__ = 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\scipy\\optimize\\__init__.py' │ │ │ │ __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x000001E437DEC908> │ │ │ │ __name__ = 'scipy.optimize' │ │ │ │ __package__ = 'scipy.optimize' │ │ │ │ __path__ = ['D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\scipy\\optimize'] │ │ │ │ __spec__ = ModuleSpec(name='scipy.optimize', loader=<_frozen_importlib_external.SourceFileLoader object │ │ │ │ at 0x000001E437DEC908>, │ │ │ │ origin='D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\scipy\\optimize\\__init__.p… │ │ │ │ submodule_search_locations=['D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\scipy\… │ │ │ │ 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) │ │ │ │ print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536) │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\software\anaconda3\envs\alas\lib\site-packages\scipy\optimize\optimize.py:37 in <module> │ │ │ │ 34 from numpy import (atleast_1d, eye, mgrid, argmin, zeros, shape, squeeze, │ │ 35 │ │ │ │ asarray, sqrt, Inf, asfarray, isinf) │ │ 36 import numpy as np │ │ ❱ 37 from .linesearch import (line_search_wolfe1, line_search_wolfe2, │ │ 38 │ │ │ │ │ │ line_search_wolfe2 as line_search, │ │ 39 │ │ │ │ │ │ LineSearchWarning) │ │ 40 from scipy._lib._util import getargspec_no_self as _getargspec │ │ │ │ ╭──────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────╮ │ │ │ __all__ = [ │ │ │ │ │ 'fmin', │ │ │ │ │ 'fmin_powell', │ │ │ │ │ 'fmin_bfgs', │ │ │ │ │ 'fmin_ncg', │ │ │ │ │ 'fmin_cg', │ │ │ │ │ 'fminbound', │ │ │ │ │ 'brent', │ │ │ │ │ 'golden', │ │ │ │ │ 'bracket', │ │ │ │ │ 'rosen', │ │ │ │ │ ... +10 │ │ │ │ ] │ │ │ │ __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>, │ │ │ │ │ ... +145 │ │ │ │ } │ │ │ │ __cached__ = 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\scipy\\optimize\\__pycache__\\opt'… │ │ │ │ __doc__ = None │ │ │ │ __docformat__ = 'restructuredtext en' │ │ │ │ __file__ = 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\scipy\\optimize\\optimize.py' │ │ │ │ __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x000001E437DF2908> │ │ │ │ __name__ = 'scipy.optimize.optimize' │ │ │ │ __package__ = 'scipy.optimize' │ │ │ │ __spec__ = ModuleSpec(name='scipy.optimize.optimize', │ │ │ │ loader=<_frozen_importlib_external.SourceFileLoader object at 0x000001E437DF2908>, │ │ │ │ origin='D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\scipy\\optimize\\optimize.p… │ │ │ │ absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384) │ │ │ │ argmin = <function argmin at 0x000001E42F45E168> │ │ │ │ asarray = <function asarray at 0x000001E4294340D8> │ │ │ │ asfarray = <function asfarray at 0x000001E42F4E3288> │ │ │ │ atleast_1d = <function atleast_1d at 0x000001E42F4B4168> │ │ │ │ callable = <function callable at 0x000001E436F5C0D8> │ │ │ │ division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192) │ │ │ │ eye = <function eye at 0x000001E42F5089D8> │ │ │ │ Inf = inf │ │ │ │ isinf = <ufunc 'isinf'> │ │ │ │ mgrid = <numpy.lib.index_tricks.MGridClass object at 0x000001E42F4EAD48> │ │ │ │ np = <module 'numpy' from │ │ │ │ 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\numpy\\__init__.py'> │ │ │ │ numpy = <module 'numpy' from │ │ │ │ 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\numpy\\__init__.py'> │ │ │ │ print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536) │ │ │ │ shape = <function shape at 0x000001E42F45EA68> │ │ │ │ sqrt = <ufunc 'sqrt'> │ │ │ │ squeeze = <function squeeze at 0x000001E42F45E4C8> │ │ │ │ sys = <module 'sys' (built-in)> │ │ │ │ warnings = <module 'warnings' from 'D:\\software\\anaconda3\\envs\\alas\\lib\\warnings.py'> │ │ │ │ xrange = <class 'range'> │ │ │ │ zeros = <built-in function zeros> │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ D:\software\anaconda3\envs\alas\lib\site-packages\scipy\optimize\linesearch.py:18 in <module> │ │ │ │ 15 │ │ 16 from warnings import warn │ │ 17 │ │ ❱ 18 from scipy.optimize import minpack2 │ │ 19 import numpy as np │ │ 20 from scipy._lib.six import xrange │ │ 21 │ │ │ │ ╭──────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────╮ │ │ │ __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>, │ │ │ │ │ ... +145 │ │ │ │ } │ │ │ │ __cached__ = 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\scipy\\optimize\\__pycache__\\lin'… │ │ │ │ __doc__ = '\nFunctions\n---------\n.. autosummary::\n :toctree: generated/\n\n line_search_a'+103 │ │ │ │ __file__ = 'D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\scipy\\optimize\\linesearch.py' │ │ │ │ __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x000001E437E0C5C8> │ │ │ │ __name__ = 'scipy.optimize.linesearch' │ │ │ │ __package__ = 'scipy.optimize' │ │ │ │ __spec__ = ModuleSpec(name='scipy.optimize.linesearch', │ │ │ │ loader=<_frozen_importlib_external.SourceFileLoader object at 0x000001E437E0C5C8>, │ │ │ │ origin='D:\\software\\anaconda3\\envs\\alas\\lib\\site-packages\\scipy\\optimize\\linesearch… │ │ │ │ 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) │ │ │ │ print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536) │ │ │ │ warn = <built-in function warn> │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ImportError: DLL load failed: 系统无法访问此文件。
No response
看看 #497
删除python环境变量
在提问之前...
描述你的问题
运行alas后,出现该错误:ImportError: DLL load failed: 系统无法访问此文件。
如何复现
预期行为
我尝试过给alas管理员权限运行,但还是会出现这样的错误
相关 Logs
截图
No response
还有别的吗?
No response