HQ_Bot icon indicating copy to clipboard operation
HQ_Bot copied to clipboard

How Do I install and use this?

Open ghost opened this issue 8 years ago • 187 comments

I installed Python but how do I use the other commands in the read me?

ghost avatar Apr 05 '18 22:04 ghost

What operating system are you using?

Kablamoo123 avatar Apr 06 '18 08:04 Kablamoo123

Windows 7 I got Python installed but when I type the commands in it doesn't work?

bionichuman avatar Apr 06 '18 11:04 bionichuman

You have to use the command prompt not Python. You can open cmd and then change the directory by typing the command: cd (Then the file location of the folder). It looks like this: cmd

Kablamoo123 avatar Apr 06 '18 13:04 Kablamoo123

I did that and now it says pip3 is not recognized as an internal or external command...

Update- Fixed this issue.

bionichuman avatar Apr 06 '18 13:04 bionichuman

Hey could you explain step by step in detail how to install and run the whole thing? I don't have any knowledge regarding python and packages

srivee11 avatar Apr 06 '18 13:04 srivee11

@Srivee11 If I can get it to work I will provide you directions.

bionichuman avatar Apr 06 '18 13:04 bionichuman

@johnnyo1012 try just using pip instead of pip3

Kablamoo123 avatar Apr 06 '18 13:04 Kablamoo123

@johnnyo1012 Alright.Thanks

srivee11 avatar Apr 06 '18 13:04 srivee11

@srivee11 Just to say, for me the bot isn't fully working and don't use this with a live game as it is against the HQ-Trivia policy. Step1: Go to the Python website and download Python 3.6.5 : https://www.python.org/downloads/

Step2: Install the code by clicking "Clone or download" and click "Download ZIP": clone

Step3: Do the above steps that i told @johnnyo1012 to do.

Now I can go with the both of you 😃

Kablamoo123 avatar Apr 06 '18 13:04 Kablamoo123

I got pip3 install -r requirements.txt to work.

Now python3 answer_bot.py does not work. Py does also not work...

bionichuman avatar Apr 06 '18 13:04 bionichuman

@johnnyo1012 Have you installed Tesseract and Opencv?

Kablamoo123 avatar Apr 06 '18 13:04 Kablamoo123

No but when I do brew install tesseract, it says brew is not recognized.

bionichuman avatar Apr 06 '18 13:04 bionichuman

issue

bionichuman avatar Apr 06 '18 13:04 bionichuman

I've installed python and changed the directory in command.Now what should I do?

srivee11 avatar Apr 06 '18 14:04 srivee11

Run this- pip3 install -r requirements.txt

bionichuman avatar Apr 06 '18 14:04 bionichuman

I got this

cap1

srivee11 avatar Apr 06 '18 14:04 srivee11

@srivee11 Type in what the yellow text says and upgrade the pip version

Kablamoo123 avatar Apr 06 '18 14:04 Kablamoo123

I got the same error. Do what the yellow text says and to fix the git I installed this and it fixed it.

https://git-scm.com/download/win

bionichuman avatar Apr 06 '18 14:04 bionichuman

I got tesseract working but the "brew" command still doesn't work. How do I fix that?

bionichuman avatar Apr 06 '18 14:04 bionichuman

@johnnyo1012 Give me a sec i'm writing a process i had to go through to get it working.

Kablamoo123 avatar Apr 06 '18 14:04 Kablamoo123

@Kablamoo123 You got it working? The entire thing?

bionichuman avatar Apr 06 '18 14:04 bionichuman

@johnnyo1012 yeah i got this part working but not the whole bot, i'm still waiting for help from someone else.

Kablamoo123 avatar Apr 06 '18 14:04 Kablamoo123

@Kablamoo123 Great, maybe once you send me the directions to get mine working maybe we can figure out the next issue.

bionichuman avatar Apr 06 '18 14:04 bionichuman

@johnnyo1012 Ok. You are going to have to install Tesseract: https://github.com/tesseract-ocr/tesseract Then after that you need to press the windows key and type "environment" and the first one should say "Edit the system environment variables". When you get there click here: environment And when that opens double click on Path where the red ring is: variables This new window opens and you have to find the file directory of Tesseract and Python. Mine were saved in AppData/Local/ but you have to find wherever you saved them: edit variables Then after run the program again and see if it works.

Kablamoo123 avatar Apr 06 '18 14:04 Kablamoo123

@Kablamoo123 I download tesseract from the link for the .exe file from this link-

https://github.com/UB-Mannheim/tesseract/wiki

I added it to my path and it works I think for another bot I tried.

bionichuman avatar Apr 06 '18 14:04 bionichuman

@johnnyo1012 @Kablamoo123 Guys. I installed the new pip version. Now what?

srivee11 avatar Apr 06 '18 14:04 srivee11

@srivee11 now you need to do the steps that i just explained to @johnnyo1012

Kablamoo123 avatar Apr 06 '18 14:04 Kablamoo123

@srivee11

Download this- https://git-scm.com/download/win

bionichuman avatar Apr 06 '18 14:04 bionichuman

@johnnyo1012 Done

srivee11 avatar Apr 06 '18 14:04 srivee11

@srivee11 Run this command-

pip3 install -r requirements.txt

bionichuman avatar Apr 06 '18 14:04 bionichuman