-
Notifications
You must be signed in to change notification settings - Fork 135
Install_Linux_Git
Before you install Programy on Ubuntu you need to check that you have the pre-requisites installed, named Python 3.x and Pip. Installation instructions for Ubuntu can be found in Ubuntu Prerequisites
First off we need to create a directory to hold and initialise it for use with Git
keith@ubuntu:~$mkdir programy
keith@ubuntu:~$cd programy
keith@ubuntu:~/programy$ git init .
Initialized empty Git repository in /home/keith/programy/.git/
Next is to create a git connection to the remote repo and pull the code from that repo as follows
keith@ubuntu:~/programy$ git pull github master
remote: Enumerating objects: 1302, done.
remote: Counting objects: 100% (1302/1302), done.
remote: Compressing objects: 100% (966/966), done.
remote: Total 20827 (delta 730), reused 669 (delta 323), pack-reused 19525
Receiving objects: 100% (20827/20827), 33.54 MiB | 2.90 MiB/s, done.
Resolving deltas: 100% (15379/15379), done.
From https://github.com/keiffster/program-y
* branch master -> FETCH_HEAD
* [new branch] master -> github/master
keith@ubuntu:~/programy$
You now have the code in place, the next 2 steps allow us to set the PYTHONPATH and then install the neccasary python requirements.
keith@ubuntu:~/programy$ export PYTHONPATH=/home/keith/programy/src
keith@ubuntu:~/programy$ pip3 install -r requirements.txt
This will install all of the neccassary python libraries.
We can check its all installed by running Admin Tool
keith@ubuntu:~/programy$ python3 -m programy.admin.tool
Available commands are:
help
list
download <bot-name>
install <component>
keith@ubuntu:~/programy$
We can now install the additional components used by Programy
keith@ubuntu:~/programy$ python3 -m programy.admin.tool install textblob
Installing additional components for textblob
[nltk_data] Downloading package punkt to /home/keith/nltk_data...
[nltk_data] Package punkt is already up-to-date!
[nltk_data] Downloading package brown to /home/keith/nltk_data...
[nltk_data] Package brown is already up-to-date!
[nltk_data] Downloading package punkt to /home/keith/nltk_data...
[nltk_data] Package punkt is already up-to-date!
[nltk_data] Downloading package wordnet to /home/keith/nltk_data...
[nltk_data] Package wordnet is already up-to-date!
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data] /home/keith/nltk_data...
[nltk_data] Package averaged_perceptron_tagger is already up-to-
[nltk_data] date!
[nltk_data] Downloading package conll2000 to /home/keith/nltk_data...
[nltk_data] Package conll2000 is already up-to-date!
[nltk_data] Downloading package movie_reviews to
[nltk_data] /home/keith/nltk_data...
[nltk_data] Package movie_reviews is already up-to-date!
keith@ubuntu:~/programy$
Now lets create a new directory to story our choice of first bot
keith@ubuntu:~/programy$ mkdir y-bot
keith@ubuntu:~/programy$ cd y-bot
keith@ubuntu:~/programy/y-bot$ python3 -m programy.admin.tool download y-bot
Downloading [y-bot] from [https://github.com/keiffster/y-bot/archive/master.zip]
[.............................................................................]
Download complete
To run y-bot bot in console mode, use the following commands
cd scripts/xnix
./y-bot.sh
keith@ubuntu:~/programy/y-bot$
keith@ubuntu:~/programy/y-bot$ cd scripts
keith@ubuntu:~/programy/y-bot/scripts$ cd xnix
keith@ubuntu:~/programy/y-bot/scripts/xnix$ ./y-bot.sh
Loading, please wait...
/home/keith/programy/y-bot/scripts/xnix
No bot root argument set, defaulting to [../../config/xnix]
Found a total of 1 errors in your grammars, check your errors store
Found a total of 6 duplicates in your grammars, check your duplicates store
Y-Bot, App: v3.0.0 Beta 1 Grammar v1.6.0, initiated March 14, 2017
Hey, whats up ?
>>> hello
Good morning.
>>> who are you
I'm Y-Bot.
>>> what are you
A virtual agent.
You are now ready to start working your with bot. To do this, jump to the next page You and Your Bot
Email: keiffster@gmail.com | Twitter: @keiffster | Facebook: keith.sterling | LinkedIn: keithsterling | My Blog
- Home
- Background
- Guiding Principles
- Reporting an Issue
- Installation
- You And Your Bot
- Bots
- Clients
- Configuration
- AIML
- Sentence Splitting
- Natural Langauge Processing
- Normalization
- Spelling
- Sentiment Analysis
- Translation
- Security
- Hot Reload
- Logging
- Out of Band
- Multi Language
- RDF Support
- Rich Media
- Asynchronous Events
- Triggers
- External Services
- Dynamic Sets, Maps & Vars
- Extensions
- Pre & Post Processors
- Custom Nodes
- The Brain Tree
- Utilities
- Building It Yourself
- Creating Your Own Bot
- Contributing
- Performance Testing
- FAQ
- History
- Website