smart-build




Configure Smart Development Server



D:\work\src\pythonworkspace\smart_sample_appsv021\smart_sample_patients\bin>pip freeze
Django==1.4.13
MySQL-Connector-Python==1.1.7
html5lib==1.0b3
httplib2==0.9
isodate==0.5.0
jsonschema==0.7
oauth==1.0.1
oauth2==1.5.211
pyparsing==1.5.7
rdf==0.9a6
rdfextras==0.2
rdflib==3.2.3
six==1.6.1
sparqlwrapper==1.6.0
web.py==0.37

v0.2 instructions in https://github.com/smart-platforms/smart_server/blob/v0.2/README.md
v0.6 instructions inhttp://docs-v06.smartplatforms.org/framework/reference-implementation/install-ubuntu.html
Install the python packages and deps for windows
python-psycopg2
It doesn't look like Psycopg on Windows is as simple as using pip. The Psycopg website recommends using these Windows builds.
Jason Erickson's Windows port of Psycopg is still probably the best experience.
Depending on your environment, you'll want to use the appropriate script. All branches are using version 2.5.3 of psycopg2. Since psycopg2 is for PostgreSQL, you'll obviousely want to have that installed first.
http://www.stickpeople.com/projects/python/win-psycopg/

python-libxslt1
There are no competent guides for installing lxml on Windows
You can't install this with pip
python-m2crypto
python-simplejson
python-argparse
python-setuptools
python-pyparsing

Setup postgresql Database
Install openrdf-sesame and tomcat
Download, Install, and Configure Smart Backend Server
Download, Install, and Configure Smart UI Server
Download, Install, and Configure Smart Sample Apps
Generate Sample Patient Records and Load Them in the Smart EMR
Run apps to test

Configure Smart Development Servers to run on your windows machine instead of the cloud sandbox


Build the sample_apps

Install pip

D:\Downloads\src\python>python get-pip.py
Downloading/unpacking pip
Installing collected packages: pip
Successfully installed pip
Cleaning up...

D:\Downloads\src\python>python -m pip install -U pip
Requirement already up-to-date: pip in c:\python27\lib\site-packages
Cleaning up...



Install Django 1.4  



D:\Downloads\src\python\smart_sample_apps>python -m pip install https://www.djangoproject.com/download/1.4.13/tarball/
Downloading/unpacking https://www.djangoproject.com/download/1.4.13/tarball/
  Cannot determine compression type for file c:\users\chandan\appdata\local\temp\pip-hhh4yq-unpack\tarball.obj
  Running setup.py (path:c:\users\chandan\appdata\local\temp\pip-ohlc2v-build\setup.py) egg_info for package from https://www.djangoproject.com/download/1.4.13/tarball/

Installing collected packages: Django
  Running setup.py install for Django

Successfully installed Django
Cleaning up...

Get code from github


D:\Downloads\src\python>git clone --recursive https://github.com/chb/smart_sample_apps.git
Cloning into 'smart_sample_apps'...
remote: Reusing existing pack: 13808, done.
remote: Total 13808 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (13808/13808), 48.78 MiB | 652.00 KiB/s, done.
Resolving deltas: 100% (7689/7689), done.
Checking connectivity... done.
Checking out files: 100% (1130/1130), done.
Submodule 'smart_client' (https://github.com/chb/smart_client_python.git) registered for path 'smart_client'
Submodule 'static/framework/funcunit' (https://github.com/bitovi/funcunit.git) registered for path 'static/framework/funcunit'
Submodule 'static/framework/jquery' (https://github.com/jupiterjs/jquerymx) registered for path 'static/framework/jquery'
Submodule 'static/framework/steal' (https://github.com/jupiterjs/steal.git) registered for path 'static/framework/steal'
Cloning into 'smart_client'...
remote: Reusing existing pack: 450, done.
Rremote: Total 450 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (450/450), 156.41 KiB | 135.00 KiB/s, done.
Resolving deltas: 100% (247/247), done.
Checking connectivity... done.
Submodule path 'smart_client': checked out '8c142dc47c2680a4f8b4fc0e2c8063cfd0d14ca8'
Submodule 'common' (https://github.com/chb/smart_common.git) registered for path 'common'
Cloning into 'common'...
remote: Reusing existing pack: 627, done.

Receiving objects: 100% (627/627), 357.64 KiB | 198.00 KiB/s, done.
Resolving deltas: 100% (348/348), done.
Checking connectivity... done.
Submodule path 'smart_client/common': checked out 'f6b2c66f95c4dd6893d0d15604809a4f6c9c2582'
Cloning into 'static/framework/funcunit'...
remote: Reusing existing pack: 621, done.
rReceiving objects: 100% (621/621), 29.84 emote: Total 621 (delta 0), reused 0 (delta 0)MiB | 1.53 MiB/s, done.

Resolving deltas: 100% (288/288), done.
Checking connectivity... done.
Submodule path 'static/framework/funcunit': checked out '62277241bb13d6518d43f9fa7d0ce56085602b3a'
Submodule 'syn' (git://github.com/bitovi/syn.git) registered for path 'syn'
Cloning into 'syn'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.129]: errno=No error

Clone of 'git://github.com/bitovi/syn.git' into submodule path 'syn' failed
Cloning into 'static/framework/jquery'...
remote: Reusing existing pack: 9620, done.
remote: Total 9620 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (9620/9620), 3.57 MiB | 572.00 KiB/s, done.
Resolving deltas: 100% (4467/4467), done.
Checking connectivity... done.
Submodule path 'static/framework/jquery': checked out 'a0f5feafb88f51abe5641a8c42813168e9fb5828'
Cloning into 'static/framework/steal'...
remote: Reusing existing pack: 11076, done.
remote: Counting objects: 51, done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 11127 (delta 13), reused 0 (delta 0)
Receiving objects: 100% (11127/11127), 51.55 MiB | 781.00 KiB/s, done.
Resolving deltas: 100% (6405/6405), done.
Checking connectivity... done.
Submodule path 'static/framework/steal': checked out '11c3f8824a79f31e97e59d1532cba89716e2d7d3'
Failed to recurse into submodule path 'static/framework/funcunit'

For installing v0.2.1


git clone https://github.com/smart-platforms/smart_sample_apps.git
cd smart_sample_apps
git checkout v0.2.1
git submodule init
git submodule update

If you get the error 'No handlers could be found for logger "rdflib.term'
easy_install -U "rdflib==3.2.3" "rdfextras==0.2" "jsonschema==0.7" httplib2

Searching for rdflib==3.2.3 Reading https://pypi.python.org/simple/rdflib/ Reading http://code.google.com/p/rdflib/ Reading http://rdflib.net/ Reading https://github.com/RDFLib/rdflib Best match: rdflib 3.2.3 Downloading https://pypi.python.org/packages/source/r/rdflib/rdflib-3.2.3.tar.gz#md5=5350294136ed80721b40000cfab97e10 Processing rdflib-3.2.3.tar.gz Writing c:\users\chandan\appdata\local\temp\easy_install-t2tdms\rdflib-3.2.3\setup.cfg Running rdflib-3.2.3\setup.py -q bdist_egg --dist-dir c:\users\chandan\appdata\local\temp\easy_install-t2tdms\rdflib-3.2.3\egg-dist-tmp-rxxv50 zip_safe flag not set; analyzing archive contents... Removing rdflib 4.1.2 from easy-install.pth file Adding rdflib 3.2.3 to easy-install.pth file Installed c:\python27\lib\site-packages\rdflib-3.2.3-py2.7.egg Processing dependencies for rdflib==3.2.3 Finished processing dependencies for rdflib==3.2.3 Searching for rdfextras==0.2 Reading https://pypi.python.org/simple/rdfextras/ Reading http://code.google.com/p/rdfextras/ Reading http://github.com/RDFLib/rdfextras Best match: rdfextras 0.2 Downloading https://pypi.python.org/packages/source/r/rdfextras/rdfextras-0.2.tar.gz#md5=8d583ff9c33d5f05cdf65fef4299f51b Processing rdfextras-0.2.tar.gz Writing c:\users\chandan\appdata\local\temp\easy_install-blrqnt\rdfextras-0.2\setup.cfg Running rdfextras-0.2\setup.py -q bdist_egg --dist-dir c:\users\chandan\appdata\local\temp\easy_install-blrqnt\rdfextras-0.2\egg-dist-tmp-r0vxq9 warning: no files found matching '*.pyc' under directory 'examples' zip_safe flag not set; analyzing archive contents... rdfextras.__init__: module references __path__ Removing rdfextras 0.4 from easy-install.pth file Adding rdfextras 0.2 to easy-install.pth file Installing rdf2dot-script.py script to C:\Python27\Scripts Installing rdf2dot.exe script to C:\Python27\Scripts Installing csv2rdf-script.py script to C:\Python27\Scripts Installing csv2rdf.exe script to C:\Python27\Scripts Installing rdfpipe-script.py script to C:\Python27\Scripts Installing rdfpipe.exe script to C:\Python27\Scripts Installing rdfs2dot-script.py script to C:\Python27\Scripts Installing rdfs2dot.exe script to C:\Python27\Scripts Installed c:\python27\lib\site-packages\rdfextras-0.2-py2.7.egg Processing dependencies for rdfextras==0.2 Finished processing dependencies for rdfextras==0.2 Searching for jsonschema==0.7 Reading https://pypi.python.org/simple/jsonschema/ Best match: jsonschema 0.7 Downloading https://pypi.python.org/packages/source/j/jsonschema/jsonschema-0.7.zip#md5=b93f9bd7864d7c5c587951efa4c0a80f Processing jsonschema-0.7.zip Writing c:\users\chandan\appdata\local\temp\easy_install-ocmyeg\jsonschema-0.7\setup.cfg Running jsonschema-0.7\setup.py -q bdist_egg --dist-dir c:\users\chandan\appdata\local\temp\easy_install-ocmyeg\jsonschema-0.7\egg-dist-tmp-cpcf08 zip_safe flag not set; analyzing archive contents... Adding jsonschema 0.7 to easy-install.pth file Installed c:\python27\lib\site-packages\jsonschema-0.7-py2.7.egg Processing dependencies for jsonschema==0.7 Finished processing dependencies for jsonschema==0.7 Searching for httplib2 Reading https://pypi.python.org/simple/httplib2/ Reading http://code.google.com/p/httplib2/ Reading https://github.com/jcgregorio/httplib2 Best match: httplib2 0.9 Processing httplib2-0.9-py2.7.egg httplib2 0.9 is already the active version in easy-install.pth Using c:\python27\lib\site-packages\httplib2-0.9-py2.7.egg Processing dependencies for httplib2 Finished processing dependencies for httplib2

Install sample data for patients




Run the server


D:\Downloads\src\python\smart_sample_apps>python manage.py runconcurrentserver 0.0.0.0:800
Validating models...
0 errors found

Django version 1.4.13, using settings 'smart_sample_apps.settings'
Development server is running at http://0.0.0.0:800/
Quit the server with CTRL-BREAK.

Install apps using the manifest




Comments