Sunrise is a schedule and to-do list program, created using Python3 and PyQt5. We believe that the successful day starts at the Sunrise. For that reason we have choosed to name the program Sunrise.
At the moment we don't have binaries versions neither for GNU/Linux nor Windows. So no desktop icon shortcuts, all of these steps you have to do it alone.
Before we start installing the application we must install git
and wget
$ # Arch users
$ sudo pacman -Sy --needed git wget
sh -c "$(wget https://raw.githubusercontent.com/HOuadhour/sunrise/master/INSTALL.sh -O -)"
To get this program up and running. We have to install some programs and libraries,
Python3
PyQt5
PyQtChart5
SIP
Qt5-Charts
This program uses the version 3.6.2 of Python. It is recommended to download the same version or higher, but you can work with other versions but it must be the version 3.x not the version 2.x.
- We open Python Website and download the corresponding version 32bit or 64bit.
- After the download process complete, we open the file and Install
Python
. - After the installation process complete, open your
cmd
and typepython --version
. - If you get an answer similar to this, we are good to move to the next step.
PyQt has two version in this program we need to install PyQt5
.
by opening the cmd
as an administrator and type this command.
pip install PyQt5
After the download and installation process complete, we move to the next step.
We open the cmd
as an administrator and type this command.
pip install PyQtChart
After we finnish all these steps we are ready to run the program but before that, let's check our installation.
Open cmd
and type python
.
Then you will get a screen like this, type the following code.
>>> from PyQt5 import QtChart
>>>
If you get an error, make sure you did all the steps correctly.
Most of Linux distrubutions comes with two versions of python
already installed for you.
The default version of python
for Arch Linux unlike other distributions is the version 3.
So if we type:
$ python3 --version
$ python --version
It will give the same result, to get the version of python2
in Arch Linux You have to type:
python2 --version
The default version of python
for Ubuntu and others is the version 2.
So if we type:
$ python3 --version
$ python --version
We will get a different result.
To Install PyQt5
and PyQtChart
on Linux system we have two methods.
I recommend Using the first method
We will install the packages using our package manager in our distro.
We will take Arch as an example, you can use your own distro and your own package manager.
But let's first uninstall the packages with pip
.
Run command twice if it's necessary to check if the package is uninstalled
$ sudo pip uninstall PyQt5
$ sudo pip uninstall PyQtChart
$ sudo pip uninstall sip
$ sudo pip uninstall PyQt5-sip
Run this command again if you get an error.
$ sudo pacman -Sy python-pyqt5 sip python-sip python-sip-pyqt5 qt5-charts
After this we will have to download the PyQtChart
source code from the Official Website
After that we will compile our package.
Navigate to where you download the file, let's say the downloads folder.
$ cd $HOME/Downloads
Check for file existance by typing ls -l
.
Now let's extract, compile and install the package. Don't forget to change the name of the file if you have another name or other version
$ tar --gzip -xvf PyQtChart_gpl-5.11.2.tar.gz # Extracting files
$ cd PyQtChart_gpl-5.11.2
$ python3 configure.py
$ make
$ sudo make install
Congratulations on installing!
To install PyQt5
we have to run the same commands as windows, but we have first to install pip
.
Installing pip
by typing this command in the terminal
.
$ sudo pacman -Sy --needed python-pip
Installing pip
by typing this command in the terminal
.
$ sudo apt install python3-pip
You can use your package manager, and install the package.
After installing pip
or we need to do is to run these commands.
We open the terminal
and type:
$ sudo pip3 install PyQt5
$ sudo pip3 install PyQtChart
We have create a simple wiki for you, to illustrate how to use the program. You can click here Sunrise Wiki