noneplugin / nonebot-plugin-ddcheck

NoneBot2 成分姬插件
MIT License
54 stars 13 forks source link

在树莓派上安装此插件时发生package包版本依赖冲突 #9

Closed york-yang-me closed 2 years ago

york-yang-me commented 2 years ago

在树莓派上运行nb plugin install nonebot_plugin_ddcheck发生如下错误:

pi@raspberrypi:/usr/local/qq_robot/nobot $ nb plugin install nonebot_plugin_ddcheck
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting nonebot-plugin-ddcheck
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1b/61/3f8f38f1dcf85a6f646af93e2e001f7bd186315bb7043d7aa76ed6fc0373/nonebot_plugin_ddcheck-0.1.3-py3-none-any.whl (7.0 kB)
Collecting nonebot-plugin-apscheduler<0.2.0,>=0.1.2
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1d/e8/21a2a75e7a3c850ab74d885dcc073f5eb857cd923817ed18d6fb790296c8/nonebot_plugin_apscheduler-0.1.2-py3-none-any.whl (2.8 kB)
Requirement already satisfied: httpx>=0.19.0 in /home/pi/.local/lib/python3.9/site-packages (from nonebot-plugin-ddcheck) (0.22.0)
Requirement already satisfied: nonebot2<3.0.0,>=2.0.0-beta.1 in /home/pi/.local/lib/python3.9/site-packages (from nonebot-plugin-ddcheck) (2.0.0b2)
Requirement already satisfied: nonebot-adapter-onebot<3.0.0,>=2.0.0-beta.1 in /home/pi/.local/lib/python3.9/site-packages (from nonebot-plugin-ddcheck) (2.0.0b1)
Collecting Jinja2<4.0.0,>=3.0.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting nonebot-plugin-htmlrender>=0.0.4
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/88/fb/1e2afaad9166b6a676e191e2aed6c9794591c03271895c03397c69f93005/nonebot_plugin_htmlrender-0.0.4.6-py3-none-any.whl (1.0 MB)
Requirement already satisfied: httpcore<0.15.0,>=0.14.5 in /home/pi/.local/lib/python3.9/site-packages (from httpx>=0.19.0->nonebot-plugin-ddcheck) (0.14.7)
Requirement already satisfied: charset-normalizer in /home/pi/.local/lib/python3.9/site-packages (from httpx>=0.19.0->nonebot-plugin-ddcheck) (2.0.12)
Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in /home/pi/.local/lib/python3.9/site-packages (from httpx>=0.19.0->nonebot-plugin-ddcheck) (1.5.0)
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from httpx>=0.19.0->nonebot-plugin-ddcheck) (2020.6.20)
Requirement already satisfied: sniffio in /home/pi/.local/lib/python3.9/site-packages (from httpx>=0.19.0->nonebot-plugin-ddcheck) (1.2.0)
Collecting MarkupSafe>=2.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1d/97/2288fe498044284f39ab8950703e88abbac2abbdf65524d576157af70556/MarkupSafe-2.1.1.tar.gz (18 kB)
  Preparing metadata (setup.py) ... done
Collecting apscheduler<4.0.0,>=3.7.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e4/9f/c3937d4babe62504b874d4bf2c0d85aa69c7f59fa84cf6050f3b9dc5d83e/APScheduler-3.9.1-py2.py3-none-any.whl (59 kB)
Collecting markdown<4.0.0,>=3.3.6
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f3/df/ca72f352e15b6f8ce32b74af029f1189abffb906f7c137501ffe69c98a65/Markdown-3.3.7-py3-none-any.whl (97 kB)
Collecting python-markdown-math<0.9,>=0.8
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4d/36/d16118345ff5f503d4d1c708e8427ed2213f2af7aaffac9d59010e665b5c/python_markdown_math-0.8-py3-none-any.whl (5.9 kB)
Collecting aiofiles<0.9.0,>=0.8.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ca/e4/b78d049f7cc7ed053ddbfdd59b2dcc7bd387458e2c2869b602975685d65e/aiofiles-0.8.0-py3-none-any.whl (13 kB)
Requirement already satisfied: uvicorn<0.18.0,>=0.17.6 in /home/pi/.local/lib/python3.9/site-packages (from nonebot-plugin-htmlrender>=0.0.4->nonebot-plugin-ddcheck) (0.17.6)
Collecting Pygments<3.0.0,>=2.10.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/5c/8e/1d9017950034297fffa336c72e693a5b51bbf85141b24a763882cf1977b5/Pygments-2.12.0-py3-none-any.whl (1.1 MB)
Collecting pymdown-extensions<10.0,>=9.1
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/37/28/8750666d9431c9cb5201df4bfa14b5ffcdcf659b22156a4810ee9ad5ca06/pymdown_extensions-9.4-py3-none-any.whl (216 kB)
Collecting nonebot-plugin-htmlrender>=0.0.4
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2e/51/b72239e15dd92466d26c245bfd546ac9985686c8b3d87eb096aae7368740/nonebot_plugin_htmlrender-0.0.4.5-py3-none-any.whl (1.0 MB)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/36/8c/cc2265758abcabc639ea36bfbcf5df27bdb688b3bad558685f7b6b7fbc42/nonebot_plugin_htmlrender-0.0.4.4-py3-none-any.whl (1.0 MB)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9a/5c/bc695a39f588624a43cf8b11e355167196c2e46a985eac37a6355fd4dff9/nonebot_plugin_htmlrender-0.0.4.3-py3-none-any.whl (1.0 MB)
Collecting nonebot2<3.0.0,>=2.0.0-beta.1
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/74/d4/53d7097fa6a5ca10bdb4ea7243225483715007baa9f423de9a66d3e573cc/nonebot2-2.0.0b1-py3-none-any.whl (78 kB)
Collecting nonebot-plugin-htmlrender>=0.0.4
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/51/bc/9998962bd7d2f6777f08bbb8f826add0f6adf804bb553b7d74c548d92cc3/nonebot_plugin_htmlrender-0.0.4.2-py3-none-any.whl (1.0 MB)
Collecting nonebot-adapter-cqhttp<3.0.0,>=2.0.0-alpha.16
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a4/1d/657aba0f4cc00ea8fffb7d29cfbe8a3d281b3adeddf9518937314eaeee96/nonebot_adapter_cqhttp-2.0.0b1-py3-none-any.whl (1.7 kB)
Collecting nonebot-plugin-htmlrender>=0.0.4
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/94/e7/4c934cecae2b07f15f66185cad9e1058512579305bb4987467d5066c592a/nonebot_plugin_htmlrender-0.0.4.1-py3-none-any.whl (1.0 MB)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2b/55/79125680fef6cef67e1297ab8349c75a3a907b9071aa4c8f206563a56127/nonebot_plugin_htmlrender-0.0.4-py3-none-any.whl (1.0 MB)
INFO: pip is looking at multiple versions of nonebot-plugin-apscheduler to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of nonebot-adapter-onebot to determine which version is compatible with other requirements. This could take a while.
Collecting nonebot-adapter-onebot<3.0.0,>=2.0.0-beta.1
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/45/de/e694fa5c27049d64d83495a889096f991603e1af5f005316f1f1511a2a0c/nonebot_adapter_onebot-2.0.0b1-py3-none-any.whl (22 kB)
INFO: pip is looking at multiple versions of jinja2 to determine which version is compatible with other requirements. This could take a while.
Collecting Jinja2<4.0.0,>=3.0.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/76/02/af4045156cde8feeefa30cb1c051e10321d4960c418bd52346a497feb302/Jinja2-3.1.1-py3-none-any.whl (132 kB)
INFO: pip is looking at multiple versions of httpx to determine which version is compatible with other requirements. This could take a while.
Collecting httpx>=0.19.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2f/d3/6a990516a43a522a72da356c4a91c03e09c0cddce8106e7e1215c120011f/httpx-0.22.0-py3-none-any.whl (84 kB)
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of nonebot-plugin-ddcheck to determine which version is compatible with other requirements. This could take a while.
Collecting nonebot-plugin-ddcheck
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7f/a3/def987291a0bd0f1ba772d7390b387e776e3d1672deadbc02050b9e0f3e8/nonebot_plugin_ddcheck-0.1.2-py3-none-any.whl (6.8 kB)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/bf/e7/7fc1a5171802576b8a92656fdf70ada913a53505bd0cc4e15cb944f4bcc2/nonebot_plugin_ddcheck-0.1.1-py3-none-any.whl (6.8 kB)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1f/08/f9bf1bfc3ac68724ef69e9114a2889f4bb7321b3957560bd86cf9d02711a/nonebot_plugin_ddcheck-0.1.0-py3-none-any.whl (6.8 kB)
ERROR: Cannot install nonebot-plugin-ddcheck because these package versions have conflicting dependencies.

The conflict is caused by:
    nonebot-plugin-htmlrender 0.0.4.6 depends on playwright<2.0.0 and >=1.17.2
    nonebot-plugin-htmlrender 0.0.4.5 depends on playwright<2.0.0 and >=1.17.2
    nonebot-plugin-htmlrender 0.0.4.4 depends on playwright<2.0.0 and >=1.17.2
    nonebot-plugin-htmlrender 0.0.4.3 depends on playwright<2.0.0 and >=1.17.2
    nonebot-plugin-htmlrender 0.0.4.2 depends on playwright<2.0.0 and >=1.17.2
    nonebot-plugin-htmlrender 0.0.4.1 depends on playwright<2.0.0 and >=1.17.2
    nonebot-plugin-htmlrender 0.0.4 depends on playwright<2.0.0 and >=1.17.2

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

尝试过更换镜像源,仍然是这个错误。 也尝试指定版本安装出冲突的包,但出现了如下了的错误:

Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting nonebot-plugin-htmlrender==0.0.4.6
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/88/fb/1e2afaad9166b6a676e191e2aed6c9794591c03271895c03397c69f93005/nonebot_plugin_htmlrender-0.0.4.6-py3-none-any.whl (1.0 MB)
Collecting markdown<4.0.0,>=3.3.6
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f3/df/ca72f352e15b6f8ce32b74af029f1189abffb906f7c137501ffe69c98a65/Markdown-3.3.7-py3-none-any.whl (97 kB)
Requirement already satisfied: nonebot-adapter-onebot<3.0.0,>=2.0.0-beta.1 in /home/pi/.local/lib/python3.9/site-packages (from nonebot-plugin-htmlrender==0.0.4.6) (2.0.0b1)
Requirement already satisfied: uvicorn<0.18.0,>=0.17.6 in /home/pi/.local/lib/python3.9/site-packages (from nonebot-plugin-htmlrender==0.0.4.6) (0.17.6)
Collecting Pygments<3.0.0,>=2.10.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/5c/8e/1d9017950034297fffa336c72e693a5b51bbf85141b24a763882cf1977b5/Pygments-2.12.0-py3-none-any.whl (1.1 MB)
Requirement already satisfied: nonebot2<3.0.0,>=2.0.0-beta.1 in /home/pi/.local/lib/python3.9/site-packages (from nonebot-plugin-htmlrender==0.0.4.6) (2.0.0b2)
Collecting pymdown-extensions<10.0,>=9.1
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/37/28/8750666d9431c9cb5201df4bfa14b5ffcdcf659b22156a4810ee9ad5ca06/pymdown_extensions-9.4-py3-none-any.whl (216 kB)
ERROR: Could not find a version that satisfies the requirement playwright<2.0.0,>=1.17.2 (from nonebot-plugin-htmlrender) (from versions: none)
ERROR: No matching distribution found for playwright<2.0.0,>=1.17.2

系统: armv7l Linux python版本:python 3.9.2 pip版本:22.1

MeetWq commented 2 years ago

建议去 nonebot-plugin-htmlrender 下面开issue

york-yang-me commented 2 years ago

嗯嗯,暂时是把冲突的包从windows上拉到树莓派解决的