complexpotato / Faitagram

(Doesn't work anymore)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OS_bit is not defined

DigiPlush opened this issue · comments

commented

Hi,
When I run: python setup.py, after few seconds of installation, I have the following error:

Traceback (most recent call last): File "setup.py", line 37, in <module> os.system("wget https://github.com/mozilla/geckodriver/releases/download/v0.{}.{}/geckodriver-v0.{}.{}-linux{}.tar.gz".format(first,second,first,second,OS_bit)) NameError: name 'OS_bit' is not defined

If someone could help me solve it I would be really thankfull

You can simply replace the line with the appropiate arch source, as I did:

os.system("wget https://github.com/mozilla/geckodriver/releases/download/v0.21.0/geckodriver-v0.21.0-arm7hf.tar.gz")
os.system("tar -xvzf geckodriver-v0.21.0-arm7hf.tar.gz")
os.system("rm geckodriver-v0.21.0-arm7hf.tar.gz")

There are already recent versions, I had to use v0.21 for armhf

commented
Traceback (most recent call last):
File "setup.py", line 40, in <module>
os.system("tar -xvzf geckodriver-v0.{}.{}-linux{}.tar.gz".format(first,second,OS_bit))
NameError: name 'OS_bit' is not defined

I Am Facing This Error Can Anyone Help Me Out !!

@Dev902 as above

$https://www.tecmint.com/find-out-linux-system-is-32-bit-or-64-bit/
OS_bit=$(dpkg --print-architecture)
echo $OS_bit

put that in the top of your script
lol, he commented it out
OS_bit = (round(math.log(sys.maxint,2)+1))

remove python setup.py last line of faitagram coding