Ikabot-Collective / ikabot

A Python-based bot designed for automating tasks in the game Ikariam
https://discord.com/invite/3hyxPRj
MIT License
100 stars 67 forks source link

how install #2

Closed floricelpur closed 6 years ago

floricelpur commented 6 years ago

Please do an installation tutorial. I'm not able to install Python. thx mate!

physics-sec commented 6 years ago

Hi! what is your operating system? what does python -V returns?

floricelpur commented 6 years ago

I created a virtual machine with VirtualBox that I installed Ubuntu.

physics-sec commented 6 years ago

are you shure is not already installed? how about python3 --version? if not, try sudo apt-get update sudo apt-get install python3

floricelpur commented 6 years ago

python3 --version 3.6.5

physics-sec commented 6 years ago

Great! means that is already installed! to install the rest of dependencies: sudo apt-get install git python3 -m pip install requests

now you should be able to install ikabot with: sudo git clone https://github.com/santipcn/ikabot.git /opt/ikabot sudo sh -c "echo 'python3 /opt/ikabot' > /bin/ikabot" && sudo chmod +x /bin/ikabot

let me know if you have any trouble

floricelpur commented 6 years ago

python3 -m pip install requests No module name pip

floricelpur commented 6 years ago

http://prntscr.com/k0e628

physics-sec commented 6 years ago

cool, you just need to install pip, download this file: https://bootstrap.pypa.io/get-pip.py and then run python3 get-pip.py (first go where the file was downloaded) after that, try sudo pip3 install requests if that works, you should be able tu run ikabot and get the main menu.

floricelpur commented 6 years ago

http://prntscr.com/k0f1bl

physics-sec commented 6 years ago

i see, i will have to make a small change in the tutorial. Do this and it should work:

sudo rm -rf /opt/ikabot
sudo rm /bin/ikabot
sudo git clone https://github.com/santipcn/ikabot.git ~
sudo sh -c "echo 'python3 ~/ikabot' > /bin/ikabot" && sudo chmod +x /bin/ikabot

Let me know if it works.

floricelpur commented 6 years ago

http://prntscr.com/k0fafb

you have telegram?

physics-sec commented 6 years ago

that means you dont need to run sudo git clone https://github.com/santipcn/ikabot.git ~ just run sudo sh -c "echo 'python3 ~/ikabot' > /bin/ikabot" && sudo chmod +x /bin/ikabot and it should work. If it doesnt, run sudo rm -rf /home/ikariam and then sudo git clone https://github.com/santipcn/ikabot.git ~ i do have telegram, but i just use it for ikabot

floricelpur commented 6 years ago

dont work :( http://prntscr.com/k0fucg

physics-sec commented 6 years ago

Sorry for all the trouble, i am working to make more easy the instalation process, run this in order:

cd ~
rm -rf ikabot/
git clone https://github.com/santipcn/ikabot.git
sudo rm -rf /opt/ikabot
sudo sh -c "echo 'python3 /home/ikariam/ikabot' > /bin/ikabot"

and then try ikabot

floricelpur commented 6 years ago

dont work http://prntscr.com/k0g70f

physics-sec commented 6 years ago

how about if you grant execution permisions? sudo chmod +x /bin/ikabot then try ikabot

floricelpur commented 6 years ago

Thx! Work ;) Great job!

physics-sec commented 6 years ago

Great! I hope you enjoy it.