环境:win10, 影刀v5.16.48
社区里搜索到的方法都无效。
做过的操作:
在包管理器里安装了一个本地的包,也就是包名里填写本地的包的路径,发现是可以安装成功的(因为python本身是支持这样安装的)。
然后也没发现什么异常,这个本地包可以被正常地使用。
但当我重启了影刀后(升级到了v5.16.48),发现不能进入编辑界面了,提示「加载应用失败,请稍后重试」。
查看C:\Users\Administrator\AppData\Local\ShadowBot\log下面的日志,发现如下错误:
2024-04-07 17:16:57,323 [1] [WARN] : Failed to load app
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ShadowBot.Runtime.Packages.DependencyItem..ctor(String line) in D:\Work\xbot\src\client\ShadowBot.Runtime\Packages\DependencyItem.cs:line 11
at ShadowBot.Runtime.Packages.Pip.<>c.<GetDiffLines>b__24_0(String m) in D:\Work\xbot\src\client\ShadowBot.Runtime\Packages\Pip.cs:line 322
at System.Linq.Enumerable.SelectArrayIterator`2.MoveNext()
at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
at ShadowBot.Runtime.Packages.Pip.GetDiffLines(String requirements) in D:\Work\xbot\src\client\ShadowBot.Runtime\Packages\Pip.cs:line 327
at ShadowBot.Runtime.Packages.Pip.InstallRequirements(String requirements, Action`1 progress, Action`1 errorProgress, String indexUrl, CancellationToken token) in D:\Work\xbot\src\client\ShadowBot.Runtime\Packages\Pip.cs:line 203
at ShadowBot.Runtime.Packages.Package.InstallPythonRequirements(List`1 flateExternalDependencies, Action`1 progress, CancellationToken token) in D:\Work\xbot\src\client\ShadowBot.Runtime\Packages\Package.cs:line 149
at ShadowBot.Runtime.Packages.Package.InstallDependencies(Action`1 progress, CancellationToken token) in D:\Work\xbot\src\client\ShadowBot.Runtime\Packages\Package.cs:line 87
at ShadowBot.Runtime.Packages.DevelopmentPackageFactory.CreatePackageAsync(Action`1 progress, CancellationToken token) in D:\Work\xbot\src\client\ShadowBot.Runtime\Packages\Factories\DevelopmentPackageFactory.cs:line 88
at ShadowBot.Shell.Console.Common.StudioManager.<>c__DisplayClass21_0.<<CreateStudioAsync>b__0>d.MoveNext() in D:\Work\xbot\src\client\ShadowBot.Shell.Console\Common\IStudioManager.cs:line 97
--- End of stack trace from previous location ---
at ShadowBot.Shell.Console.Common.StudioManager.CreateStudioAsync(IPackageFactory packageFactory, CreateStudioOptions options) in D:\Work\xbot\src\client\ShadowBot.Shell.Console\Common\IStudioManager.cs:line 93