Skip to content

【报错】加载插件提示缺失pysilk库 #7

@QwindF

Description

@QwindF

但是环境里面有pysilk,这也的确是venv虚拟环境。
pip列表:

(venv) PS D:\BOT> pip list
Package                               Version
------------------------------------- ------------
aiocache                              0.12.1
aiocqhttp                             1.4.4
aiofiles                              23.1.0
aiohttp                               3.8.5
aiohttp-socks                         0.8.0
aiosignal                             1.3.1
aiosqlite                             0.17.0
alembic                               1.11.2
amis-python                           1.0.8.post2
annotated-types                       0.7.0
anyio                                 3.6.2
APScheduler                           3.9.1.post1
arrow                                 1.2.3
async-timeout                         4.0.2
asyncache                             0.3.1
asyncio-dgram                         2.1.2
asyncmy                               0.2.9
asyncodbc                             0.1.1
asyncpg                               0.27.0
attrs                                 23.1.0
av                                    12.2.0
ayaka                                 0.0.4.7
ayaka-db                              0.0.3
ayaka-utils                           0.0.4
bbcode                                1.1.0
beautifulsoup4                        4.12.2
bilireq                               0.2.13
binaryornot                           0.4.4
BingImageCreator                      0.5.0
bleach                                6.0.0
blinker                               1.5
build                                 0.1.0
cachetools                            5.3.1
cashews                               5.0.0
certifi                               2022.12.7
chardet                               5.1.0
charset-normalizer                    3.0.1
chevron                               0.14.0
click                                 8.1.3
colorama                              0.4.6
contourpy                             1.1.0
cookiecutter                          1.7.3
cycler                                0.11.0
Deprecated                            1.2.14
distlib                               0.3.6
dnspython                             2.2.1
docutils                              0.20.1
ecdsa                                 0.19.0
ephem                                 4.1.5
fastapi                               0.101.0
filelock                              3.9.0
fonttools                             4.41.1
frozendict                            2.3.8
frozenlist                            1.4.0
greenlet                              2.0.1
grpcio                                1.57.0
h11                                   0.14.0
h2                                    4.1.0
haruka-bot                            1.5.2
hpack                                 4.0.0
httpcore                              0.16.3
httptools                             0.5.0
httpx                                 0.23.3
hypercorn                             0.14.4
hyperframe                            6.0.1
idna                                  3.4
importlib-metadata                    6.0.0
inflection                            0.5.1
iso8601                               1.1.0
itsdangerous                          2.1.2
jaraco.classes                        3.3.0
jieba                                 0.42.1
Jinja2                                3.1.2
jinja2-time                           0.2.0
keyring                               24.2.0
kiwisolver                            1.4.4
lazy                                  1.5
loguru                                0.6.0
logzero                               1.7.0
Mako                                  1.2.4
Markdown                              3.4.4
MarkupSafe                            2.1.2
matplotlib                            3.7.2
mcstatus                              10.0.3
more-itertools                        10.1.0
msgpack                               1.0.4
multidict                             6.0.4
nb-cli                                1.0.1
nb2chan                               0.1.1
nonebot-adapter-onebot                2.4.3
nonebot-plugin-access-control         0.5.7.post1
nonebot-plugin-analysis-bilibili      2.5.0
nonebot-plugin-apscheduler            0.2.0
nonebot-plugin-code                   0.0.6
nonebot-plugin-datastore              1.1.0
nonebot-plugin-githubcard             0.1.5
nonebot-plugin-gocqhttp               0.6.4
nonebot-plugin-guild-patch            0.2.2
nonebot-plugin-heweather              0.6.9
nonebot-plugin-hotsearch              0.1.1
nonebot-plugin-htmlrender             0.2.0.3
nonebot-plugin-imageutils             0.1.17
nonebot_plugin_learning_chat          0.4.0
nonebot-plugin-localstore             0.5.0
nonebot-plugin-miragetank             0.1.5
nonebot-plugin-picmcstat              0.3.5
nonebot-plugin-pixivbot               2.0.0
nonebot-plugin-report                 1.2.1
nonebot-plugin-send-anything-anywhere 0.2.7
nonebot-plugin-session                0.0.9
nonebot-plugin-simplemusic            0.1.7
nonebot-plugin-songpicker2            0.2.6
nonebot-plugin-stable-diffusion-diao  0.4.7.3
nonebot-plugin-today-in-history       0.1.3
nonebot-plugin-tortoise-orm           0.1.1
nonebot-plugin-who-at-me              0.2.8
nonebot-plugin-wiki                   0.1.0
nonebot2                              2.3.1
noneprompt                            0.1.7
numpy                                 1.25.1
opencv-python-headless                4.8.0.74
packaging                             23.0
peewee                                3.16.2
pendulum                              2.1.2
pep517                                0.13.0
pil-utils                             0.1.8
pilk                                  0.2.4
Pillow                                9.5.0
pip                                   23.2.1
PixivPy-Async                         1.2.14
pkginfo                               1.9.6
platformdirs                          2.6.2
playwright                            1.29.1
poyo                                  0.5.0
priority                              2.0.0
prompt-toolkit                        3.0.36
protobuf                              4.24.2
psutil                                5.9.4
py-cpuinfo                            9.0.0
pyasn1                                0.4.8
pycryptodome                          3.20.0
pydantic                              1.10.16
pydantic_core                         2.18.4
pyee                                  9.0.4
pyephem                               9.99
pyfiglet                              0.8.post1
Pygments                              2.15.1
pygtrie                               2.5.0
pymdown-extensions                    10.1
pyodbc                                5.1.0
pyparsing                             3.0.9
pypika-tortoise                       0.1.6
pypng                                 0.20220715.0
pysilk                                0.0.1
python-dateutil                       2.8.2
python-dotenv                         0.21.0
python-jose                           3.3.0
python-markdown-math                  0.8
python-slugify                        7.0.0
python-socks                          2.3.0
pytz                                  2022.7.1
pytz-deprecation-shim                 0.1.0.post0
pytzdata                              2020.1
pywin32-ctypes                        0.2.2
PyYAML                                6.0
qrcode                                7.4.2
quart                                 0.18.4
readme-renderer                       40.0
redis                                 4.6.0
regex                                 2023.10.3
requests                              2.28.2
requests-toolbelt                     1.0.0
rfc3986                               1.5.0
rsa                                   4.9
ruamel.yaml                           0.17.32
ruamel.yaml.clib                      0.2.7
setuptools                            65.5.1
shortuuid                             1.0.11
six                                   1.16.0
sniffio                               1.3.0
soupsieve                             2.4.1
SQLAlchemy                            2.0.19
sqlmodel                              0.0.19
starlette                             0.27.0
StrEnum                               0.4.15
text-unidecode                        1.3
toml                                  0.10.2
tomlkit                               0.11.6
tortoise-orm                          0.19.3
tqdm                                  4.65.0
twine                                 3.8.0
typing_extensions                     4.7.1
tzdata                                2022.7
tzlocal                               5.0.1
ujson                                 5.10.0
urllib3                               1.26.14
uvicorn                               0.20.0
virtualenv                            20.17.1
watchfiles                            0.18.1
wcwidth                               0.2.6
webencodings                          0.5.1
websockets                            10.4
Werkzeug                              2.3.6
wheel                                 0.38.4
win32-setctime                        1.1.0
wrapt                                 1.15.0
wsproto                               1.2.0
yarl                                  1.8.2
zipp                                  3.11.0

[notice] A new release of pip is available: 23.2.1 -> 24.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip

日志

[<FileHandler D:\BOT\CirnoBot\cqsat\log.log (DEBUG)>, <StreamHandler <stdout> (INFO)>]
07-20 13:30:04 [ERROR] nonebot | Failed to import "src.plugins.cqsat"
Traceback (most recent call last):
  File "D:\BOT\CirnoBot\bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "D:\BOT\CirnoBot\cirno_util.py", line 45, in load_plugins
    nonebot.load_plugin(f"src.plugins.{plugin_name}")
  File "D:\BOT\CirnoBot\venv\Lib\site-packages\nonebot\plugin\load.py", line 40, in load_plugin
    return manager.load_plugin(module_path)
> File "D:\BOT\CirnoBot\venv\Lib\site-packages\nonebot\plugin\manager.py", line 175, in load_plugin
    module = importlib.import_module(name)
  File "C:\Python311\Lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "D:\BOT\CirnoBot\venv\Lib\site-packages\nonebot\plugin\manager.py", line 255, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "D:\BOT\CirnoBot\src\plugins\cqsat\__init__.py", line 8, in <module>
    from . import (
  File "D:\BOT\CirnoBot\src\plugins\cqsat\entertainment\__init__.py", line 18, in <module>
    from ..media_utils import convert_to_silk_wav, MergeTwoMp3
  File "D:\BOT\CirnoBot\src\plugins\cqsat\media_utils.py", line 10, in <module>
    import pysilk
ModuleNotFoundError: No module named 'pysilk'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions