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

Restrict rapidfuzz to 3.0.0 #1176

Closed
wants to merge 1 commit into from
Closed

Restrict rapidfuzz to 3.0.0 #1176

wants to merge 1 commit into from

Conversation

malfet
Copy link

@malfet malfet commented Apr 17, 2023

Attempt to install with rapidfuzz-3.0.0 results in ModuleNotFound exception:

>>> import doctr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/__init__.py", line 1, in <module>
    from . import datasets, io, models, transforms, utils
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/__init__.py", line 4, in <module>
    from .recognition import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/__init__.py", line 5, in <module>
    from .zoo import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/zoo.py", line 12, in <module>
    from .predictor import RecognitionPredictor
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/__init__.py", line 6, in <module>
    from .pytorch import *  # type: ignore[misc]
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/pytorch.py", line 14, in <module>
    from ._utils import remap_preds, split_crops
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/_utils.py", line 10, in <module>
    from ..utils import merge_multi_strings
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/utils.py", line 8, in <module>
    from rapidfuzz.string_metric import levenshtein
ModuleNotFoundError: No module named 'rapidfuzz.string_metric'

Attempt to install with `rapidfuzz-3.0.0` results in `ModuleNotFound` exception:
```python
>>> import doctr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/__init__.py", line 1, in <module>
    from . import datasets, io, models, transforms, utils
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/__init__.py", line 4, in <module>
    from .recognition import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/__init__.py", line 5, in <module>
    from .zoo import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/zoo.py", line 12, in <module>
    from .predictor import RecognitionPredictor
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/__init__.py", line 6, in <module>
    from .pytorch import *  # type: ignore[misc]
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/pytorch.py", line 14, in <module>
    from ._utils import remap_preds, split_crops
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/_utils.py", line 10, in <module>
    from ..utils import merge_multi_strings
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/utils.py", line 8, in <module>
    from rapidfuzz.string_metric import levenshtein
ModuleNotFoundError: No module named 'rapidfuzz.string_metric'
```
malfet added a commit to pytorch/benchmark that referenced this pull request Apr 17, 2023
As repo is incompatible with `rapidfuzz-3.0.0`:
```python
>>> import doctr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/__init__.py", line 1, in <module>
    from . import datasets, io, models, transforms, utils
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/__init__.py", line 4, in <module>
    from .recognition import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/__init__.py", line 5, in <module>
    from .zoo import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/zoo.py", line 12, in <module>
    from .predictor import RecognitionPredictor
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/__init__.py", line 6, in <module>
    from .pytorch import *  # type: ignore[misc]
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/pytorch.py", line 14, in <module>
    from ._utils import remap_preds, split_crops
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/_utils.py", line 10, in <module>
    from ..utils import merge_multi_strings
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/utils.py", line 8, in <module>
    from rapidfuzz.string_metric import levenshtein
ModuleNotFoundError: No module named 'rapidfuzz.string_metric'
```

Propose fix upstream in mindee/doctr#1176
facebook-github-bot pushed a commit to pytorch/benchmark that referenced this pull request Apr 17, 2023
Summary:
As repo is incompatible with `rapidfuzz-3.0.0`:
```python
>>> import doctr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/__init__.py", line 1, in <module>
    from . import datasets, io, models, transforms, utils
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/__init__.py", line 4, in <module>
    from .recognition import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/__init__.py", line 5, in <module>
    from .zoo import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/zoo.py", line 12, in <module>
    from .predictor import RecognitionPredictor
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/__init__.py", line 6, in <module>
    from .pytorch import *  # type: ignore[misc]
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/pytorch.py", line 14, in <module>
    from ._utils import remap_preds, split_crops
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/_utils.py", line 10, in <module>
    from ..utils import merge_multi_strings
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/utils.py", line 8, in <module>
    from rapidfuzz.string_metric import levenshtein
ModuleNotFoundError: No module named 'rapidfuzz.string_metric'
```

Propose fix upstream in mindee/doctr#1176

Pull Request resolved: #1555

Reviewed By: xuzhao9

Differential Revision: D45067492

Pulled By: malfet

fbshipit-source-id: 6d4dc33f4f75f8c26e2e33648e8b6db2bcfe285c
weiwangmeta pushed a commit to pytorch/benchmark that referenced this pull request Apr 18, 2023
Summary:
As repo is incompatible with `rapidfuzz-3.0.0`:
```python
>>> import doctr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/__init__.py", line 1, in <module>
    from . import datasets, io, models, transforms, utils
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/__init__.py", line 4, in <module>
    from .recognition import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/__init__.py", line 5, in <module>
    from .zoo import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/zoo.py", line 12, in <module>
    from .predictor import RecognitionPredictor
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/__init__.py", line 6, in <module>
    from .pytorch import *  # type: ignore[misc]
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/pytorch.py", line 14, in <module>
    from ._utils import remap_preds, split_crops
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/_utils.py", line 10, in <module>
    from ..utils import merge_multi_strings
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/utils.py", line 8, in <module>
    from rapidfuzz.string_metric import levenshtein
ModuleNotFoundError: No module named 'rapidfuzz.string_metric'
```

Propose fix upstream in mindee/doctr#1176

Pull Request resolved: #1555

Reviewed By: xuzhao9

Differential Revision: D45067492

Pulled By: malfet

fbshipit-source-id: 6d4dc33f4f75f8c26e2e33648e8b6db2bcfe285c
weiwangmeta pushed a commit to pytorch/benchmark that referenced this pull request Apr 18, 2023
Summary:
As repo is incompatible with `rapidfuzz-3.0.0`:
```python
>>> import doctr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/__init__.py", line 1, in <module>
    from . import datasets, io, models, transforms, utils
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/__init__.py", line 4, in <module>
    from .recognition import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/__init__.py", line 5, in <module>
    from .zoo import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/zoo.py", line 12, in <module>
    from .predictor import RecognitionPredictor
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/__init__.py", line 6, in <module>
    from .pytorch import *  # type: ignore[misc]
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/pytorch.py", line 14, in <module>
    from ._utils import remap_preds, split_crops
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/_utils.py", line 10, in <module>
    from ..utils import merge_multi_strings
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/utils.py", line 8, in <module>
    from rapidfuzz.string_metric import levenshtein
ModuleNotFoundError: No module named 'rapidfuzz.string_metric'
```

Propose fix upstream in mindee/doctr#1176

Pull Request resolved: #1555

Reviewed By: xuzhao9

Differential Revision: D45067492

Pulled By: malfet

fbshipit-source-id: 6d4dc33f4f75f8c26e2e33648e8b6db2bcfe285c
@felixdittrich92
Copy link
Contributor

Hi @malfet thanks for your PR 👍
Issue solved in #1177 so i will close this

xuzhao9 pushed a commit to pytorch/benchmark that referenced this pull request Apr 18, 2023
Summary:
As repo is incompatible with `rapidfuzz-3.0.0`:
```python
>>> import doctr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/__init__.py", line 1, in <module>
    from . import datasets, io, models, transforms, utils
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/__init__.py", line 4, in <module>
    from .recognition import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/__init__.py", line 5, in <module>
    from .zoo import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/zoo.py", line 12, in <module>
    from .predictor import RecognitionPredictor
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/__init__.py", line 6, in <module>
    from .pytorch import *  # type: ignore[misc]
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/pytorch.py", line 14, in <module>
    from ._utils import remap_preds, split_crops
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/_utils.py", line 10, in <module>
    from ..utils import merge_multi_strings
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/utils.py", line 8, in <module>
    from rapidfuzz.string_metric import levenshtein
ModuleNotFoundError: No module named 'rapidfuzz.string_metric'
```

Propose fix upstream in mindee/doctr#1176

Pull Request resolved: #1555

Reviewed By: xuzhao9

Differential Revision: D45067492

Pulled By: malfet

fbshipit-source-id: 6d4dc33f4f75f8c26e2e33648e8b6db2bcfe285c

Co-authored-by: Nikita Shulga <nshulga@meta.com>
facebook-github-bot pushed a commit to pytorch/benchmark that referenced this pull request Oct 12, 2023
Summary:
Update the version of `doctr` to include the fix in mindee/doctr#1342 for BF16 mode.

Remove the change of `rapidfuzz==2.15.1` in `requirements.txt` (#1555) since the version has been set in the model repo in the updated version (mindee/doctr#1176).

Pull Request resolved: #1979

Reviewed By: aaronenyeshi

Differential Revision: D50242780

Pulled By: xuzhao9

fbshipit-source-id: d8ed9164d463a1217114408106b2c745431bd159
gairgeio added a commit to gairgeio/benchmark that referenced this pull request Aug 2, 2024
Summary:
As repo is incompatible with `rapidfuzz-3.0.0`:
```python
>>> import doctr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/__init__.py", line 1, in <module>
    from . import datasets, io, models, transforms, utils
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/__init__.py", line 4, in <module>
    from .recognition import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/__init__.py", line 5, in <module>
    from .zoo import *
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/zoo.py", line 12, in <module>
    from .predictor import RecognitionPredictor
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/__init__.py", line 6, in <module>
    from .pytorch import *  # type: ignore[misc]
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/pytorch.py", line 14, in <module>
    from ._utils import remap_preds, split_crops
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/predictor/_utils.py", line 10, in <module>
    from ..utils import merge_multi_strings
  File "/home/nshulga/miniconda3/envs/py310/lib/python3.10/site-packages/doctr/models/recognition/utils.py", line 8, in <module>
    from rapidfuzz.string_metric import levenshtein
ModuleNotFoundError: No module named 'rapidfuzz.string_metric'
```

Propose fix upstream in mindee/doctr#1176

Pull Request resolved: pytorch/benchmark#1555

Reviewed By: xuzhao9

Differential Revision: D45067492

Pulled By: malfet

fbshipit-source-id: 6d4dc33f4f75f8c26e2e33648e8b6db2bcfe285c
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

Successfully merging this pull request may close these issues.

2 participants