首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Arelle启动过程中误逃逸错误

Arelle启动过程中误逃逸错误
EN

Stack Overflow用户
提问于 2021-06-14 11:38:42
回答 1查看 59关注 0票数 0

我试图让Arelle用Python3.6.9在UbuntuLinux18.04上工作。

步骤-1:(下载Arelle软件):

git克隆https://github.com/Arelle/Arelle.git -b lxml

步骤-2安装Python:

apt-get安装-y python-lxml

步骤-3安装Python:

由于错误:“没有名为tkinter的模块”

...I安装:

安装python3 3-tk

当从终端启动Arelle时,我使用:

代码语言:javascript
运行
复制
python3 arelleGUI.pyw

然后,我得到以下错误:

代码语言:javascript
运行
复制
Traceback (most recent call last):
  File "arelleGUI.pyw", line 9, in <module>
    from arelle import CntlrWinMain
  File "/tmp3/Arelle/arelle/CntlrWinMain.py", line 22, in <module>
    from arelle import Cntlr
  File "/tmp3/Arelle/arelle/Cntlr.py", line 8, in <module>
    from arelle import ModelManager
  File "/tmp3/Arelle/arelle/ModelManager.py", line 8, in <module>
    from arelle import (ModelXbrl, Validate, DisclosureSystem)
  File "/tmp3/Arelle/arelle/Validate.py", line 9, in <module>
    from arelle import (ModelXbrl, ModelVersReport, XbrlConst, ModelDocument,
  File "/tmp3/Arelle/arelle/ModelVersReport.py", line 9, in <module>
    from arelle import (XbrlConst, XbrlUtil, XmlUtil, UrlUtil, ModelXbrl, ModelDocument, ModelVersObject)
  File "/tmp3/Arelle/arelle/ModelDocument.py", line 9, in <module>
    from arelle import (XbrlConst, XmlUtil, UrlUtil, ValidateFilingText, XmlValidate)
  File "/tmp3/Arelle/arelle/ValidateFilingText.py", line 16, in <module>
    docCheckPattern = re.compile(r"&\w+;|[^0-9A-Za-z`~!@#$%&\*\(\)\.\-+ \[\]\{\}\|\\:;\"'<>,_?/=\t\n\r\m\f]") # won't match &#nnn;
  File "/usr/lib/python3.6/re.py", line 233, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python3.6/re.py", line 301, in _compile
    p = sre_compile.compile(pattern, flags)
  File "/usr/lib/python3.6/sre_compile.py", line 562, in compile
    p = sre_parse.parse(p, flags)
  File "/usr/lib/python3.6/sre_parse.py", line 855, in parse
    p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
  File "/usr/lib/python3.6/sre_parse.py", line 416, in _parse_sub
    not nested and not items))
  File "/usr/lib/python3.6/sre_parse.py", line 527, in _parse
    code1 = _class_escape(source, this)
  File "/usr/lib/python3.6/sre_parse.py", line 336, in _class_escape
    raise source.error('bad escape %s' % escape, len(escape))
sre_constants.error: bad escape \m at position 67

我发现这个所以问题似乎与这个问题有关。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-06-14 22:44:04

这是Arelle中的一个错误,它显示在Python3.6和更高版本中。有一个拉请求,但这仍然是开放的(自2017年7月)。考虑到Python3.6已经发布了很长一段时间了,我不知道为什么它没有被修复。

您使用的是lxml分支,它是陈腐10年。因此,也许这个错误实际上已经修复了(即使拉请求仍然是打开的)在主brach上,而不是在lxml分支上。试着先从主安装,如果这是你的选择。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67969559

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档