Open bionichuman opened 6 years ago
What operating system are you using?
Windows 7 I got Python installed but when I type the commands in it doesn't work?
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:
I did that and now it says pip3 is not recognized as an internal or external command...
Update- Fixed this issue.
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 If I can get it to work I will provide you directions.
@johnnyo1012 try just using pip instead of pip3
@johnnyo1012 Alright.Thanks
@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":
Step3: Do the above steps that i told @johnnyo1012 to do.
Now I can go with the both of you 😃
I got pip3 install -r requirements.txt to work.
Now python3 answer_bot.py does not work. Py does also not work...
@johnnyo1012 Have you installed Tesseract and Opencv?
No but when I do brew install tesseract, it says brew is not recognized.
I've installed python and changed the directory in command.Now what should I do?
Run this- pip3 install -r requirements.txt
I got this
@srivee11 Type in what the yellow text says and upgrade the pip version
I got the same error. Do what the yellow text says and to fix the git I installed this and it fixed it.
I got tesseract working but the "brew" command still doesn't work. How do I fix that?
@johnnyo1012 Give me a sec i'm writing a process i had to go through to get it working.
@Kablamoo123 You got it working? The entire thing?
@johnnyo1012 yeah i got this part working but not the whole bot, i'm still waiting for help from someone else.
@Kablamoo123 Great, maybe once you send me the directions to get mine working maybe we can figure out the next issue.
@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: And when that opens double click on Path where the red ring is: 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: Then after run the program again and see if it works.
@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.
@johnnyo1012 @Kablamoo123 Guys. I installed the new pip version. Now what?
@srivee11 now you need to do the steps that i just explained to @johnnyo1012
@srivee11
Download this- https://git-scm.com/download/win
@johnnyo1012 Done
@srivee11 Run this command-
pip3 install -r requirements.txt
@Kablamoo123 What doesn't work for yours?
@johnnyo1012 im far ahead, my problem is an ssl error:
@Kablamoo123 Maybe I will be able to replicate the error...
How do I install tesseract from your link?
@johnnyo1012 There should be an executable file.
@Kablamoo123 I downloaded the files and opened the folder and I see shells scripts but no .exe file
@johnnyo1012 I've installed git from the link but I'm getting this error
@srivee11 Restart cmd and run as administrator. You also might need to add it to your path but mine did automatically during install.
@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
@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...
@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.
@johnnyo1012 Ok you have to type in "pip3 install tesseract" or "pip install tesseract" cant remember which one.
@johnnyo1012 ah that bot, i tried that one but for some reason i couldn't wrap my head around it.
@Kablamoo123 pip3 install tesseract worked.
@Kablamoo123 So now tesseract is install so now I need opencv right?
@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
@johnnyo1012 For opencv you type "pip3 install opencv-python" to install it
@Kablamoo123 That worked now what is next in getting this bot to work?
@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....
@johnnyo1012 What operating system do you have on your phone?
@johnnyo1012 Yeah you do need to add it to Path. Can you take a screenshot and show me what you added to Path?
I installed Python but how do I use the other commands in the read me?