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

无法正常使用 #8

Closed
ddwpwop opened this issue Jun 27, 2023 · 1 comment
Closed

无法正常使用 #8

ddwpwop opened this issue Jun 27, 2023 · 1 comment

Comments

@ddwpwop
Copy link

ddwpwop commented Jun 27, 2023

已按照要求安装requirements.txt和 python3 -m playwright instal,启动时报错.

python版本 3.8.5

E:\fork\blasting-main>python3 BLAST.py
Traceback (most recent call last):
  File "BLAST.py", line 8, in <module>
    from playwright.async_api import async_playwright
  File "C:\python3\lib\site-packages\playwright\async_api\__init__.py", line 25, in <module>
    import playwright.async_api._generated
  File "C:\python3\lib\site-packages\playwright\async_api\_generated.py", line 25, in <module>
    from playwright._impl._accessibility import Accessibility as AccessibilityImpl
  File "C:\python3\lib\site-packages\playwright\_impl\_accessibility.py", line 17, in <module>
    from playwright._impl._connection import Channel
  File "C:\python3\lib\site-packages\playwright\_impl\_connection.py", line 24, in <module>
    from pyee import AsyncIOEventEmitter, EventEmitter
  File "C:\python3\lib\site-packages\pyee\__init__.py", line 71, in <module>
    from pyee._trio import TrioEventEmitter  # noqa
  File "C:\python3\lib\site-packages\pyee\_trio.py", line 4, in <module>
    import trio
  File "C:\python3\lib\site-packages\trio\__init__.py", line 76, in <module>
    from ._dtls import DTLSEndpoint, DTLSChannel
  File "C:\python3\lib\site-packages\trio\_dtls.py", line 136, in <module>
    @attr.frozen
AttributeError: module 'attr' has no attribute 'frozen'

E:\fork\blasting-main>pip3 install -r requirements.txt
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Requirement already satisfied: ddddocr==1.4.7 in c:\python3\lib\site-packages (from -r requirements.txt (line 1)) (1.4.7)
Requirement already satisfied: python-docx==0.8.11 in c:\python3\lib\site-packages (from -r requirements.txt (line 2)) (0.8.11)
Requirement already satisfied: lxml==4.9.1 in c:\python3\lib\site-packages (from -r requirements.txt (line 3)) (4.9.1)
Requirement already satisfied: playwright==1.27.1 in c:\python3\lib\site-packages (from -r requirements.txt (line 4)) (1.27.1)
Requirement already satisfied: PyQt6==6.4.0 in c:\python3\lib\site-packages (from -r requirements.txt (line 5)) (6.4.0)
Requirement already satisfied: qasync==0.23.0 in c:\python3\lib\site-packages (from -r requirements.txt (line 6)) (0.23.0)
Requirement already satisfied: pyqtdarktheme==1.1.0 in c:\python3\lib\site-packages (from -r requirements.txt (line 7)) (1.1.0)
Requirement already satisfied: numpy in c:\python3\lib\site-packages (from ddddocr==1.4.7->-r requirements.txt (line 1)) (1.24.3)
Requirement already satisfied: onnxruntime in c:\python3\lib\site-packages (from ddddocr==1.4.7->-r requirements.txt (line 1)) (1.15.1)
Requirement already satisfied: Pillow in c:\python3\lib\site-packages (from ddddocr==1.4.7->-r requirements.txt (line 1)) (9.5.0)
Requirement already satisfied: opencv-python-headless in c:\python3\lib\site-packages (from ddddocr==1.4.7->-r requirements.txt (line 1)) (4.2.0.34)
Requirement already satisfied: greenlet==1.1.3 in c:\python3\lib\site-packages (from playwright==1.27.1->-r requirements.txt (line 4)) (1.1.3)
Requirement already satisfied: pyee==8.1.0 in c:\python3\lib\site-packages (from playwright==1.27.1->-r requirements.txt (line 4)) (8.1.0)
Requirement already satisfied: typing-extensions in c:\python3\lib\site-packages (from playwright==1.27.1->-r requirements.txt (line 4)) (4.4.0)
Requirement already satisfied: PyQt6-sip<14,>=13.4 in c:\python3\lib\site-packages (from PyQt6==6.4.0->-r requirements.txt (line 5)) (13.5.1)
Requirement already satisfied: PyQt6-Qt6>=6.4.0 in c:\python3\lib\site-packages (from PyQt6==6.4.0->-r requirements.txt (line 5)) (6.5.1)
Requirement already satisfied: coloredlogs in c:\python3\lib\site-packages (from onnxruntime->ddddocr==1.4.7->-r requirements.txt (line 1)) (14.0)
Requirement already satisfied: flatbuffers in c:\python3\lib\site-packages (from onnxruntime->ddddocr==1.4.7->-r requirements.txt (line 1)) (1.12)
Requirement already satisfied: packaging in c:\python3\lib\site-packages (from onnxruntime->ddddocr==1.4.7->-r requirements.txt (line 1)) (21.3)
Requirement already satisfied: protobuf in c:\python3\lib\site-packages (from onnxruntime->ddddocr==1.4.7->-r requirements.txt (line 1)) (3.17.3)
Requirement already satisfied: sympy in c:\python3\lib\site-packages (from onnxruntime->ddddocr==1.4.7->-r requirements.txt (line 1)) (1.9)
Requirement already satisfied: humanfriendly>=7.1 in c:\python3\lib\site-packages (from coloredlogs->onnxruntime->ddddocr==1.4.7->-r requirements.txt (line 1)) (8.2)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\python3\lib\site-packages (from packaging->onnxruntime->ddddocr==1.4.7->-r requirements.txt (line 1)) (2.4.7)
Requirement already satisfied: six>=1.9 in c:\python3\lib\site-packages (from protobuf->onnxruntime->ddddocr==1.4.7->-r requirements.txt (line 1)) (1.15.0)
Requirement already satisfied: mpmath>=0.19 in c:\python3\lib\site-packages (from sympy->onnxruntime->ddddocr==1.4.7->-r requirements.txt (line 1)) (1.2.1)
Requirement already satisfied: pyreadline in c:\python3\lib\site-packages (from humanfriendly>=7.1->coloredlogs->onnxruntime->ddddocr==1.4.7->-r requirements.txt (line 1)) (2.1)

E:\fork\blasting-main>python3 -m playwright install

E:\fork\blasting-main>

因为python3 -m playwright install已经执行安装过,再次执行这条命令会显示空白。

@gubeihc
Copy link
Owner

gubeihc commented Jun 28, 2023

altendky/qtrio#269
你看一下呢
应该是这个库的问题, 我用的python3.9

@gubeihc gubeihc closed this as completed Jun 28, 2023
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

No branches or pull requests

2 participants