Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pyxform command #1558

Closed
esthermmoturi opened this issue Sep 23, 2024 · 7 comments
Closed

Update pyxform command #1558

esthermmoturi opened this issue Sep 23, 2024 · 7 comments

Comments

@esthermmoturi
Copy link
Contributor

esthermmoturi commented Sep 23, 2024

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
@mrjones-plip
Copy link
Contributor

mrjones-plip commented Sep 23, 2024

  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.

@sugat009
Copy link
Member

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

@esthermmoturi
Copy link
Contributor Author

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
Copy link
Member

You could try this:

pip freeze | grep pyxform

@mrjones-plip
Copy link
Contributor

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
Copy link
Contributor Author

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

@esthermmoturi
Copy link
Contributor Author

Closed by #1571

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants