Bitwise-01 / YouTubeViews-

YouTube view bot
486 stars 259 forks source link

Getting Error "cannot import getoutput as shell" #36

Closed FireHead90544 closed 3 years ago

FireHead90544 commented 4 years ago

When i am trying to run the script i am getting the error cannot import getoutput as shell

florisvannoyen commented 4 years ago

same error here, try using an older version of python maybe 2.5 or 2.6

arisros commented 4 years ago

you have to choose with python 2 or 3

in core/tor.py

import socks
import socket

from os import system as shell
import sys
# replace with this at line 4
if sys.version_info.major == 2:
    from commands import getoutput
else:
    from subprocess import getoutput
# end paste
from time import sleep

.....
nishitsingh13 commented 4 years ago

This is not working

aleff-github commented 3 years ago

start with python3

FireHead90544 commented 3 years ago

Thank you, sorry for late reply but haven't tried coz i don't need it now. still others who are facing these shall try above fixes. Hope it works. You may re-create this issue if still it shows the same.