Closed Tomnl closed 7 years ago
Yup, I forgot that format_map was only available through Python3.
Two ways to fix that:
1) Replace query.format_map(meta.env)
by query.format_map(**meta.env)
in mzml2isa/utils.py
2) Use string module (in stdlib), and use string.Formatter.vformat
No idea which one is the most efficient though, I have no idea of python unpacking performance
Hi @Tomnl
Current fail on Windows is caused by the fact you try to call mzml2isa/parsing.py, which does relative imports.
Just overhaul our appveyor.yml mzml2isa testing command to use C:\\path-to-py\\python.exe -m mzml2isa [scripts arts]
(I've fixed the original format_map issue before releasing v0.5.0)
Hi Martin,
Thanks for the format_map update.
Sorry forgot to mention I was testing yesterday on another branch 'windows-test' that had the updated command line use.
I will merge now Cheers, Tom
Hey,
Seems to be failing for Windows in Python 2.7
See https://ci.appveyor.com/project/Tomnl/mzml2isa/build/1.0.1/job/y6snhyr3k3liwxgq:
Looks like it is a 2 vs 3 compatibility issue.
Any ideas @althonos? ( I will look into as well)