(Original Reference: https://forums.aws.amazon.com/thread.jspa?messageID=221044)
MOD_PYTHON ERROR
ProcessId: 26201
Interpreter: 'mds'
ServerName: 'domU-12-31-39-07-1E-87.compute-1.internal'
DocumentRoot: '/etc/apache2/htdocs'
URI: '/mds'
Location: '/mds'
Directory: None
Filename: '/etc/apache2/htdocs'
PathInfo: '/mds'
Phase: 'PythonHandler'
Handler: 'django.core.handlers.modpython'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1229, in _process_target
result = _execute_target(config, req, object, arg)
File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1128, in _execute_target
result = object(arg)
File "/usr/lib/python2.7/dist-packages/django/core/handlers/modpython.py", line 212, in handler
return ModPythonHandler()(req)
File "/usr/lib/python2.7/dist-packages/django/core/handlers/modpython.py", line 174, in __call__
self.load_middleware()
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
for middleware_path in settings.MIDDLEWARE_CLASSES:
File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
self._setup()
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 89, in __init__
raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'sana.settings' (Is it on sys.path?): No module named sana.settings
My default site in apache has the following added section and ports.conf has a listen 9000 and the EC2 firewall is accepting traffic on 9000
<VirtualHost *:9000>
<Location "/mds">
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonDebug On
SetEnv DJANGO_SETTINGS_MODULE sana.settings
PythonPath "['/home/unbuntu/sana'] + sys.path"
PythonInterpreter mds
PythonOption django.root /mds
</Location>
<Location "/mds/media">
SetHandler none
</Location>
</VirtualHost>
Any help would be greatly appreciated.
Also, for the openmrs setup, I added
Contact Phone java.lang.String Phone number for person for Moca notifications
Contact Email java.lang.String Email for person for Moca notifications
with no edit privileges but these do not show up under advanced when creating users. I am using openmrs 1.6.1. What further do I need to do in order for these fields to show up?
MOD_PYTHON ERROR
ProcessId: 31642
Interpreter: 'mds'
ServerName: 'domU-12-31-39-07-1E-87.compute-1.internal'
DocumentRoot: '/home/ubuntu/sana'
URI: '/mds'
Location: '/mds'
Directory: None
Filename: '/home/ubuntu/sana/mds'
PathInfo: ''
Phase: 'PythonHandler'
Handler: 'django.core.handlers.modpython'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1229, in _process_target
result = _execute_target(config, req, object, arg)
File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1128, in _execute_target
result = object(arg)
File "/usr/lib/python2.7/dist-packages/django/core/handlers/modpython.py", line 212, in handler
return ModPythonHandler()(req)
File "/usr/lib/python2.7/dist-packages/django/core/handlers/modpython.py", line 174, in __call__
self.load_middleware()
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
for middleware_path in settings.MIDDLEWARE_CLASSES:
File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
self._setup()
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 89, in __init__
raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'sana.settings' (Is it on sys.path?): No module named sana.settings
| 12/13/2012 03:51:48 | /mds/json/procedure/submit/ | 0.6358s |
| 12/13/2012 03:51:43 | /mds/json/procedure/submit/ | 0.7885s |
| 12/13/2012 03:51:28 | /mds/json/procedure/submit/ | 0.7767s |
| 12/13/2012 03:51:24 | /mds/json/procedure/submit/ | 0.8536s |
| 12/13/2012 03:51:18 | /mds/json/procedure/submit/ | 1.0558s |
Yes (that was a typo...it is mDs) .
I set it to be ...etc.etc...com:9000
and it seems to create the patient but cannot finish uploading the record....it just says upload failed for any form I attempt to fill out using the SANA client. The patient record DOES get created, however. So some communication is happening but there is nothing in the moca queue and no actual forms. Am I missing a piece?
It is this one
http://sana.mit.edu/wiki/index.php?title=Configure_OpenMRS_for_Moca
The problem was a trailing space in the description and sound,picture and video need to be SUBJECT PICTURE, SUBJECT SOUND, SUBJECT VIDEO.
It also complains about the barcode concept
+0.182s openmrs.py:294 Got result {"status":"FAIL","code":"unspecified","message":"Concept error: Concept Undefined: (BARCODE TEST, Scan barcode)"}
+0.182s openmrs.py:300 Done with upload
+0.182s api.py:297 API: RESULT = False
+0.183s json.py:229 Failed to register procedure: sp.pk -> 4, Concept error: Concept Undefined: (BARCODE TEST, Scan barcode)
Is the default roll not configured to run with the example apps?
Now.....glorious victory...I feel like I can finally say that as a form has finished uploading and appears in the moca queue!
I'm starting to get the hang of this. Now to figure out how to write a basic encounter form.
I am not seeing any traffic on the mds log at all despite using identical address and accounts as my previous instance.
I just grabbed the source for the Sana App and compiled in a new form and graphics but noticed that the app felt different. Would this new difference cause it not to be able to talk with the 1.6 openmrs/mds stack?