rdavydov / 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.11k stars 326 forks source link

replit does not work #402

Closed spix18 closed 8 months ago

spix18 commented 8 months ago

Describe the bug

replit does not seems to be working when twitch_miner.analytics is on , its throws an error thats one file does not exist

Steps to reproduce

  1. fork repo on replit
  2. fill in your username and password
  3. configure the twitch_miner.analytics like described in github description.
  4. run
  5. error

Expected behavior

the expected behavior should the same as the version 1.8.6 of this script

Operating system

windows 11

Python version

3.11.1

Miner version

1.9.0

Other relevant software versions

No response

Logs

07/11/23 16:24:18 - INFO - [init]: Twitch Channel Points Miner v2-1.9.0 (fork by rdavydov) 07/11/23 16:24:18 - INFO - [init]: https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2 Traceback (most recent call last): File "run.py", line 82, in twitch_miner.analytics(host="0.0.0.0", port=5000, refresh=5, days_ago=7) # Start the Analytics web-server File "/home/runner/Twitch-Channel-Points-Miner-v2190/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 191, in analytics from TwitchChannelPointsMiner.classes.AnalyticsServer import AnalyticsServer File "/home/runner/Twitch-Channel-Points-Miner-v2190/TwitchChannelPointsMiner/classes/AnalyticsServer.py", line 8, in import pandas as pd File "/home/runner/Twitch-Channel-Points-Miner-v2190/venv/lib/python3.8/site-packages/pandas/init.py", line 48, in from pandas.core.api import ( File "/home/runner/Twitch-Channel-Points-Miner-v2190/venv/lib/python3.8/site-packages/pandas/core/api.py", line 47, in from pandas.core.groupby import ( File "/home/runner/Twitch-Channel-Points-Miner-v2190/venv/lib/python3.8/site-packages/pandas/core/groupby/init.py", line 1, in from pandas.core.groupby.generic import ( File "/home/runner/Twitch-Channel-Points-Miner-v2190/venv/lib/python3.8/site-packages/pandas/core/groupby/generic.py", line 77, in from pandas.core.frame import DataFrame File "/home/runner/Twitch-Channel-Points-Miner-v2190/venv/lib/python3.8/site-packages/pandas/core/frame.py", line 182, in from pandas.core.generic import NDFrame File "/home/runner/Twitch-Channel-Points-Miner-v2190/venv/lib/python3.8/site-packages/pandas/core/generic.py", line 179, in from pandas.core.window import ( File "/home/runner/Twitch-Channel-Points-Miner-v2190/venv/lib/python3.8/site-packages/pandas/core/window/init.py", line 1, in from pandas.core.window.ewm import ( File "/home/runner/Twitch-Channel-Points-Miner-v2190/venv/lib/python3.8/site-packages/pandas/core/window/ewm.py", line 11, in import pandas._libs.window.aggregations as window_aggregations ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory

Additional context

No response

spix18 commented 8 months ago

nevermind , i fix it by replacing replit.nix code with this : { pkgs }: { deps = [ pkgs.unzip pkgs.python38Packages.setuptools pkgs.python38Packages.pip pkgs.python38Packages.virtualenv pkgs.python38Full ]; env = { LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ]; PYTHONBIN = "${pkgs.python38}/bin/python3.8"; LANG = "en_US.UTF-8"; }; } image

rdavydov commented 8 months ago

Yep, I was cleaning my repl and forgot about it. Thanks for the heads up and for the solution!