Closed daniel-mohr closed 3 years ago
Hi Daniel, which version of cfunits are you using?
(I should add that I have never tested cfunits on windows. I'll have a little look at the code ...)
Sorry, I'm also not familiar with windows. I just tried on github actions to run my software on windows and got more or less above error.
conda used cfunits-3.3.3.
I now created an explicit test for cfunit. Maybe this minimal test on windows could be integrated in the github actions here?
I got it running by explicit set an environment variable, e. g.:
jobs:
windows-2016_test_cfunits:
runs-on: windows-2016
steps:
- name: conda init powershell
run: |
&($env:CONDA + "\Scripts\conda") init powershell
- name: install dependencies via conda
run: conda install -c conda-forge cfunits
- name: python -c "import cfunits"
run: |
$env:UDUNITS2_XML_PATH = $env:CONDA + "\Library\share\udunits\udunits2.xml"
python -c "import cfunits"
windows-2019_test_cfunits:
runs-on: windows-2019
steps:
- name: conda init powershell
run: |
&($env:CONDA + "\Scripts\conda") init powershell
- name: install dependencies via conda
run: conda install -c conda-forge cfunits
- name: python -c "import cfunits"
run: |
$env:UDUNITS2_XML_PATH = $env:CONDA + "\Library\share\udunits\udunits2.xml"
python -c "import cfunits"
But I do not think this is a nice way. But unfortunately I do not know better to use conda and/or windows. :-(
Hi Daniel,
OK, good - the use of UDUNITS2_XML_PATH is documented at https://ncas-cms.github.io/cfunits/installation.html - I should have spotted the error message you were getting as being highlighted in that doc page! Thanks for working through it.
All the best, David
Hi David,
is it interesting for you to include such a github action for windows? Should I try?
Regards, Daniel
Hi Daniel - if you would like to submit a PR for that, that would be most welcome. David
Hi David,
I tried now to create a CI workflow in #29.
Regards, Daniel
If I try to use cfunits from miniconda on windows I get:
Sorry, I have no idea and also I'm not sure that this is an issue of cfunits. ?