sushant10 / HQ_Bot

📲 Bot to help solve HQ trivia
MIT License
173 stars 92 forks source link

How Do I install and use this? #68

Open bionichuman opened 6 years ago

bionichuman commented 6 years ago

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

Kablamoo123 commented 6 years ago

What operating system are you using?

bionichuman commented 6 years ago

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

Kablamoo123 commented 6 years ago

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

bionichuman commented 6 years ago

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

Update- Fixed this issue.

srivee11 commented 6 years ago

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

bionichuman commented 6 years ago

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

Kablamoo123 commented 6 years ago

@johnnyo1012 try just using pip instead of pip3

srivee11 commented 6 years ago

@johnnyo1012 Alright.Thanks

Kablamoo123 commented 6 years ago

@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 😃

bionichuman commented 6 years ago

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

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

Kablamoo123 commented 6 years ago

@johnnyo1012 Have you installed Tesseract and Opencv?

bionichuman commented 6 years ago

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

bionichuman commented 6 years ago

issue

srivee11 commented 6 years ago

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

bionichuman commented 6 years ago

Run this- pip3 install -r requirements.txt

srivee11 commented 6 years ago

I got this

cap1

Kablamoo123 commented 6 years ago

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

bionichuman commented 6 years ago

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 commented 6 years ago

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

Kablamoo123 commented 6 years ago

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

bionichuman commented 6 years ago

@Kablamoo123 You got it working? The entire thing?

Kablamoo123 commented 6 years ago

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

bionichuman commented 6 years ago

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

Kablamoo123 commented 6 years ago

@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.

bionichuman commented 6 years ago

@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.

srivee11 commented 6 years ago

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

Kablamoo123 commented 6 years ago

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

bionichuman commented 6 years ago

@srivee11

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

srivee11 commented 6 years ago

@johnnyo1012 Done

bionichuman commented 6 years ago

@srivee11 Run this command-

pip3 install -r requirements.txt

bionichuman commented 6 years ago

@Kablamoo123 What doesn't work for yours?

Kablamoo123 commented 6 years ago

@johnnyo1012 im far ahead, my problem is an ssl error: ssl

bionichuman commented 6 years ago

@Kablamoo123 Maybe I will be able to replicate the error...

How do I install tesseract from your link?

Kablamoo123 commented 6 years ago

@johnnyo1012 There should be an executable file.

bionichuman commented 6 years ago

@Kablamoo123 I downloaded the files and opened the folder and I see shells scripts but no .exe file

srivee11 commented 6 years ago

@johnnyo1012 I've installed git from the link but I'm getting this error cap2

bionichuman commented 6 years ago

@srivee11 Restart cmd and run as administrator. You also might need to add it to your path but mine did automatically during install.

Kablamoo123 commented 6 years ago

@johnnyo1012 Ah i see what i did wrong, you actually weren't meant to install that. I installed an .exe but i'm not sure where from though

bionichuman commented 6 years ago

@Kablamoo123 I have installed an .exe from this link- https://github.com/UB-Mannheim/tesseract/wiki

It works for another bot and it is in my path but brew doesn't work...

bionichuman commented 6 years ago

@Kablamoo123 I tried this bot- https://github.com/maxenxe/HQ-Trivia-Bot

It works but it doesn't read correctly. I don't know a program to set the coordinates.

Kablamoo123 commented 6 years ago

@johnnyo1012 Ok you have to type in "pip3 install tesseract" or "pip install tesseract" cant remember which one.

Kablamoo123 commented 6 years ago

@johnnyo1012 ah that bot, i tried that one but for some reason i couldn't wrap my head around it.

bionichuman commented 6 years ago

@Kablamoo123 pip3 install tesseract worked.

bionichuman commented 6 years ago

@Kablamoo123 So now tesseract is install so now I need opencv right?

bionichuman commented 6 years ago

@Kablamoo123
If I do pip3 or pip install opencv it says Could not find a version that satisfies the requirement opencv

No matching distribution found for opencv

Kablamoo123 commented 6 years ago

@johnnyo1012 For opencv you type "pip3 install opencv-python" to install it

bionichuman commented 6 years ago

@Kablamoo123 That worked now what is next in getting this bot to work?

bionichuman commented 6 years ago

@Kablamoo123 When I try to run python3 answer_bot.py it says Python3 is not an internal or external command. Do I need to add Python to my Path? I already did so don't know why it doesn't work....

Kablamoo123 commented 6 years ago

@johnnyo1012 What operating system do you have on your phone?

Kablamoo123 commented 6 years ago

@johnnyo1012 Yeah you do need to add it to Path. Can you take a screenshot and show me what you added to Path?