-
-
Notifications
You must be signed in to change notification settings - Fork 39
Installation
-
UniqueBible App is now distributed via PIP package.
-
User content is now stored in
~/UniqueBible
, to keep user content intact even the app is upgraded. Therefore, it is not recommended to install UniqueBible App inside~/UniqueBible
.
To install, for example:
cd ~
python3 -m venv ub
source ub/bin/activate
pip install --upgrade uniquebible
echo "alias uniquebible='. $(pwd)/ub/bin/activate && $(which ubgui)'" >> ~/.bashrc
source ~/.bashrc
For developers:
git clone https://github.com/eliranwong/UniqueBible
cd UniqueBible
pip install -e .
To run GUI mode:
uniquebible
or
ubgui
Windows and macOS users, please use ubgui
To run a single-turn command, use cli ub
:
# e.g. read John 3:16
ub John 3:16
# pipes supported, e.g.
echo "3:16" | ub John | less
To run multi-turn interactive terminal mode:
ub
To run http-server and web API:
ubhttp
Read more about running modes at https://github.com/eliranwong/UniqueBible/wiki/UBA-Run-Modes
To integrate with ToolMate AI, install in the same environment:
pip install --upgrade toolmate[bible]
-
If you have your previous non-pip versions of UniqueBible App placed at
~/UniqueBible
, remove the directory~/UniqueBible/plugins
once. When the latest pip version of UniqueBible App launches, it automatically creates plugins folder for placing user plugins. -
If you have custom plugins written for UBA versions older than pip packages, you have to correct the import statements related to
uniquebible
package. For example, to importconfig
module, we wroteimport config
. To work with the latest UBA package, you need to writefrom uniquebible import config
. -
Built-in plugins and custom plugins are now placed in different directories. Built-in plugins are placed inside the package folder, which are changed with upgrading. Custom plugins should be placed inside subfolders in
~/UniqueBible/plugins
. Do not place custom plugins in package folders, as they will be deleted during upgrades. -
Place all database files inside UBA user directory
~/UniqueBible
, particularly~/UniqueBible/marvelData
. Do not place additional bible modules or database files in the package folder.
If you have any installation issues, please first refer to Installation and startup issues. If that does not address it, please create a new issue.