Licence: MIT Licence Author: The Vitae Developers Language: Python Homepage: https://vitae.cc/
Note: If running from source, Python 3.6 or above is required to run ViLight. If your system lacks Python 3.6, you have other options, such as the binary releases.
ViLight is a pure python application forked from Electrum. If you want to use the Qt interface, install the Qt dependencies:
sudo apt-get install python3-pyqt5 python3-pyqt5.qtsvg
If you downloaded the official package (tar.gz), you can run ViLight from its root directory (called Electrum), without installing it on your system; all the python dependencies are included in the 'packages' directory. To run ViLight from its root directory, just do:
./vilight
You can also install ViLight on your system, by running this command:
sudo apt-get install python3-setuptools python3 setup.py install
This will download and install the Python dependencies used by ViLight, instead of using the 'packages' directory.
If you cloned the git repository, you need to compile extra files before you can run ViLight. Read the next section, "Development Version".
ViLight natively support Ledger Nano S hardware wallet. If you plan to use you need an additional dependency, namely btchip. To install it run this command:
sudo pip3 install btchip-python
If you still have problems connecting to your Nano S please have a look at this troubleshooting section on Ledger website.
Check out the code from Github:
git clone https://github.com/VitaeTeam/ViLight cd ViLight
Run install (this should install dependencies):
python3 setup.py install
or for Debian based systems ( tested on Debian v9 Stretch ):
sudo apt update sudo apt install python3-dnspython python3-pyaes libsecp256k1-0 python3-protobuf python3-jsonrpclib-pelix python3-ecdsa python3-qrcode python3-pyqt5 python3-socks
Then
Compile the protobuf description file:
sudo apt-get install protobuf-compiler protoc --proto_path=lib/ --python_out=lib/ lib/paymentrequest.proto
Create translations (optional):
sudo apt-get install python-requests gettext ./contrib/make_locale
Compile libsecp256k1 (optional, yet highly recommended):
./contrib/make_secp
For plugin development, see the plugin documentation.
Running unit tests:
pip install tox tox
Tox will take care of building a faux installation environment, and ensure that the mapped import paths work correctly.
If your Linux distribution has a different version of python 3 (such as python 3.5 in Debian 9), it is recommended to do a user dir install with pyenv. This allows Electron Cash to run completely independently of your system configuration.
- Install pyenv in your user
account. Follow the printed instructions about updating your environment
variables and
.bashrc
, and restart your shell to ensure that they are loaded. - Run
pyenv install 3.6.9
. This will download and compile that version of python, storing it under.pyenv
in your home directory. cd
into the Electron Cash directory. Runpyenv local 3.6.9
which inserts a file.python-version
into the current directory.- While still in this directory, run
pip install pyqt5
. - If you are installing from the source file (.tar.gz or .zip) then you are
ready and you may run
./electron-cash
. If you are using the git version, then continue by following the Development version instructions above.
You need to install either MacPorts or HomeBrew. Follow the instructions on either site for installing (Xcode from Apple's developer site is required for either).
- After installing either HomeBrew or MacPorts, clone this repository and switch to the directory:
git clone https://github.com/Electron-Cash/Electron-Cash && cd Electron-Cash
- Install python 3.6 or 3.7. For brew:
brew install python3
or if using MacPorts:sudo port install python36
- Install PyQt5:
python3 -m pip install --user pyqt5
- Install Electron Cash requirements:
python3 -m pip install --user -r contrib/requirements/requirements.txt
- Compile libsecp256k1 (optional, yet highly recommended):
./contrib/make_secp
. This requires GNU tools, install with brew:brew install coreutils
or if using MacPorts:sudo port install coreutils
- At this point you should be able to just run the sources:
./electron-cash
See contrib/build-linux/README.md.
See contrib/osx/.
See contrib/build-wine/.
See android/.
See ios/.