-
Notifications
You must be signed in to change notification settings - Fork 988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
报错 #746
Comments
环境在这两天有做什么变动吗? |
没有,昨天只在新的虚拟环境中安装了magic-doc |
那确实挺怪的,尤其是在之前能正常运行的环境突然出问题。。可以试试重新建个新的conda环境再装一遍 |
to fix your trouble check this solution click |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请问这个报错该如何解决,昨天正常使用,今天突然开始报这个错误
2024-10-16 11:13:45.180 | INFO | magic_pdf.libs.pdf_check:detect_invalid_chars:57 - cid_count: 0, text_len: 1872, cid_chars_radio: 0.0
2024-10-16 11:13:45.182 | ERROR | magic_pdf.tools.cli:parse_doc:96 - partially initialized module 'paddle' has no attribute 'tensor' (most likely due to a circular import)
Traceback (most recent call last):
File "/usr/local/bin/magic-pdf", line 8, in
sys.exit(cli())
│ │ └
│ └
└ <module 'sys' (built-in)>
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
│ │ │ └ {}
│ │ └ ()
│ └ <function BaseCommand.main at 0x7ff3c2239000>
└
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
│ │ └ <click.core.Context object at 0x7ff3c267bc10>
│ └ <function Command.invoke at 0x7ff3c2239ab0>
└
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
│ │ │ │ │ └ {'path': 'pdf/complex_structure/', 'output_dir': 'result/', 'method': 'auto', 'debug_able': False, 'start_page_id': 0, 'end_p...
│ │ │ │ └ <click.core.Context object at 0x7ff3c267bc10>
│ │ │ └ <function cli at 0x7ff267ccb010>
│ │ └
│ └ <function Context.invoke at 0x7ff3c2238820>
└ <click.core.Context object at 0x7ff3c267bc10>
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
│ └ {'path': 'pdf/complex_structure/', 'output_dir': 'result/', 'method': 'auto', 'debug_able': False, 'start_page_id': 0, 'end_p...
└ ()
File "/usr/local/lib/python3.10/site-packages/magic_pdf/tools/cli.py", line 100, in cli
parse_doc(doc_path)
│ └ PosixPath('pdf/complex_structure/【Procurement_Manager_广州】马赛尔_10年以上.pdf')
└ <function cli..parse_doc at 0x7ff3c2479bd0>
AttributeError: partially initialized module 'paddle' has no attribute 'tensor' (most likely due to a circular import)
The text was updated successfully, but these errors were encountered: