WHTJEON / narrowvine-reborn

The Ultimate Widevine Content Ripper (KEY Extract + Download + Decrypt) is REBORN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImportError: cannot import name 'cdmapi' from 'pywidevine.cdm'

xgrons opened this issue · comments

Traceback (most recent call last):
File "narrowvine_reborn.py", line 3, in
from pywidevine.decrypt.wvdecrypt import WvDecrypt
File "/root/narrowvine-reborn/pywidevine/decrypt/wvdecrypt.py", line 6, in
from pywidevine.cdm import cdm, deviceconfig
File "/root/narrowvine-reborn/pywidevine/cdm/cdm.py", line 22, in
from pywidevine.cdm import cdmapi
ImportError: cannot import name 'cdmapi' from 'pywidevine.cdm' (/root/narrowvine-reborn/pywidevine/cdm/init.py)

Traceback (most recent call last):
File "narrowvine_reborn.py", line 3, in
from pywidevine.decrypt.wvdecrypt import WvDecrypt
File "/root/narrowvine-reborn/pywidevine/decrypt/wvdecrypt.py", line 6, in
from pywidevine.cdm import cdm, deviceconfig
File "/root/narrowvine-reborn/pywidevine/cdm/cdm.py", line 22, in
from pywidevine.cdm import cdmapi
ImportError: cannot import name 'cdmapi' from 'pywidevine.cdm' (/root/narrowvine-reborn/pywidevine/cdm/init.py)

Tell me your OS and python version

please use following python version depends on your OS.

windows: python39
linux: python36
macos: python37

Traceback (most recent call last):
File "narrowvine_reborn.py", line 3, in
from pywidevine.decrypt.wvdecrypt import WvDecrypt
File "/root/narrowvine-reborn/pywidevine/decrypt/wvdecrypt.py", line 6, in
from pywidevine.cdm import cdm, deviceconfig
File "/root/narrowvine-reborn/pywidevine/cdm/cdm.py", line 22, in
from pywidevine.cdm import cdmapi
ImportError: cannot import name 'cdmapi' from 'pywidevine.cdm' (/root/narrowvine-reborn/pywidevine/cdm/init.py)

for MacOS go to narrowvine-reborn / pywidevine / cdm and just rename cdmapi.cpython-37m-darwin.so to cdmapi.so

Tell me your OS and python version

Ubuntu 20.04 64bit

Thanks i just changed
narrowvine-reborn/pywidevine/cdm and just rename cdmapi.cpython-36m-x86_64-linux-gnu.so to cdmapi.so
and it's working :)

Traceback (most recent call last):
File "narrowvine_reborn.py", line 3, in
from pywidevine.decrypt.wvdecrypt import WvDecrypt
File "D:\ytdl\narrowvine-reborn-master\pywidevine\decrypt\wvdecrypt.py", line 6, in
from pywidevine.cdm import cdm, deviceconfig
File "D:\ytdl\narrowvine-reborn-master\pywidevine\cdm\cdm.py", line 22, in
from pywidevine.cdm import cdmapi
ImportError: cannot import name 'cdmapi' from 'pywidevine.cdm' (D:\ytdl\narrowvine-reborn-master\pywidevine\cdm_init_.py)