Here is a small guide to install the dependencies for stevy's leveler cog.
Simply follow this easy steps and install the packages with the usage of the Terminal.
To install this packages simply copy and paste them into the terminal!
THIS IS FOR LINUX ONLY!!!!
IF YOU USE A LINUX WITH ANOTHER PACKAGE MANAGER THEN YOU HAVE TO REPLACE THE "apt-get install" WITH THE CORRESPONDING COMMANDS OF YOUR SYSTEM!
Step 1: Installation of the dependencies for the python packages which will be needed for Step 2.
Step 2: Installing and compiling the python packages for the leveler cog.
Step 3: Installation of MongoDB and running it.
Step 4: Copying all compiled python packages to the bot's folder.
Step 5: Running the cog.
-->> splitting the package installation into parts since most problems occur here
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python3-dev python3-setuptools
sudo apt-get install liblcms2-2 liblcms2-dev libblas-dev
sudo apt-get install liblapack-dev libatlas-base-dev gfortran zlib1g-dev
sudo apt-get install libjpeg8-dev
sudo apt-get install libjpeg8
sudo apt-get install libjpeg-dev
sudo apt-get install libwebp5 libwebp-dev
sudo apt-get install tcl8.5-dev tk8.5-dev
sudo apt-get install libfreetype6-dev libfreetype6
sudo apt-get install libtiff5
sudo apt-get install libtiff5-dev
sudo pip3 install numpy --no-cache-dir
sudo pip3 install pandas --no-cache-dir
sudo pip3 install pymongo --no-cache-dir
sudo pip3 install scipy --no-cache-dir
-->> installation of this package may take some time depending on the machine you're using.
sudo pip3 install pillow --no-cache-dir
-->> if you have this package already installed, you will want to remove it!
---->> sudo pip3 uninstall pillow
---->> and then install it again! This way it will compile everything from 0 and include all newly installed packages.
sudo apt-get install mongodb mongodb-server mongodb-clients
sudo service mongodb start
sudo service mongodb status
---->> At this point your terminal should show you "Active: active (running)" in green color.
Navigate to the Python's folder -> /usr/local/lib/python3.xx/site-packages
---> python3.xx needs to be replaced with the actual version number that you are using!
To make it easier, simply copy all files and folders in "site-packages" and paste them into your
bot's lib folder.
Now after you finished all steps, start your bot and use the command [p]load leveler
Continue to run [p]rank and [p]profile if the leveler loaded successfully.
If at this point your bot didn't post any error and provided you the profile and rank pictures then
you're done and good to go!
If some errors still occur please contact me in the bot server. ~ dimxxz
Installation of python packages for Stevy's leveler cog /Discord
Copyright © 2016-2017 dimxxz