what cause this error? #309
Unanswered
Simonabcddcba
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
分析错误(MinerU) E:\UsefulTool\MinerU-magic_pdf-0.6.2b1-released>magic-pdf pdf-command --pdf "D:\1.pdf" --inside_model true
2024-08-03 09:57:55.458 | ERROR | magic_pdf.cli.magicpdf:parse_doc:338 - Invalid control character at: line 6 column 29 (char 156)
Traceback (most recent call last):
File "C:\Users\Beluga.conda\envs\MinerU\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
│ │ └ {'name': 'main', 'doc': None, 'package': '', 'loader': <zipimporter object "C:\Users\Beluga.conda\envs\M...
│ └ <code object at 0x000001C184D37EC0, file "C:\Users\Beluga.conda\envs\MinerU\Scripts\magic-pdf.exe_main.py", lin...
└ <function _run_code at 0x000001C184D21480>
File "C:\Users\Beluga.conda\envs\MinerU\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
│ └ {'name': 'main', 'doc': None, 'package': '', 'loader': <zipimporter object "C:\Users\Beluga.conda\envs\M...
└ <code object at 0x000001C184D37EC0, file "C:\Users\Beluga.conda\envs\MinerU\Scripts\magic-pdf.exe_main.py", lin...
File "C:\Users\Beluga.conda\envs\MinerU\Scripts\magic-pdf.exe_main_.py", line 7, in
File "C:\Users\Beluga.conda\envs\MinerU\lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
│ │ │ └ {}
│ │ └ ()
│ └ <function BaseCommand.main at 0x000001C185186680>
└
File "C:\Users\Beluga.conda\envs\MinerU\lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
│ │ └ <click.core.Context object at 0x000001C184D88FA0>
│ └ <function MultiCommand.invoke at 0x000001C185187640>
└
File "C:\Users\Beluga.conda\envs\MinerU\lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
│ │ │ │ └ <click.core.Context object at 0x000001C1DBAAB2E0>
│ │ │ └ <function Command.invoke at 0x000001C185187130>
│ │ └
│ └ <click.core.Context object at 0x000001C1DBAAB2E0>
└ <function MultiCommand.invoke.._process_result at 0x000001C184AA7D00>
File "C:\Users\Beluga.conda\envs\MinerU\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
│ │ │ │ │ └ {'pdf': 'D:\\1.pdf', 'inside_model': True, 'model': None, 'method': 'auto', 'model_mode': 'full'}
│ │ │ │ └ <click.core.Context object at 0x000001C1DBAAB2E0>
│ │ │ └ <function pdf_command at 0x000001C1DBAD4B80>
│ │ └
│ └ <function Context.invoke at 0x000001C185185EA0>
└ <click.core.Context object at 0x000001C1DBAAB2E0>
File "C:\Users\Beluga.conda\envs\MinerU\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
│ └ {'pdf': 'D:\\1.pdf', 'inside_model': True, 'model': None, 'method': 'auto', 'model_mode': 'full'}
└ ()
File "C:\Users\Beluga.conda\envs\MinerU\lib\site-packages\magic_pdf\cli\magicpdf.py", line 352, in pdf_command
parse_doc(pdf)
│ └ 'D:\\1.pdf'
└ <function pdf_command..parse_doc at 0x000001C1DBAD48B0>
File "C:\Users\Beluga.conda\envs\MinerU\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
│ │ └ '{\n "bucket_info":{\n "bucket-name-1":["ak", "sk", "endpoint"],\n "bucket-name-2":["ak", "sk", "endpoint"]...
│ └ <function JSONDecoder.decode at 0x000001C184D9C0D0>
└ <json.decoder.JSONDecoder object at 0x000001C184D89000>
File "C:\Users\Beluga.conda\envs\MinerU\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
│ │ │ │ └ '{\n "bucket_info":{\n "bucket-name-1":["ak", "sk", "endpoint"],\n "bucket-name-2":["ak", "sk", "endpoint"]...
│ │ │ └ <built-in method match of re.Pattern object at 0x000001C184963510>
│ │ └ '{\n "bucket_info":{\n "bucket-name-1":["ak", "sk", "endpoint"],\n "bucket-name-2":["ak", "sk", "endpoint"]...
│ └ <function JSONDecoder.raw_decode at 0x000001C184D9C160>
└ <json.decoder.JSONDecoder object at 0x000001C184D89000>
File "C:\Users\Beluga.conda\envs\MinerU\lib\json\decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
│ │ │ └ 0
│ │ └ '{\n "bucket_info":{\n "bucket-name-1":["ak", "sk", "endpoint"],\n "bucket-name-2":["ak", "sk", "endpoint"]...
│ └ <_json.Scanner object at 0x000001C184D760E0>
└ <json.decoder.JSONDecoder object at 0x000001C184D89000>
json.decoder.JSONDecodeError: Invalid control character at: line 6 column 29 (char 156)
Beta Was this translation helpful? Give feedback.
All reactions