Tkd-Alex / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.23k stars 688 forks source link

Issue( Replit.com) #384

Closed BarboPT closed 2 years ago

Tkd-Alex commented 2 years ago

Try to create a cookie on your machine and then upload to replit

On Thu, 6 Jan 2022, 22:57 BarboPT, @.***> wrote:

[image: image] https://user-images.githubusercontent.com/97259109/148457821-24b227b6-13c3-4c0b-8ce3-2c5821267c99.png ~/Twitch-Channel-Points-Miner-v2/Twitch-Channel-Points-Miner-v2$ python run.py 06/01/22 21:55:53 - INFO - [run]: 💣 Start session: '702033c5-2be8-4fdb-8ad9-bed393be3cff' 06/01/22 21:55:53 - INFO - [login_flow]: You'll have to login to Twitch! 06/01/22 21:55:54 - INFO - [login_flow]: Console login unavailable (CAPTCHA solving required). What browser do you use? Chrome (1), Firefox (2), Other (3): 06/01/22 21:55:57 - INFO - [login_flow_backup]: Your browser is unsupported, sorry. 06/01/22 21:55:57 - INFO - [run]: 🤓 Loading data for 8 streamers. Please wait...

06/01/22 21:56:03 - ERROR - [error]: error from callback <function WebSocketsPool.on_message at 0x7f702e17b3a0>: Error while trying to listen for a topic: {'type': 'RESPONSE', 'error': 'ERR_BADAUTH', 'nonce': 'F1wZgtewFmk7FWz1fmwoCo9XKbdDo3'} File "/opt/virtualenvs/python3/lib/python3.8/site-packages/websocket/_app.py", line 400, in _callback callback(self, *args) File "/home/runner/Twitch-Channel-Points-Miner-v2/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/WebSocketsPool.py", line 378, in on_message raise RuntimeError(f"Error while trying to listen for a topic: {response}")

— Reply to this email directly, view it on GitHub https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues/384#issuecomment-1006963797, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLJAGIHYKDF2OLT372QBBTUUYF5JANCNFSM5LNJWFNA . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>

Boryyy commented 2 years ago

@BarboPT yes , the cookie folder , just reupload it , and try using console and not shell

Boryyy commented 2 years ago

the whole folder , and just upload it on repl , dont change anything

Boryyy commented 2 years ago

try pip uninstall websocket-client

then pip install websocket-client==1.0.1

or just try install older or newer version of that

BarboPT commented 2 years ago

same ...

Boryyy commented 2 years ago

or websocket-client==1.2.1

BarboPT commented 2 years ago

same error

Boryyy commented 2 years ago

pip install websocket-client==0.37.0 ?

Boryyy commented 2 years ago

last thing then idk bro pip3 uninstall websocket pip3 uninstall websocket-client pip3 install websocket-client

Boryyy commented 2 years ago

@BarboPT there are no way of doing that , even if u find anyway it can be read becouse it still shown how u did that , best way is to buy the premium and make them private , or just leave them public but change the name of the repo to somthing not similar as twitch , twitch points , idk. Did the reply above help with the issue?

BarboPT commented 2 years ago

yy

BarboPT commented 2 years ago

thx

BarboPT commented 2 years ago

Are possible help me with the telegram bot? @Boryyy

Boryyy commented 2 years ago

what are u trying to do? @BarboPT

BarboPT commented 2 years ago

bot telegram for this app

Boryyy commented 2 years ago

to get the stats or what?

BarboPT commented 2 years ago

dont working ...

Boryyy commented 2 years ago

can you explain it more?

BarboPT commented 2 years ago

Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, self._kwargs) File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/keep_alive.py", line 11, in run app.run(host='0.0.0.0',port=8080) File "/opt/virtualenvs/python3/lib/python3.8/site-packages/flask/app.py", line 922, in run run_simple(t.cast(str, host), port, self, options) File "/opt/virtualenvs/python3/lib/python3.8/site-packages/werkzeug/serving.py", line 1010, in run_simple inner() File "/opt/virtualenvs/python3/lib/python3.8/site-packages/werkzeug/serving.py", line 950, in inner srv = make_server( File "/opt/virtualenvs/python3/lib/python3.8/site-packages/werkzeug/serving.py", line 782, in make_server return ThreadedWSGIServer( File "/opt/virtualenvs/python3/lib/python3.8/site-packages/werkzeug/serving.py", line 688, in init super().init(server_address, handler) # type: ignore File "/usr/lib/python3.8/socketserver.py", line 452, in init self.server_bind() File "/usr/lib/python3.8/http/server.py", line 138, in server_bind socketserver.TCPServer.server_bind(self) File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind self.socket.bind(self.server_address) OSError: [Errno 98] Address already in use 09/01/22 21:56:35 - INFO - [run]: 💣 Start session: '0234403d-844a-4e0d-a205-3b715349764d' 09/01/22 21:56:35 - INFO - [login_flow]: You'll have to login to Twitch! 09/01/22 21:56:35 - INFO - [login_flow]: Console login unavailable (CAPTCHA solving required). What browser do you use? Chrome (1), Firefox (2), Other (3): 09/01/22 21:56:43 - INFO - [login_flow_backup]: Your browser is unsupported, sorry. 09/01/22 21:56:43 - INFO - [run]: 🤓 Loading data for 18 streamers. Please wait...

09/01/22 21:56:55 - ERROR - [error]: error from callback <function WebSocketsPool.on_message at 0x7fb669f6b3a0>: Error while trying to listen for a topic: {'type': 'RESPONSE', 'error': 'ERR_BADAUTH', 'nonce': 'k0PYJh5gK45pxisBLtlNFgC8V7vxqD'} File "/opt/virtualenvs/python3/lib/python3.8/site-packages/websocket/_app.py", line 400, in _callback callback(self, *args) File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/WebSocketsPool.py", line 378, in on_message raise RuntimeError(f"Error while trying to listen for a topic: {response}")

@Tkd-Alex

Tkd-Alex commented 2 years ago

The error still the same, you can't login on repl, you need to upload the correct cookie file

Charlyma24 commented 2 years ago

Traceback (most recent call last): File "run.py", line 6, in from TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/init.py", line 3, in from .TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 24, in from TwitchChannelPointsMiner.classes.WebSocketsPool import WebSocketsPool File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/WebSocketsPool.py", line 13, in from TwitchChannelPointsMiner.classes.TwitchWebSocket import TwitchWebSocket File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/TwitchWebSocket.py", line 5, in from websocket import WebSocketApp, WebSocketConnectionClosedException ImportError: cannot import name 'WebSocketApp' from 'websocket' (/opt/virtualenvs/python3/lib/python3.8/site-packages/websocket/init.py)

How do you solve this?

Boryyy commented 2 years ago

Traceback (most recent call last): File "run.py", line 6, in from TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/init.py", line 3, in from .TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 24, in from TwitchChannelPointsMiner.classes.WebSocketsPool import WebSocketsPool File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/WebSocketsPool.py", line 13, in from TwitchChannelPointsMiner.classes.TwitchWebSocket import TwitchWebSocket File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/TwitchWebSocket.py", line 5, in from websocket import WebSocketApp, WebSocketConnectionClosedException ImportError: cannot import name 'WebSocketApp' from 'websocket' (/opt/virtualenvs/python3/lib/python3.8/site-packages/websocket/init.py)

How do you solve this?

pip3 uninstall websocket pip3 uninstall websocket-client pip3 install websocket-client

Charlyma24 commented 2 years ago

Traceback (most recent call last): File "run.py", line 6, in from TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/init.py", line 3, in from .TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 24, in from TwitchChannelPointsMiner.classes.WebSocketsPool import WebSocketsPool File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/WebSocketsPool.py", line 13, in from TwitchChannelPointsMiner.classes.TwitchWebSocket import TwitchWebSocket File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/TwitchWebSocket.py", line 5, in from websocket import WebSocketApp, WebSocketConnectionClosedException ImportError: cannot import name 'WebSocketApp' from 'websocket' (/opt/virtualenvs/python3/lib/python3.8/site-packages/websocket/init.py)

How do you solve this?

pip3 uninstall websocket pip3 uninstall websocket-client pip3 install websocket-client

You are doing this form Git bash? CMD? Power Shell?

Boryyy commented 2 years ago

Traceback (most recent call last): File "run.py", line 6, in from TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/init.py", line 3, in from .TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 24, in from TwitchChannelPointsMiner.classes.WebSocketsPool import WebSocketsPool File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/WebSocketsPool.py", line 13, in from TwitchChannelPointsMiner.classes.TwitchWebSocket import TwitchWebSocket File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/TwitchWebSocket.py", line 5, in from websocket import WebSocketApp, WebSocketConnectionClosedException ImportError: cannot import name 'WebSocketApp' from 'websocket' (/opt/virtualenvs/python3/lib/python3.8/site-packages/websocket/init.py)

How do you solve this?

pip3 uninstall websocket pip3 uninstall websocket-client pip3 install websocket-client

You are doing this form Git bash? CMD? Power Shell?

what os are you using?

Charlyma24 commented 2 years ago

Traceback (most recent call last): File "run.py", line 6, in from TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/init.py", line 3, in from .TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 24, in from TwitchChannelPointsMiner.classes.WebSocketsPool import WebSocketsPool File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/WebSocketsPool.py", line 13, in from TwitchChannelPointsMiner.classes.TwitchWebSocket import TwitchWebSocket File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/TwitchWebSocket.py", line 5, in from websocket import WebSocketApp, WebSocketConnectionClosedException ImportError: cannot import name 'WebSocketApp' from 'websocket' (/opt/virtualenvs/python3/lib/python3.8/site-packages/websocket/init.py)

How do you solve this?

pip3 uninstall websocket pip3 uninstall websocket-client pip3 install websocket-client

You are doing this form Git bash? CMD? Power Shell?

what os are you using?

Windows 10

Boryyy commented 2 years ago

Traceback (most recent call last): File "run.py", line 6, in from TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/init.py", line 3, in from .TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 24, in from TwitchChannelPointsMiner.classes.WebSocketsPool import WebSocketsPool File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/WebSocketsPool.py", line 13, in from TwitchChannelPointsMiner.classes.TwitchWebSocket import TwitchWebSocket File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/TwitchWebSocket.py", line 5, in from websocket import WebSocketApp, WebSocketConnectionClosedException ImportError: cannot import name 'WebSocketApp' from 'websocket' (/opt/virtualenvs/python3/lib/python3.8/site-packages/websocket/init.py)

How do you solve this?

pip3 uninstall websocket pip3 uninstall websocket-client pip3 install websocket-client

You are doing this form Git bash? CMD? Power Shell?

what os are you using?

Windows 10

if you use "py" do

py -m pip uninstall websocket 
py -m pip uninstall websocket-client
py -m pip install websocket-client

any other os use the reply i quoted above

Charlyma24 commented 2 years ago

Traceback (most recent call last): File "run.py", line 6, in from TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/init.py", line 3, in from .TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 24, in from TwitchChannelPointsMiner.classes.WebSocketsPool import WebSocketsPool File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/WebSocketsPool.py", line 13, in from TwitchChannelPointsMiner.classes.TwitchWebSocket import TwitchWebSocket File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/TwitchWebSocket.py", line 5, in from websocket import WebSocketApp, WebSocketConnectionClosedException ImportError: cannot import name 'WebSocketApp' from 'websocket' (/opt/virtualenvs/python3/lib/python3.8/site-packages/websocket/init.py)

How do you solve this?

pip3 uninstall websocket pip3 uninstall websocket-client pip3 install websocket-client

You are doing this form Git bash? CMD? Power Shell?

what os are you using?

Windows 10

if you use "py" do

py -m pip uninstall websocket 
py -m pip uninstall websocket-client
py -m pip install websocket-client

any other os use the reply i quoted above

IDK what I'm doing wrong....

imagen

Boryyy commented 2 years ago

always when u see " No module named 'requests' it means u dont have that so do this

py -m pip install -r requirements.txt

couse you didnt do this i guess , if you still have issues do:

py -m pip install requests

Charlyma24 commented 2 years ago

always when u see " No module named 'requests' it means u dont have that so do this

py -m pip install -r requirements.txt

couse you didnt do this i guess , if you still have issues do:

py -m pip install requests

Thanks for thee reply... when I run: py -m pip install -r requirements.txt this error outcome.

imagen

For py -m pip install requests this is the outcome

imagen

Boryyy commented 2 years ago

Traceback (most recent call last): File "run.py", line 6, in from TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/init.py", line 3, in from .TwitchChannelPointsMiner import TwitchChannelPointsMiner File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 24, in from TwitchChannelPointsMiner.classes.WebSocketsPool import WebSocketsPool File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/WebSocketsPool.py", line 13, in from TwitchChannelPointsMiner.classes.TwitchWebSocket import TwitchWebSocket File "/home/runner/bot/Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/TwitchWebSocket.py", line 5, in from websocket import WebSocketApp, WebSocketConnectionClosedException ImportError: cannot import name 'WebSocketApp' from 'websocket' (/opt/virtualenvs/python3/lib/python3.8/site-packages/websocket/init.py)

How do you solve this?

pip3 uninstall websocket pip3 uninstall websocket-client pip3 install websocket-client

You are doing this form Git bash? CMD? Power Shell?

what os are you using?

Windows 10

if you use "py" do

py -m pip uninstall websocket 
py -m pip uninstall websocket-client
py -m pip install websocket-client

any other os use the reply i quoted above

IDK what I'm doing wrong....

imagen

also try changing py -m pip with jusy pip3 or pip

Boryyy commented 2 years ago

always when u see " No module named 'requests' it means u dont have that so do this py -m pip install -r requirements.txt couse you didnt do this i guess , if you still have issues do: py -m pip install requests

Thanks for thee reply... when I run: py -m pip install -r requirements.txt this error outcome.

imagen

For py -m pip install requests this is the outcome

imagen

can you try using terminal or powershell?

Charlyma24 commented 2 years ago

always when u see " No module named 'requests' it means u dont have that so do this py -m pip install -r requirements.txt couse you didnt do this i guess , if you still have issues do: py -m pip install requests

Thanks for thee reply... when I run: py -m pip install -r requirements.txt this error outcome. imagen For py -m pip install requests this is the outcome imagen

can you try using terminal or powershell?

Ok let me try...

Charlyma24 commented 2 years ago

always when u see " No module named 'requests' it means u dont have that so do this py -m pip install -r requirements.txt couse you didnt do this i guess , if you still have issues do: py -m pip install requests

Thanks for thee reply... when I run: py -m pip install -r requirements.txt this error outcome. imagen For py -m pip install requests this is the outcome imagen

can you try using terminal or powershell?

imagen

Boryyy commented 2 years ago

pip install wheel

Charlyma24 commented 2 years ago

pip install wheel

imagen