opendatalab / magic-doc

Apache License 2.0
305 stars 22 forks source link

TypeError: unsupported operand type(s) for |: 'type' and 'type' #30

Closed lihuibng closed 1 month ago

lihuibng commented 1 month ago

Describe the bug | 描述 bug TypeError: unsupported operand type(s) for |: 'type' and 'type' File "/usr/local/lib/python3.8/dist-packages/fairy_doc-0.1.44-py3.8.egg/magic_doc/docconv.py", line 16, in from magic_doc.conv.base import BaseConv File "/usr/local/lib/python3.8/dist-packages/fairy_doc-0.1.44-py3.8.egg/magic_doc/conv/base.py", line 6, in class BaseConv(ABC): File "/usr/local/lib/python3.8/dist-packages/fairy_doc-0.1.44-py3.8.egg/magic_doc/conv/base.py", line 11, in BaseConv def to_md(self, bits: bytes | str, pupdator:ConvProgressUpdator) -> str: TypeError: unsupported operand type(s) for |: 'type' and 'type'

Env | 系统环境

icecraft commented 1 month ago

according to the README, you should use python=3.10