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

fix: poetry deps #600

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

sgpublic
Copy link
Contributor

  1. poetry.lock 文件用于统一依赖版本,如果依赖版本没有在 pyproject.toml 里写死的话,依赖更新可能导致问题,比如 uiautomator2 的 2.16.18 版本有 bug 导致连不上 adb。
  2. opencv-python 的 4.3.0.36 版本被弃用,且在 debian 11/python 3.9.2 上无法安装,改为 4.5.5.64 恢复正常且可以正常运行。
  3. 忘记哪里需要 datasets 了,反正运行过程中报 no module named 'datasets',于是加上了。

PS:另外,其实不是很建议让 poetry 把虚拟环境创建到项目同一目录,因为对 docker 运行不是很友好(嘛,不过影响也不大,反正我没提交,如果大佬们认可的话把 poetry.toml 删掉就行了。

@0x114514BB
Copy link
Collaborator

感谢贡献!本项目在依赖管理上存在很多历史遗留问题,poetry.toml已有两年未跟进,亦未与requirements.txt同步更新,亟需维护。

但关于第2点,据测试,opencv-python==4.5.5.64与easyocr不兼容:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
easyocr 1.6.2 requires opencv-python-headless<=4.5.4.60, but you have opencv-python-headless 4.5.5.64 which is incompatible.
Successfully installed opencv-contrib-python-4.5.5.64 opencv-python-4.5.5.64 opencv-python-headless-4.5.5.64

请问opencv-python 4.3.0.38是否可以在debian 11/python 3.9.2环境下完成安装?如果可以请考虑指定4.3.0.38,该版本经测试无兼容性问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants