.net
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.
1.
-->> 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 liblcms2-2 liblcms2-dev libblas-dev liblapack-dev libatlas-base-dev gfortran zlib1g-dev libfreetype6-dev libfreetype6 libtiff5 libtiff5-dev tcl8.5-dev tk8.5-dev
-->> For Ubuntu 16.04 / 16.10 / Debian 8:
sudo apt-get install libjpeg8-dev libjpeg8 libjpeg-dev libwebp5 libwebp-dev
-->> For Ubuntu 17.04 / Debian 9:
sudo apt-get install libjpeg9-dev libjpeg9 libjpeg-dev libwebp6 libwebp-dev
2.
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.
3.
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.
4.
Navigate to the Python's folder -> /usr/local/lib/python3.xx/site-packages
---> if you installed python3 by apt-get install then the folder will be /usr/local/lib/python3.xx/dist-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.
5.
Please install the leveler cog with this command:
[p]cog repo add stevy https://github.com/AznStevy/Maybe-Useful-Cogs/
[p]cog install stevy leveler
-->> replace [p] with your bot's prefix
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 © 2017 - 2018 dimxxz