Event Timeline
Comment Actions
I could not get it to work.
End from the templates folder
error
❯ python3 Stan.py 0it [00:00, ?it/s]
End from the simulation folder
error
❯ python3 Stan.py 0%| | 0/1718 [00:00<?, ?it/s] Traceback (most recent call last): File "/Users/paria/0ad/binaries/data/mods/public/simulation/Stan.py", line 173, in <module> indent_and_correct(filename) File "/Users/paria/0ad/binaries/data/mods/public/simulation/Stan.py", line 10, in indent_and_correct indented_xml = BeautifulSoup(file, "xml") File "/usr/local/lib/python3.9/site-packages/bs4/__init__.py", line 248, in __init__ raise FeatureNotFound( bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: xml. Do you need to install a parser library?
Comment Actions
i was missing lxml
parser
❯ pip3 install lxml ❯ python3 Stan.py 100%|██████████████████████████████████████| 1718/1718 [00:04<00:00, 364.39it/s]
Great tool! Will it become part of the standard CI workflow before a patch is committed?
Comment Actions
Only bad side effect is the comments are thrown under the bus.
The Python code is easier to understand than the XSLT stylesheet.
- This code makes D4749 largely obsolete.