Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin: nonebot-plugin-pam #3111

Open
1 task
Yan-Zero opened this issue Nov 8, 2024 · 3 comments · May be fixed by #3112
Open
1 task

Plugin: nonebot-plugin-pam #3111

Yan-Zero opened this issue Nov 8, 2024 · 3 comments · May be fixed by #3112
Labels
Plugin Publish Plugin

Comments

@Yan-Zero
Copy link
Contributor

Yan-Zero commented Nov 8, 2024

PyPI 项目名

nonebot-plugin-pam

插件 import 包名

nonebot_plugin_pam

标签

[{"label":"rule","color":"#ea5252"}]

插件配置项

pam_host='127.0.0.1'
pam_port=19198

插件测试

  • 如需重新运行插件测试,请勾选左侧勾选框
@Yan-Zero Yan-Zero added the Plugin Publish Plugin label Nov 8, 2024
noneflow bot pushed a commit that referenced this issue Nov 8, 2024
@noneflow noneflow bot changed the title Plugin: nonebot-plugin-pam Plugin: 权限控制 Nov 8, 2024
@noneflow noneflow bot linked a pull request Nov 8, 2024 that will close this issue
@noneflow
Copy link
Contributor

noneflow bot commented Nov 8, 2024

📃 商店发布检查结果

Plugin: nonebot-plugin-pam

⚠️ 在发布检查过程中,我们发现以下问题:

  • ⚠️ 插件加载测试未通过。
    测试输出创建测试目录 plugin_test 项目 nonebot-plugin-pam 创建成功。 Virtualenv Python: 3.12.7 Implementation: CPython Path: NA Executable: NA Base Platform: linux OS: posix Python: 3.12.7 Path: /usr/local Executable: /usr/local/bin/python3.12 Using version ^0.2.1 for nonebot-plugin-pam Updating dependencies Resolving dependencies... Package operations: 19 installs, 0 updates, 0 removals - Installing idna (3.10) - Installing sniffio (1.3.1) - Installing typing-extensions (4.12.2) - Installing annotated-types (0.7.0) - Installing anyio (4.6.2.post1) - Installing multidict (6.1.0) - Installing propcache (0.2.0) - Installing pydantic-core (2.23.4) - Installing exceptiongroup (1.2.2) - Installing loguru (0.7.2) - Installing pydantic (2.9.2) - Installing python-dotenv (1.0.1) - Installing starlette (0.41.2) - Installing pygtrie (2.5.0) - Installing yarl (1.17.2) - Installing fastapi (0.115.5) - Installing nonebot2 (2.4.0) - Installing pyyaml (6.0.2) - Installing nonebot-plugin-pam (0.2.1) Writing lock file 插件 nonebot-plugin-pam 依赖的插件如下: 插件 nonebot-plugin-pam 的信息如下: name : nonebot-plugin-pam version : 0.2.1 description : Nonebot 2 的权限与访问管理。 dependencies - fastapi >=0.115.4,<0.116.0 - nonebot2 >=2.4.0,<3.0.0 - pyyaml >=6.0.2,<7.0.0 插件 nonebot_plugin_pam 加载出错: 11-18 16:02:29 [SUCCESS] nonebot | NoneBot is initializing... 11-18 16:02:29 [INFO] nonebot | Current Env: prod 11-18 16:02:29 [ERROR] nonebot | Failed to import "nonebot_plugin_apscheduler" Traceback (most recent call last): File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/runner.py", line 16, in <module> plugin = load_plugin("nonebot_plugin_pam") File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot/plugin/load.py", line 42, in load_plugin return manager.load_plugin(module_path) File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 169, in load_plugin module = importlib.import_module(self._third_party_plugin_ids[name]) File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 257, in exec_module super().exec_module(module) File "<frozen importlib._bootstrap_external>", line 995, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot_plugin_pam/__init__.py", line 9, in <module> from .checker import plugin_check File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 995, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot_plugin_pam/checker.py", line 21, in <module> from .ratelimit import Bucket File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 995, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot_plugin_pam/ratelimit.py", line 62, in <module> require("nonebot_plugin_apscheduler") File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot/plugin/load.py", line 187, in require plugin = load_plugin(name) File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot/plugin/load.py", line 42, in load_plugin return manager.load_plugin(module_path) > File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 169, in load_plugin module = importlib.import_module(self._third_party_plugin_ids[name]) File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked ModuleNotFoundError: No module named 'nonebot_plugin_apscheduler' 11-18 16:02:29 [ERROR] nonebot | Failed to import "nonebot_plugin_pam" Traceback (most recent call last): File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/runner.py", line 16, in <module> plugin = load_plugin("nonebot_plugin_pam") File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot/plugin/load.py", line 42, in load_plugin return manager.load_plugin(module_path) > File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 169, in load_plugin module = importlib.import_module(self._third_party_plugin_ids[name]) File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 257, in exec_module super().exec_module(module) File "<frozen importlib._bootstrap_external>", line 995, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot_plugin_pam/__init__.py", line 9, in <module> from .checker import plugin_check File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot_plugin_pam/checker.py", line 21, in <module> from .ratelimit import Bucket File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot_plugin_pam/ratelimit.py", line 62, in <module> require("nonebot_plugin_apscheduler") File "/tmp/plugin_test/nonebot-plugin-pam-nonebot_plugin_pam/.venv/lib/python3.12/site-packages/nonebot/plugin/load.py", line 190, in require raise RuntimeError(f'Cannot load plugin "{name}"!') RuntimeError: Cannot load plugin "nonebot_plugin_apscheduler"!
  • 详情
  • ✅ 项目 nonebot-plugin-pam 已发布至 PyPI。
  • ✅ 标签: rule-#ea5252。

  • 💡 如需修改信息,请直接修改 issue,机器人会自动更新检查结果。
    💡 当插件加载测试失败时,请发布新版本后勾选插件测试勾选框重新运行插件测试。

    ♻️ 评论已更新至最新检查结果

    💪 Powered by NoneFlow

    @yanyongyu
    Copy link
    Member

    插件不能假定用户使用的是fastapi驱动器,应该要做检查。插件数据请使用 localstore 插件存储。

    noneflow bot pushed a commit that referenced this issue Nov 10, 2024
    noneflow bot pushed a commit that referenced this issue Nov 10, 2024
    noneflow bot pushed a commit that referenced this issue Nov 10, 2024
    noneflow bot pushed a commit that referenced this issue Nov 12, 2024
    noneflow bot pushed a commit that referenced this issue Nov 18, 2024
    @yanyongyu
    Copy link
    Member

    @Yan-Zero 是否有更新?

    @noneflow noneflow bot changed the title Plugin: 权限控制 Plugin: nonebot-plugin-pam Nov 18, 2024
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Plugin Publish Plugin
    Development

    Successfully merging a pull request may close this issue.

    2 participants