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.12k stars 334 forks source link

Cannot download assets on start #299

Closed Satont closed 1 year ago

Satont commented 1 year ago

Describe the bug

When trying to start lastest docker image i got error about cannot download banner

Steps to reproduce

My run.py:

from TwitchChannelPointsMiner import TwitchChannelPointsMiner
from TwitchChannelPointsMiner.classes.Settings import FollowersOrder
twitch_miner = TwitchChannelPointsMiner(
    username="satont",
    enable_analytics=True,
)
twitch_miner.analytics(host="0.0.0.0", port=5000, refresh=5, days_ago=7)
twitch_miner.mine(followers=True, followers_order=FollowersOrder.ASC)

Expected behavior

Should start

Operating system

Linux

Python version

Docker

Miner version

1.8.3 (docker)

Other relevant software versions

No response

Logs

https://gist.github.com/Satont/1197da829ec8ffb7d232594f1a9b8184

Additional context

No response

NoxRare commented 1 year ago

This sounds like a DNS and/or network issue, have you tried manually downloading the assets folder? To do this you can mount the asset folder to whatever folder your "run.py" is located. If you are using docker compose add/modify your volumes to the following:

volumes:
      - /path/to/assets/folder/:/usr/src/app/assets
      - /path/to/run.py:/usr/src/app/run.py:ro

once mounted all you need to do is manually add the files from: https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/tree/master/assets into the assets folder you mounted.

If you need any help you can contact me on discord: ._rare

Satont commented 1 year ago

Urghm, you are right, germany routing moment. Problem fixes itself.