-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Examining the path of torch.classes raised: Tried to instantiate class '__path__._path', but it does not exist! Ensure that it is registered via torch::class_ #442
Comments
I also encountered this problem |
I am getting this as well, I am not sure were it is coming from. I have marker in a streamlit app with LightRAG, I noticed someone else mentioning the issue on the LightRAG git |
I am also getting the same error |
1 similar comment
I am also getting the same error |
same for me |
Same here |
ditto |
Same for me |
same for me |
Your traceback shows a separate error -
This is related to missing the debug image fonts. It will only appear when you check debug. I can look into this. |
@VikParuchuri this is also rellated to running Marker in Streamlit. WARNING streamlit.runtime.scriptrunner_utils.script_run_context: Thread 'MainThread': missing ScriptRunContext! This warning can be ignored when running in bare mode. While the application and Marker is working as it should the warning is repeated 50 times and could not be suppressed. And also this warning -> WARNING streamlit:
While I normally from streamlit from my IDE I tested in Iterm2 still, persists and using uv run app.py && streamlit run app.py creating a temp env and running directly in that. It is not causing any problems directly. I just cant track it down, are you familier with any of these issues?
|
Same here. I am getting the same error |
Same! I too get the same error while executing the the streamlit code. But here along with that I get following error and not understand why is it getting ?Error during detection: operands could not be broadcast together with shapes (1,4) () (3,) |
I got this too, it seems marker and streamlit do not work well together. |
2024-12-25 17:48:45.815 Examining the path of torch.classes raised: Tried to instantiate class 'path.path', but it does not exist! Ensure that it is registered via torch::class
2024-12-25 17:49:33.237 Examining the path of torch.classes raised: Tried to instantiate class 'path.path', but it does not exist! Ensure that it is registered via torch::class
Recognizing layout: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:02<00:00, 1.11s/it]
Detecting bboxes: 0it [00:00, ?it/s]
Recognizing equations: 0it [00:00, ?it/s]
Recognizing tables: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 2.83it/s]
2024-12-25 17:49:55.155 Uncaught app execution
Traceback (most recent call last):
File "/root/anaconda3/envs/marker/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
result = func()
File "/root/anaconda3/envs/marker/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec
exec(code, module.dict)
File "/root/anaconda3/envs/marker/lib/python3.10/site-packages/marker_app.py", line 136, in
rendered = convert_pdf(
File "/root/anaconda3/envs/marker/lib/python3.10/site-packages/marker_app.py", line 37, in convert_pdf
return converter(fname)
File "/root/anaconda3/envs/marker/lib/python3.10/site-packages/marker/converters/pdf.py", line 109, in call
processor(document)
File "/root/anaconda3/envs/marker/lib/python3.10/site-packages/marker/processors/debug.py", line 60, in call
self.draw_layout_debug_images(document)
File "/root/anaconda3/envs/marker/lib/python3.10/site-packages/marker/processors/debug.py", line 109, in draw_layout_debug_images
self.render_on_image(line_bboxes, png_image, labels=line_text, color="black", draw_bbox=False, label_font_size=24)
File "/root/anaconda3/envs/marker/lib/python3.10/site-packages/marker/processors/debug.py", line 173, in render_on_image
label_font = ImageFont.truetype(font_path, label_font_size)
File "/root/anaconda3/envs/marker/lib/python3.10/site-packages/PIL/ImageFont.py", line 834, in truetype
return freetype(font)
File "/root/anaconda3/envs/marker/lib/python3.10/site-packages/PIL/ImageFont.py", line 831, in freetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/root/anaconda3/envs/marker/lib/python3.10/site-packages/PIL/ImageFont.py", line 257, in init
self.font = core.getfont(
OSError: locations (loca) table missing
The text was updated successfully, but these errors were encountered: