Hi team,
So i was trying to run the
colab file provided on github readme page of
XULE
While running XULE against an XBRL report, i used follwing code:
!arelleCmdLine -f "/content/FY2017-2018-U80302KA2000PTC026760-Console-Consolidated-BalanceSheet-31122018-xml-2-493953733-.xml" --plugins "xule | transforms/SEC" --xule-compile "sample.xule" --xule-run --xule-rule-set "sample.zip" --httpUserAgent "XULE-Arelle (
xbrl.us;
sup...@xbrl.us)" --logFormat="[%(messageCode)s] %(message)s"
error:
[info] Activation of plug-in XBRL rule processor (xule) successful, version Check version using Tools->Xule->Version on the GUI or --xule-version on the command line.
[info] Activation of plug-in SEC Inline Transforms successful, version 19.2.
[info] Xule version: 3.0.23612
2024-02-08T08:46:42.531999: parse start
Exception in thread Thread-1 (threaded_parse):
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.10/dist-packages/arelle/plugin/xule/XuleParser.py", line 81, in threaded_parse
returns.append(xuleGrammar.parse_file(full_file_name).as_dict())
File "/usr/local/lib/python3.10/dist-packages/pyparsing/core.py", line 1962, in parse_file
raise exc.with_traceback(None)
pyparsing.exceptions.ParseException: Expected string_end, found 'output' (at char 47), (line:4, col:1)
Traceback (most recent call last):
File "/usr/local/bin/arelleCmdLine", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/arelle/CntlrCmdLine.py", line 52, in main
parseAndRun(args)
File "/usr/local/lib/python3.10/dist-packages/arelle/CntlrCmdLine.py", line 459, in parseAndRun
cntlr.run(options)
File "/usr/local/lib/python3.10/dist-packages/arelle/CntlrCmdLine.py", line 879, in run
pluginXbrlMethod(self, options, sourceZipStream=sourceZipStream, responseZipStream=responseZipStream)
File "/usr/local/lib/python3.10/dist-packages/arelle/plugin/xule/__init__.py", line 709, in xuleCmdUtilityRun
xuleCompile(options.xule_compile, compile_destination, getattr(options, "xule_compile_type"), getattr(options, "xule_max_recurse_depth"))
File "/usr/local/lib/python3.10/dist-packages/arelle/plugin/xule/__init__.py", line 878, in xuleCompile
xp.parseRules(xule_file_names.split("|"), ruleset_file_name, compile_type, max_recurse_depth)
File "/usr/local/lib/python3.10/dist-packages/arelle/plugin/xule/XuleParser.py", line 163, in parseRules
parse_errors += parseFile(root, os.path.basename(processFile), xuleGrammar, ruleSet)
File "/usr/local/lib/python3.10/dist-packages/arelle/plugin/xule/XuleParser.py", line 86, in parseFile
parseRes = returns[0]
IndexError: list index out of range
So i tried to break down the code,
I'm getting an error here:
!arelleCmdLine --xule-run
Usage: arelleCmdLine [options]
arelleCmdLine: error: no such option: --xule-run
Also attached a screenshot for the same.