Instinctlol / automatic-twitch-recorder

Checks if a user on twitch is currently streaming and then records the stream via streamlink
187 stars 40 forks source link

ModuleNotFoundError: No module named 'streamlink' #15

Closed LunarstarPony closed 5 years ago

LunarstarPony commented 5 years ago

Traceback (most recent call last): File "atr_cmd.py", line 3, in from daemon import Daemon File "/home/lunarstarpony/stream/recorder/daemon.py", line 1, in from watcher import Watcher File "/home/lunarstarpony/stream/recorder/watcher.py", line 4, in import streamlink ModuleNotFoundError: No module named 'streamlink' Am i doing it wrong? I already install streamlink

Instinctlol commented 5 years ago

Please follow the installation instructions, you need to install streamlink via pip.

LunarstarPony commented 5 years ago

Yes i install streamlink via pip

LunarstarPony commented 5 years ago

But seems like Its install in Python 2.7

LunarstarPony commented 5 years ago

Looking in indexes: https://pypi.doubanio.com/simple Requirement already satisfied: streamlink in /usr/lib/python2.7/site-packages (1.1.1) Requirement already satisfied: urllib3[secure]>=1.23; python_version < "3.0" in /root/.local/lib/python2.7/site-packages (from streamlink) (1.25.3) Requirement already satisfied: PySocks!=1.5.7,>=1.5.6 in /usr/lib/python2.7/site-packages (from streamlink) (1.7.0) Requirement already satisfied: pycryptodome<4,>=3.4.3 in /usr/lib64/python2.7/site-packages (from streamlink) (3.8.2) Requirement already satisfied: backports.shutil-which; python_version < "3.3" in /usr/lib/python2.7/site-packages (from streamlink) (3.5.2) Requirement already satisfied: iso-639 in /usr/lib/python2.7/site-packages (from streamlink) (0.4.5) Requirement already satisfied: singledispatch; python_version < "3.4" in /usr/lib/python2.7/site-packages (from streamlink) (3.4.0.3) Requirement already satisfied: backports.shutil-get-terminal-size; python_version < "3.3" in /usr/lib/python2.7/site-packages (from streamlink) (1.0.0) Requirement already satisfied: isodate in /usr/lib/python2.7/site-packages (from streamlink) (0.6.0) Requirement already satisfied: websocket-client in /usr/lib/python2.7/site-packages (from streamlink) (0.56.0) Requirement already satisfied: futures; python_version < "3.0" in /usr/lib/python2.7/site-packages (from streamlink) (3.3.0) Requirement already satisfied: iso3166 in /usr/lib/python2.7/site-packages (from streamlink) (1.0) Requirement already satisfied: requests<3.0,>=2.21.0 in /root/.local/lib/python2.7/site-packages (from streamlink) (2.22.0) Requirement already satisfied: pyOpenSSL>=0.14; extra == "secure" in /usr/lib64/python2.7/site-packages (from urllib3[secure]>=1.23; python_version < "3.0"->streamlink) (19.0.0) Requirement already satisfied: idna>=2.0.0; extra == "secure" in /root/.local/lib/python2.7/site-packages (from urllib3[secure]>=1.23; python_version < "3.0"->streamlink) (2.8) Requirement already satisfied: cryptography>=1.3.4; extra == "secure" in /usr/lib64/python2.7/site-packages (from urllib3[secure]>=1.23; python_version < "3.0"->streamlink) (2.1) Requirement already satisfied: certifi; extra == "secure" in /root/.local/lib/python2.7/site-packages (from urllib3[secure]>=1.23; python_version < "3.0"->streamlink) (2019.6.16) Requirement already satisfied: ipaddress; python_version == "2.7" and extra == "secure" in /usr/lib/python2.7/site-packages (from urllib3[secure]>=1.23; python_version < "3.0"->streamlink) (1.0.22) Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from singledispatch; python_version < "3.4"->streamlink) (1.12.0) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /root/.local/lib/python2.7/site-packages (from requests<3.0,>=2.21.0->streamlink) (3.0.4) Requirement already satisfied: cffi>=1.7; platform_python_implementation != "PyPy" in /usr/lib64/python2.7/site-packages (from cryptography>=1.3.4; extra == "secure"->urllib3[secure]>=1.23; python_version < "3.0"->streamlink) (1.12.3) Requirement already satisfied: enum34; python_version < "3" in /usr/lib/python2.7/site-packages (from cryptography>=1.3.4; extra == "secure"->urllib3[secure]>=1.23; python_version < "3.0"->streamlink) (1.1.6) Requirement already satisfied: asn1crypto>=0.21.0 in /usr/lib/python2.7/site-packages (from cryptography>=1.3.4; extra == "secure"->urllib3[secure]>=1.23; python_version < "3.0"->streamlink) (0.24.0) Requirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.7; platform_python_implementation != "PyPy"->cryptography>=1.3.4; extra == "secure"->urllib3[secure]>=1.23; python_version < "3.0"->streamlink) (2.19) [lunarstarpony@Lunarstar-Server ~]$

LunarstarPony commented 5 years ago

I already Try to reinstall it again but still don't work

Instinctlol commented 5 years ago

You need to use python3

LunarstarPony commented 5 years ago

I try to use php3 install but it still install in 2.7

Instinctlol commented 5 years ago

I don't know what to tell you, you need to use python3 and install dependencies with pip3. Look for any basic tutorial on the internet on how to install modules / requirements with those tools.

LunarstarPony commented 5 years ago

I know pip3 i type pip3 to install it too but it still install in 2.7

LunarstarPony commented 5 years ago

sudo pip3 install

Instinctlol commented 5 years ago

Well these problems are not caused by this project. It's either an issue on your end, your installation or your os.

LunarstarPony commented 5 years ago

CentOS

LunarstarPony commented 5 years ago

Im goin to try to reinstall again

Instinctlol commented 5 years ago

I used centos 1810 on a virtualbox and it works fine there. Make sure to use this tutorial to install python3.

Also, because you didn't manage to install this properly yourself, I don't think centos is for you as it's only for advanced users. See this visual guide to pick a better os which is more suitable for you.