-
Notifications
You must be signed in to change notification settings - Fork 1
BuildingTheProject
Jereme Haack edited this page Sep 12, 2014
·
2 revisions
The Volttron Lite project includes scripts which automatically pull down dependencies and build the libraries: bootstrap is a one-time use script. Use it after the initial checkout, then use "bin/buildout -N" after that.
Ensure you have installed the required packages before proceeding. Especially if you intend to develop in Eclipse, we recommend creating a directory: ~/workspace In this directory:
- git clone https://github.com/VOLTTRON/volttron
- cd volttron
- ./bootstrap
- If bootstrap fails before finishing (for instance from a timeout), run: bin/buildout -N
Note: If bootstrap or buildout fails, try "bin/buildout -N" again. Also, some packages (especially numpy) can be very verbose when they install. Please wait for the wall of text to finish.
To test that installation worked, start up the platform:
- Edit the dev-config.ini file to ensure the paths match up to your installation
- bin/volttron-lite -c dev-config.ini
- If it starts with no errors then your setup is correct
- If you are developing in Eclipse, then you should update the Python path at this point. See: EclipseDevEnvironment
To test agent deployment and messaging, build and deploy ListenerAgent: From the rtunetwork directory
- volttron/scripts/build-agent.sh ListenerAgent
- chmod +x Agents/listeneragent-0.1-py2.7.egg
- bin/volttron-ctrl install-executable Agents/listeneragent-0.1-py2.7.egg
- bin/volttron-ctrl load-agent Agents/ListenerAgent/listeneragent.launch.json
- bin/volttron-ctrl start-agent listeneragent.launch.json
- To see that it's running: bin/volttron-ctrl list-agents