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

Unable to start labelMe #1546

Open
onnxruntime-user opened this issue Feb 26, 2025 · 0 comments
Open

Unable to start labelMe #1546

onnxruntime-user opened this issue Feb 26, 2025 · 0 comments

Comments

@onnxruntime-user
Copy link

Provide environment information

Python 3.8.10

> pip list
Package             Version
------------------- -----------
annotated-types     0.7.0
beautifulsoup4      4.13.3
certifi             2025.1.31
charset-normalizer  3.4.1
click               8.1.8
colorama            0.4.6
coloredlogs         15.0.1
contourpy           1.1.1
cycler              0.12.1
filelock            3.16.1
flatbuffers         25.2.10
fonttools           4.56.0
gdown               5.2.0
humanfriendly       10.0
idna                3.10
imageio             2.35.1
imgviz              1.7.5
importlib_resources 6.4.5
kiwisolver          1.4.7
labelme             5.6.1
lazy_loader         0.4
loguru              0.7.3
matplotlib          3.7.5
mpmath              1.3.0
natsort             8.4.0
networkx            3.1
numpy               1.24.4
onnxruntime         1.19.2
osam                0.2.2
packaging           24.2
pillow              10.4.0
pip                 25.0.1
protobuf            5.29.3
pydantic            2.10.6
pydantic_core       2.27.2
pyparsing           3.1.4
PyQt5               5.15.11
PyQt5-Qt5           5.15.2
PyQt5_sip           12.15.0
pyreadline3         3.5.4
PySocks             1.7.1
python-dateutil     2.9.0.post0
PyWavelets          1.4.1
PyYAML              6.0.2
QtPy                2.4.3
requests            2.32.3
scikit-image        0.21.0
scipy               1.10.1
setuptools          56.0.0
six                 1.17.0
soupsieve           2.6
sympy               1.13.3
termcolor           2.4.0
tifffile            2023.7.10
tqdm                4.67.1
typing_extensions   4.12.2
urllib3             2.2.3
win32_setctime      1.2.0
zipp                3.20.2

What OS are you using?

Windows 10, Build 19045

Describe the Bug

When starting labelMe, the following error occurs:

Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "D:\test\venv\Scripts\labelme.exe\__main__.py", line 4, in <module>
  File "d:\test\venv\lib\site-packages\labelme\__main__.py", line 14, in <module>
    from labelme.app import MainWindow
  File "d:\test\venv\lib\site-packages\labelme\app.py", line 22, in <module>
    from labelme import ai
  File "d:\test\venv\lib\site-packages\labelme\ai\__init__.py", line 5, in <module>
    from .text_to_annotation import get_rectangles_from_texts  # NOQA: F401
  File "d:\test\venv\lib\site-packages\labelme\ai\text_to_annotation.py", line 10, in <module>
    model: str, image: np.ndarray, texts: list[str]
TypeError: 'type' object is not subscriptable

Expected Behavior

The application should start.

To Reproduce

The issue occurs with labelMe 5.6.0 or newer. Neither command line nor .exe works.

Steps:

> python -m venv venv
> .\venv\Scripts\Activate.ps1
> pip install labelme
> labelme
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