Update pyxform command
Closed this issue · 7 comments
esthermmoturi commented
On the local setup page in the pyxform section:
- Indicate that an environment has to be created and activated (for python3)
- Replace with this command
sudo python3 -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic
- Add
pip install pyxform
mrjones-plip commented
- 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.
sugat009 commented
A related issue in cht-conf
: medic/cht-conf#613
esthermmoturi commented
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?
sugat009 commented
You could try this:
pip freeze | grep pyxform
mrjones-plip commented
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
esthermmoturi commented
Thanks @mrjones-plip and @sugat009 , I get it.
esthermmoturi commented
Closed by #1571