Twitch-Channel-Points-Miner-v2 icon indicating copy to clipboard operation
Twitch-Channel-Points-Miner-v2 copied to clipboard

/usr/local/bin/python: can't find '__main__' module in '/usr/src/app/run.py'

Open skapytek opened this issue 3 years ago • 6 comments

Ubuntu 20.04 LTS x64 (everything up2date)

installed it with: docker run
-v $(pwd)/analytics:/usr/src/app/analytics
-v $(pwd)/cookies:/usr/src/app/cookies
-v $(pwd)/logs:/usr/src/app/logs
-v $(pwd)/run.py:/usr/src/app/run.py:ro
-p 5018:5018
tkdalex/twitch-channel-points-miner-v2

When im trying to start the container it stops and i see this error in the logs: /usr/local/bin/python: can't find 'main' module in '/usr/src/app/run.py'

skapytek avatar Jan 03 '22 02:01 skapytek

Make sure to have the $(pwd)/run.py file

Tkd-Alex avatar Jan 03 '22 10:01 Tkd-Alex

Im a little bit confused. How to do this?

Thanks

skapytek avatar Jan 03 '22 15:01 skapytek

https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2#how-to-use

Tkd-Alex avatar Jan 03 '22 15:01 Tkd-Alex

https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2#how-to-use

Thanks! Shouldnt this be in the docker container?

skapytek avatar Jan 03 '22 16:01 skapytek

mh nope, the file should be on your machine, and It will be linked by docker volumes

Tkd-Alex avatar Jan 06 '22 18:01 Tkd-Alex

I have the same issue. When I run the container in interactive mode it works without issue but when I try to launch it through Portainer I get the following: image

SkilledAlpaca avatar Sep 08 '22 22:09 SkilledAlpaca