ivan-1f / mcdreforgedpluginmanager Goto Github PK
View Code? Open in Web Editor NEWManage your mcdreforged plugins with ease
License: GNU Lesser General Public License v3.0
Manage your mcdreforged plugins with ease
License: GNU Lesser General Public License v3.0
新插件下载失败或依赖安装失败时不能再用指令更新插件
建议:
先下载新插件(到临时目录)并安装依赖,下载完成后再删除旧插件安装新插件
日志:
!!mpm upgrade timed_quick_backup_multi
[MCDR] [17:06:26] [TaskExecutor/INFO]: 插件 timed_quick_backup_multi 有新版本可用: 1.2.0
[MCDR] [17:06:26] [TaskExecutor/INFO]: 更新操作确认:
[MCDR] [17:06:26] [TaskExecutor/INFO]: 将安装或更新以下插件:
[MCDR] [17:06:26] [TaskExecutor/INFO]: timed_quick_backup_multi
[MCDR] [17:06:26] [TaskExecutor/INFO]: 请使用 !!mpm confirm 确认操作
!!mpm confirm
[MCDR] [17:06:28] [mpm-installer/INFO]: 正在 更新 timed_quick_backup_multi
[MCDR] [17:06:28] [mpm-installer/INFO]: 正在删除 plugins/TimedQBM-v1.1.0.mcdr
[MCDR] [17:06:32] [mpm-installer/INFO]: 正在下载 TimedQBM-v1.2.0.mcdr
[MCDR] [17:06:37] [mpm-installer/INFO]: 发生异常: HTTPSConnectionPool(host='github.com', port=443): Read timed out. (read timeout=5)
[MCDR] [17:06:37] [mpm-installer/INFO]: 操作失败
[MCDR] [17:07:01] [mpm-cache/INFO] [mcdreforged_plugin_manager]: 正在更新插件库索引
[MCDR] [17:07:01] [CacheClock/INFO] [mcdreforged_plugin_manager]: 以下插件需要更新:
[MCDR] [17:07:01] [CacheClock/INFO] [mcdreforged_plugin_manager]: Timed QBM (timed_quick_backup_multi)
[MCDR] [17:07:01] [CacheClock/INFO] [mcdreforged_plugin_manager]: 1.1.0 -> 1.2.0 [↑]
[MCDR] [17:07:05] [mpm-cache/INFO] [mcdreforged_plugin_manager]: 插件库索引更新完成; 新增 0 个插件
!!mpm upgrade timed_quick_backup_multi
[MCDR] [17:07:19] [TaskExecutor/INFO]: 插件 timed_quick_backup_multi 有新版本可用: 1.2.0
[MCDR] [17:07:19] [TaskExecutor/INFO]: 更新操作确认:
[MCDR] [17:07:19] [TaskExecutor/INFO]: 将安装或更新以下插件:
[MCDR] [17:07:19] [TaskExecutor/INFO]: timed_quick_backup_multi
[MCDR] [17:07:19] [TaskExecutor/INFO]: 请使用 !!mpm confirm 确认操作
!!mpm confirm
[MCDR] [17:07:24] [mpm-installer/INFO]: 正在 更新 timed_quick_backup_multi
[MCDR] [17:07:24] [mpm-installer/INFO]: 正在删除 plugins/TimedQBM-v1.1.0.mcdr
Exception in thread mpm-installer:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.10/dist-packages/mcdreforged/api/decorator/new_thread.py", line 29, in wrapped_target
raise e from None
File "/usr/local/lib/python3.10/dist-packages/mcdreforged/api/decorator/new_thread.py", line 26, in wrapped_target
self.__return_value = target(*args_, **kwargs_)
File "plugins/MCDReforgedPluginManager-v1.3.1.mcdr/mcdreforged_plugin_manager/operation/installer.py", line 217, in run
File "plugins/MCDReforgedPluginManager-v1.3.1.mcdr/mcdreforged_plugin_manager/operation/installer.py", line 48, in operate
File "plugins/MCDReforgedPluginManager-v1.3.1.mcdr/mcdreforged_plugin_manager/util/mcdr_util.py", line 15, in remove_plugin_file
FileNotFoundError: [Errno 2] No such file or directory: 'plugins/TimedQBM-v1.1.0.mcdr'
[MCDR] [17:34:14] [mpm-installer/INFO]: 正在 更新 chatbridge
[MCDR] [17:34:14] [mpm-installer/INFO]: 正在删除 plugins/ChatBridge.pyz
[MCDR] [17:34:18] [mpm-installer/INFO]: 正在下载 ChatBridge.pyz
[MCDR] [17:34:28] [mpm-installer/INFO]: 发生异常: HTTPSConnectionPool(host='github.com', port=443): Read timed out. (read timeout=10)
[MCDR] [17:34:28] [mpm-installer/INFO]: 正在 安装 pycryptodome
[MCDR] [17:34:28] [mpm-installer/INFO]: 正在通过 pip 安装 pycryptodome
WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pycryptodome in /usr/local/lib/python3.10/dist-packages (3.15.0)
[MCDR] [17:34:31] [mpm-installer/INFO]: 正在 安装 colorlog
[MCDR] [17:34:31] [mpm-installer/INFO]: 正在通过 pip 安装 colorlog
WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: colorlog in /usr/local/lib/python3.10/dist-packages (6.6.0)
[MCDR] [17:34:32] [mpm-installer/INFO]: 操作失败
[MCDR] [17:38:47] [TaskExecutor/INFO]: 插件 chatbridge 有新版本可用: 2.3.0
[MCDR] [17:38:47] [TaskExecutor/INFO]: 更新操作确认:
[MCDR] [17:38:47] [TaskExecutor/INFO]: 将安装或更新以下插件:
[MCDR] [17:38:47] [TaskExecutor/INFO]: chatbridge
[MCDR] [17:38:47] [TaskExecutor/INFO]: 将安装或更新以下包:
[MCDR] [17:38:47] [TaskExecutor/INFO]: pycryptodome, colorlog
[MCDR] [17:38:47] [TaskExecutor/INFO]: 请使用 !!mpm confirm 确认操作
[MCDR] [17:38:48] [mpm-installer/INFO]: 正在 更新 chatbridge
[MCDR] [17:38:48] [mpm-installer/INFO]: 正在删除 plugins/ChatBridge.pyz
Exception in thread mpm-installer:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.10/dist-packages/mcdreforged/api/decorator/new_thread.py", line 29, in wrapped_target
raise e from None
File "/usr/local/lib/python3.10/dist-packages/mcdreforged/api/decorator/new_thread.py", line 26, in wrapped_target
self.__return_value = target(*args_, **kwargs_)
File "plugins/MCDReforgedPluginManager-v1.3.1.mcdr/mcdreforged_plugin_manager/operation/installer.py", line 217, in run
File "plugins/MCDReforgedPluginManager-v1.3.1.mcdr/mcdreforged_plugin_manager/operation/installer.py", line 48, in operate
File "plugins/MCDReforgedPluginManager-v1.3.1.mcdr/mcdreforged_plugin_manager/util/mcdr_util.py", line 15, in remove_plugin_file
FileNotFoundError: [Errno 2] No such file or directory: 'plugins/ChatBridge.pyz'
在服务器搞代理稍稍有些麻烦,而且代理不太稳定,相比来看好像从类似ghproxy.com的这种国内的github下载站安装/更新插件更好一点(
而且ghproxy使用起来很方便,稳定性也不用担心,只要把从github下载的地址放到 https://ghproxy.com/ 的后面就行了,比如:https://ghproxy.com/https://github.com/Ivan-1F/MCDReforgedPluginManager/releases/download/v1.3.3/MCDReforgedPluginManager-v1.3.3.mcdr
其他的大多数github国内下载站也是直接把github的网址放在后面就行,比如从 https://git.xfj0.cn/ 下载mpm:https://git.xfj0.cn/https://github.com/Ivan-1F/MCDReforgedPluginManager/releases/download/v1.3.3/MCDReforgedPluginManager-v1.3.3.mcdr
所以能不能加一下,万分感谢(
(我是萌新有说错的原谅一下
报错日志:
!!mpm list
[MCDR] [21:50:43] [TaskExecutor/ERROR]: Error when executing command "!!mpm list" with command source "Console" on Lite2
Traceback (most recent call last):
File "C:\Program Files\Python311\Lib\site-packages\mcdreforged\command\command_manager.py", line 70, in _traverse
node.execute(source, command)
File "C:\Program Files\Python311\Lib\site-packages\mcdreforged\command\builder\nodes\basic.py", line 453, in execute
self._execute_command(context)
File "C:\Program Files\Python311\Lib\site-packages\mcdreforged\command\builder\nodes\basic.py", line 362, in _executed
child_literal._execute_command(context)
File "C:\Program Files\Python311\Lib\site-packages\mcdreforged\command\builder\nodes\basic.py", line 341, in _executed
self.__smart_callback(callback, context.source, context)
File "C:\Program Files\Python311\Lib\site-packages\mcdreforged\command\builder\nodes\basic.py", line 291, in __smart_k
return callback(*args[:spec_args_len])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "plugins\MCDReforgedPluginManager-v1.3.2.mcdr\mcdreforged_plugin_manager\entries\mcdr_entry.py", line 22, in
.runs(lambda src: list_plugins(src))
^^^^^^^^^^^^^^^^^
File "plugins\MCDReforgedPluginManager-v1.3.2.mcdr\mcdreforged_plugin_manager\commands.py", line 66, in list_plugins
for plugin in cache.get_plugins_by_labels(labels):
File "plugins\MCDReforgedPluginManager-v1.3.2.mcdr\mcdreforged_plugin_manager\storage\plugin.py", line 202, in get_pls
if any([label in labels for label in plugin.labels]):
^^^^^^^^^^^^^
AttributeError: 'MetaInfo' object has no attribute 'labels'
国内这破网 用mpm下个插件还不如自己上GitHub手扒快
用环境变量大法的话就连不上127.0.0.1
所以建议config里面加一个proxy
http还是socks5无所谓
(
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.