nonvegan / streamlink-plugin-kick

Streamlink plugin for Kick.com
BSD 2-Clause "Simplified" License
40 stars 4 forks source link

no module named cloudscraper #2

Closed kai933 closed 1 year ago

kai933 commented 1 year ago

Hi im totally new to such thinks, github etc.. using win10 i installed python, streamlink and then cloudscraper with this pip command

but if i try to start a kick stream im getting only this:

[session][error] Failed to load plugin kick from C:\Users\xxx\AppData\Roaming\streamlink\plugins Traceback (most recent call last): File "C:\Program Files\Streamlink\pkgs\streamlink\session.py", line 617, in load_plugins mod = load_module(module_name, path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Streamlink\pkgs\streamlink\utils\module.py", line 14, in load_module spec.loader.exec_module(mod) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\xxx\AppData\Roaming\streamlink\plugins\kick.py", line 8, in import cloudscraper ModuleNotFoundError: No module named 'cloudscraper'

help pls

nonvegan commented 1 year ago

Looks like the module was not installed correctly, I would try to reinstall it and check the output.

kai933 commented 1 year ago

tried several times, brings nothing =/

$ pip install cloudscraper Requirement already satisfied: cloudscraper in c:\users\xxx\appdata\local\programs\python\python311\lib\site-packages (1.2.69) Requirement already satisfied: pyparsing>=2.4.7 in c:\users\xxx\appdata\local\programs\python\python311\lib\site-packages (from cloudscraper) (3.0.9) Requirement already satisfied: requests>=2.9.2 in c:\users\xxx\appdata\local\programs\python\python311\lib\site-packages (from cloudscraper) (2.27.1) Requirement already satisfied: requests-toolbelt>=0.9.1 in c:\users\xxx\appdata\local\programs\python\python311\lib\site-packages (from cloudscraper) (0.10.1) Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\xxx\appdata\local\programs\python\python311\lib\site-packages (from requests>=2.9.2->cloudscraper) (1.26.14) Requirement already satisfied: certifi>=2017.4.17 in c:\users\xxx\appdata\local\programs\python\python311\lib\site-packages (from requests>=2.9.2->cloudscraper) (2022.12.7) Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\xxx\appdata\local\programs\python\python311\lib\site-packages (from requests>=2.9.2->cloudscraper) (2.0.12) Requirement already satisfied: idna<4,>=2.5 in c:\users\xxx\appdata\local\programs\python\python311\lib\site-packages (from requests>=2.9.2->cloudscraper) (3.4)

nonvegan commented 1 year ago

I'm sorry but I'm not sure what the issue could be, perhaps you could try to install it inside a virtual environment and see if that works. I just tested it with python v3.10.5 and it worked.

nonvegan commented 1 year ago

Hey @kai933 I think we figured out your problem over at issue #3, take a look.

kai933 commented 1 year ago

ah cool, yes that solved the problem. interesting that the streamlink windows builds have their own python packages.

thanks for the help