HƯỚNG DẪN CÁCH DÙNG CDM + KẾT HỢP VỚI WKS-KEYS ĐỂ LẤY CHÌA KHÓA
Vào thư mục
WKS-KEYS, mở
cmd lên chạy tệp
l3.py
Bạn ơi, mình gặp lỗi như thế này khi mở file l3.py thì phải sử lý như thế nào vậy bạn?
D:\WKS-KEYS>python l3.py
Traceback (most recent call last):
File "l3.py", line 9, in <module>
from pywidevine.L3.cdm import cdm, deviceconfig
File "D:\WKS-KEYS\pywidevine\L3\cdm\cdm.py", line 10, in <module>
from pywidevine.L3.cdm.formats import wv_proto2_pb2 as wv_proto2
File "D:\WKS-KEYS\pywidevine\L3\cdm\formats\wv_proto2_pb2.py", line 33, in <mo
dule>
_descriptor.EnumValueDescriptor(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\sit
e-packages\google\protobuf\descriptor.py", line 755, in __new__
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and mu
st be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workaround
s are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Py
thon parsing and will be much slower).
More information:
https://developers.google.com/protocol-buffers/docs/news/2022-
05-06#python-updates