medic/cht-docs

Update pyxform command

Closed this issue · 7 comments

On the local setup page in the pyxform section:

  1. Indicate that an environment has to be created and activated (for python3)
  2. Replace with this command sudo python3 -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic
  3. Add pip install pyxform
  1. Add pip install pyxform

you don't need to do this step as step 2 does it for you but uses Medic's specific version that is needed.

A related issue in cht-conf: medic/cht-conf#613

For some reason, before running pip install pyxform I was not getting any output for pip show pyxform. Is there any other way to confirm that pyxform is installed?

You could try this:

pip freeze | grep pyxform

what we're actually doing is installing the xls2xform-medic binary. For me this got installed here:

which xls2xform-medic
/home/mrjones/.local/bin/xls2xform-medic

And since ~/.local/bin is in my path, I can just test by calling xls2xform-medic and see the error output that it's missing arguments:

xls2xform-medic         
usage: xls2xform-medic [-h] [--json] [--skip_validate] path_to_XLSForm output_path
xls2xform-medic: error: the following arguments are required: path_to_XLSForm, output_path

Thanks @mrjones-plip and @sugat009 , I get it.

Closed by #1571