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

pikpak导入错误 #486

Closed
assassinliujie opened this issue Mar 24, 2024 · 0 comments
Closed

pikpak导入错误 #486

assassinliujie opened this issue Mar 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@assassinliujie
Copy link

ELF_RSS 、 go-cqhttp 、 nonebot 、 Python 版本及操作系统

nonebot2.2.1
qq频道官方adapter
python3.10
ubuntu20.04
gitclone的最新版本

列出安装的 Python 包

aiodns==3.1.1
aiohttp==3.8.6
aiosignal==1.3.1
anyio==3.7.1
APScheduler==3.10.4
argcomplete==3.2.3
arrow==1.3.0
async-timeout==4.0.3
attrs==23.2.0
bbcode==1.1.0
beautifulsoup4==4.12.3
binaryornot==0.4.4
Brotli==1.1.0
cachetools==5.3.3
cashews==6.4.0
certifi==2024.2.2
cffi==1.16.0
chardet==5.2.0
charset-normalizer==3.3.2
click==8.1.7
cookiecutter==2.6.0
cssselect==1.2.0
deep-translator==1.11.4
distlib==0.3.8
emoji==2.8.0
exceptiongroup==1.2.0
fastapi==0.110.0
feedparser==6.0.11
filelock==3.13.1
frozenlist==1.4.1
h11==0.14.0
h2==4.1.0
hpack==4.0.0
httpcore==1.0.4
httptools==0.6.1
httpx==0.27.0
hyperframe==6.0.1
idna==3.6
ImageHash==4.3.1
Jinja2==3.1.3
loguru==0.7.2
lxml==5.1.0
magneturi==1.3
markdown-it-py==3.0.0
MarkupSafe==2.1.5
mdurl==0.1.2
msgpack==1.0.8
multidict==6.0.5
nb-cli==1.2.9
nonebot-adapter-onebot==2.3.1
nonebot-adapter-qq==1.4.2
nonebot-plugin-apscheduler==0.3.0
nonebot-plugin-guild-patch==0.2.3
nonebot2==2.2.1
noneprompt==0.1.9
numpy==1.26.4
packaging==24.0
PikPakAPI==0.1.6
Pillow==10.1.0
pipx==1.4.3
platformdirs==4.2.0
prompt-toolkit==3.0.43
pycares==4.4.0
pycparser==2.21
pydantic==1.10.14
pyfiglet==0.8.post1
Pygments==2.17.2
pygtrie==2.5.0
pyquery==2.0.0
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
python-qbittorrent==0.4.3
python-slugify==8.0.4
pytz==2024.1
PyWavelets==1.5.0
PyYAML==6.0.1
requests==2.31.0
rich==13.7.1
scipy==1.12.0
sgmllib3k==1.0.0
six==1.16.0
sniffio==1.3.1
soupsieve==2.5
starlette==0.36.3
tenacity==8.2.3
text-unidecode==1.3
tinydb==4.8.0
tomli==2.0.1
tomlkit==0.12.4
types-python-dateutil==2.9.0.20240316
typing_extensions==4.10.0
tzlocal==5.2
urllib3==2.2.1
userpath==1.9.2
uvicorn==0.29.0
uvloop==0.19.0
virtualenv==20.25.1
watchfiles==0.21.0
wcwidth==0.2.13
websockets==12.0
yarl==1.9.4

如何复现

nb run后报错,无法导入。

期望行为

No response

实际行为

File "", line 14, in
File "/root/anaconda3/envs/xbot/lib/python3.10/site-packages/nonebot/plugin/load.py", line 130, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "/root/anaconda3/envs/xbot/lib/python3.10/site-packages/nonebot/plugin/load.py", line 64, in load_all_plugins
return manager.load_all_plugins()
File "/root/anaconda3/envs/xbot/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 176, in load_all_plugins
return set(
File "/root/anaconda3/envs/xbot/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 177, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "/root/anaconda3/envs/xbot/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 146, in load_plugin
module = importlib.import_module(
File "/root/anaconda3/envs/xbot/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "/root/anaconda3/envs/xbot/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 242, in exec_module
super().exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/root/bot/q21/awe/plugins/ELF_RSS2/init.py", line 11, in
from . import command
File "/root/bot/q21/awe/plugins/ELF_RSS2/command/init.py", line 1, in
from . import (
File "/root/bot/q21/awe/plugins/ELF_RSS2/command/add_cookies.py", line 9, in
from .. import my_trigger as tr
File "/root/bot/q21/awe/plugins/ELF_RSS2/my_trigger.py", line 11, in
from . import rss_parsing
File "/root/bot/q21/awe/plugins/ELF_RSS2/rss_parsing.py", line 12, in
from .parsing import get_proxy
File "/root/bot/q21/awe/plugins/ELF_RSS2/parsing/init.py", line 21, in
from .download_torrent import down_torrent, pikpak_offline
File "/root/bot/q21/awe/plugins/ELF_RSS2/parsing/download_torrent.py", line 10, in
from ..pikpak_offline import pikpak_offline_download
File "/root/bot/q21/awe/plugins/ELF_RSS2/pikpak_offline.py", line 5, in
from pikpakapi.PikpakException import PikpakAccessTokenExpireException, PikpakException
ImportError: cannot import name 'PikpakAccessTokenExpireException' from 'pikpakapi.PikpakException' (/root/anaconda3/envs/xbot/lib/python3.10/site-packages/pikpakapi/PikpakException.py)

@assassinliujie assassinliujie added the bug Something isn't working label Mar 24, 2024
@Quan666 Quan666 closed this as completed Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants