Skip to content
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

Cannot import name 'threadpool_info' from 'sklearn.utils.fixes' #291

Open
drunkwcodes opened this issue Sep 29, 2024 · 0 comments
Open

Cannot import name 'threadpool_info' from 'sklearn.utils.fixes' #291

drunkwcodes opened this issue Sep 29, 2024 · 0 comments

Comments

@drunkwcodes
Copy link

from marker.convert import convert_single_pdf

from marker.models import load_all_models
ImportError                               Traceback (most recent call last)
Cell In[25], [line 1](vscode-notebook-cell:?execution_count=25&line=1)
----> [1](vscode-notebook-cell:?execution_count=25&line=1) from marker.convert import convert_single_pdf
      [3](vscode-notebook-cell:?execution_count=25&line=3) from marker.models import load_all_models

File ~/projects/bb7/.venv/lib/python3.12/site-packages/marker/convert.py:12
      [9](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/convert.py:9) from PIL import Image
     [11](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/convert.py:11) from marker.utils import flush_cuda_memory
---> [12](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/convert.py:12) from marker.tables.table import format_tables
     [13](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/convert.py:13) from marker.debug.data import dump_bbox_debug_data
     [14](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/convert.py:14) from marker.layout.layout import surya_layout, annotate_block_types

File ~/projects/bb7/.venv/lib/python3.12/site-packages/marker/tables/table.py:8
      [5](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/tables/table.py:5) from typing import List
      [7](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/tables/table.py:7) from marker.settings import settings
----> [8](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/tables/table.py:8) from marker.tables.cells import assign_cells_to_columns
      [9](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/tables/table.py:9) from marker.tables.utils import sort_table_blocks, replace_dots, replace_newlines
     [12](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/tables/table.py:12) def get_table_surya(page, table_box, space_tol=.01) -> List[List[str]]:

File ~/projects/bb7/.venv/lib/python3.12/site-packages/marker/tables/cells.py:4
      [2](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/tables/cells.py:2) from marker.schema.page import Page
      [3](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/tables/cells.py:3) import numpy as np
----> [4](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/tables/cells.py:4) from sklearn.cluster import DBSCAN
      [5](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/marker/tables/cells.py:5) from marker.settings import settings
...
---> [34](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/sklearn/cluster/_kmeans.py:34) from ..utils.fixes import threadpool_info, threadpool_limits
     [35](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/sklearn/cluster/_kmeans.py:35) from ..utils.sparsefuncs import mean_variance_axis
     [36](https://file+.vscode-resource.vscode-cdn.net/home/drunkwcodes/projects/bb7/src/bb7/~/projects/bb7/.venv/lib/python3.12/site-packages/sklearn/cluster/_kmeans.py:36) from ..utils.sparsefuncs_fast import assign_rows_csr

ImportError: cannot import name 'threadpool_info' from 'sklearn.utils.fixes' (/home/drunkwcodes/projects/bb7/.venv/lib/python3.12/site-packages/sklearn/utils/fixes.py)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant