defusedxml 0.7.1 & Python 3.9 -- TypeError: __init__() takes 1 positional argument but 4 were given
charleswhchan opened this issue · 1 comments
charleswhchan commented
File "/home/user/main.py", line 6, in <module>
from openpyxl import Workbook
File "/var/lib/jenkins/workspace/main/env/lib/python3.9/site-packages/openpyxl/__init__.py", line 6, in <module>
from openpyxl.workbook import Workbook
File "/var/lib/jenkins/workspace/main/env/lib/python3.9/site-packages/openpyxl/workbook/__init__.py", line 4, in <module>
from .workbook import Workbook
File "/var/lib/jenkins/workspace/main/env/lib/python3.9/site-packages/openpyxl/workbook/workbook.py", line 7, in <module>
from openpyxl.worksheet.worksheet import Worksheet
File "/var/lib/jenkins/workspace/main/env/lib/python3.9/site-packages/openpyxl/worksheet/worksheet.py", line 25, in <module>
from openpyxl.cell import Cell, MergedCell
File "/var/lib/jenkins/workspace/main/env/lib/python3.9/site-packages/openpyxl/cell/__init__.py", line 3, in <module>
from .cell import Cell, WriteOnlyCell, MergedCell
File "/var/lib/jenkins/workspace/main/env/lib/python3.9/site-packages/openpyxl/cell/cell.py", line 28, in <module>
from openpyxl.styles.styleable import StyleableObject
File "/var/lib/jenkins/workspace/main/env/lib/python3.9/site-packages/openpyxl/styles/styleable.py", line 14, in <module>
from .builtins import styles
File "/var/lib/jenkins/workspace/main/env/lib/python3.9/site-packages/openpyxl/styles/builtins.py", line 1346, in <module>
('Normal', NamedStyle.from_tree(fromstring(normal))),
File "/var/lib/jenkins/workspace/main/env/lib/python3.9/site-packages/defusedxml/common.py", line 113, in fromstring
parser = DefusedXMLParser(target=_TreeBuilder(),
File "/var/lib/jenkins/workspace/main/env/lib/python3.9/site-packages/defusedxml/ElementTree.py", line 68, in __init__
_XMLParser.__init__(self, html, target, encoding)
TypeError: __init__() takes 1 positional argument but 4 were given
charleswhchan commented
duplicate of #34