medic / cht-conf

A command-line interface for configuring Community Health Toolkit applications
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
23 stars 25 forks source link

Phython 2 is still needed to use xls2xform #612

Closed latin-panda closed 7 months ago

latin-panda commented 7 months ago

Describe the issue I use pyenv, if I have the 3.12.x (same version as originally installed in my macbook m3), and run cht --local in default config. I get the following error:

INFO Error: There was a problem executing xls2xform.  It may not be installed.
E To install the latest pyxform, try one of the following:
E
E Ubuntu
E   sudo python -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic
E OSX
E   pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic
E Windows (as Administrator)
E   python -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic --upgrade
    at /Users/jen/.nvm/versions/node/v20.10.0/lib/node_modules/cht-conf/src/lib/convert-forms.js:80:20
    at async execute (/Users/jen/.nvm/versions/node/v20.10.0/lib/node_modules/cht-conf/src/lib/convert-forms.js:60:5)

I tried installing the tool with pip3, but didn't work. The error goes away whenever I switch to Phython 2.17

latin-panda commented 7 months ago

Just in case, I tried both pip and pip3, while having python 3 and didn't work. I'll try to reproduce it again tomorrow and paste the error here.

latin-panda commented 7 months ago

I've reset my computer setup and couldn't reproduce it anymore after some tries. Closing for now.