NOTE: This is a public repository. Images or logs containing protected health information (PHI) must be fully-redacted.
Describe the Bug
A short description of the issue or error you are encountering:
Added a new workflow to the contact forms and when i push i get this error:
ERROR Traceback (most recent call last):
File “/usr/local/bin/xls2xform-medic”, line 10, in
sys.exit(main_cli())
File “/usr/local/lib/python2.7/dist-packages/pyxform/xls2xform.py”, line 88, in main_cli
args.skip_validate)
File “/usr/local/lib/python2.7/dist-packages/pyxform/xls2xform.py”, line 25, in xls2xform_convert
xform_path, validate=validate, warnings=warnings)
File “/usr/local/lib/python2.7/dist-packages/pyxform/survey.py”, line 548, in print_xform_to_file
raise e
pyxform.errors.PyXFormError: Unknown question type ‘db:supervisor’.
I am using windows OS and i am failing to locate the directory above to update the question type dict file.
How To Reproduce The Issue
List steps for someone trying to reproduce the behavior. For example:
Go to ‘…’
Click on ‘…’
Scroll down to ‘…’
See error
Expected Behavior
A short description of what you expected to happen:
Logs
If applicable, include the server or browser logs (check for PHI):
Screenshots
If applicable, add screenshots to help explain your problem (check for PHI):
I just saw your post here and wanted to know (out of curiosity), if it is even possible to have different person types…?
You are trying to load db:supervisor and i tried the same with my own person types but failed. Therefore i am very interested in the answers that we will written down here.
Hi @uensal ,
Yes, it is possible to have multiple contact types that represent persons.
You can define them in the contact_types section in app_settings.json (or base_settings.json) and set the person property to true.
I am still curious, why you are using a docker container to run cht-conf while it could be possible to run the CHT app on the docker container and use cht-conf on Windows to make the config changes. That way, it will be easier to edit the configuration files or to modify the pyxform package (if needed).
As mentioned in the cht-conf repo, when using Docker to run cht-conf:
You will have to copy or mount your config files into the container in order to be able to use the cht call to interact with a remote CHT instance.
However, if you want to continue running cht-conf from the docker, you might have to find and edit the pyxform package inside the docker container.
Also, you are using docker-compose run --rm, so the container must be removed after each run. In that case, editing the files in the container might not work.
What do you think about the upgrade option so that you can be better supported?
Is it possible to upgrade to a recent version of CHT?