Skip to content

Doesnt work on MacOS #924

Description

@pzoltowski

Search before asking

  • I have searched the X-AnyLabeling issues and found no similar bug report.

X-AnyLabeling Component

Install

Bug

I did follow the whole install instruction but did struggle to make it work on MacOS (15.4.1). I think also would be good to provide some docker since installation instruction is very messy

python anylabeling/app.py
objc[47469]: Class QMacAutoReleasePoolTracker is implemented in both /Users/patryk/miniconda3/envs/x-anylabeling/lib/libQt5Core.5.15.2.dylib (0x10477d340) and /Users/patryk/miniconda3/envs/x-anylabeling/lib/python3.10/site-packages/PyQt5/Qt5/lib/QtCore.framework/Versions/5/QtCore (0x12ba9d200). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[47469]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /Users/patryk/miniconda3/envs/x-anylabeling/lib/libQt5Core.5.15.2.dylib (0x10477d3b8) and /Users/patryk/miniconda3/envs/x-anylabeling/lib/python3.10/site-packages/PyQt5/Qt5/lib/QtCore.framework/Versions/5/QtCore (0x12ba9d278). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[47469]: Class KeyValueObserver is implemented in both /Users/patryk/miniconda3/envs/x-anylabeling/lib/libQt5Core.5.15.2.dylib (0x10477d3e0) and /Users/patryk/miniconda3/envs/x-anylabeling/lib/python3.10/site-packages/PyQt5/Qt5/lib/QtCore.framework/Versions/5/QtCore (0x12ba9d2a0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[47469]: Class RunLoopModeTracker is implemented in both /Users/patryk/miniconda3/envs/x-anylabeling/lib/libQt5Core.5.15.2.dylib (0x10477d430) and /Users/patryk/miniconda3/envs/x-anylabeling/lib/python3.10/site-packages/PyQt5/Qt5/lib/QtCore.framework/Versions/5/QtCore (0x12ba9d2f0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[47469]: Class QCocoaPageLayoutDelegate is implemented in both /Users/patryk/miniconda3/envs/x-anylabeling/lib/python3.10/site-packages/PyQt5/Qt5/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport (0x11ed35168) and /Users/patryk/miniconda3/envs/x-anylabeling/lib/libQt5PrintSupport.5.15.2.dylib (0x1296651f8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[47469]: Class QCocoaPrintPanelDelegate is implemented in both /Users/patryk/miniconda3/envs/x-anylabeling/lib/python3.10/site-packages/PyQt5/Qt5/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport (0x11ed351e0) and /Users/patryk/miniconda3/envs/x-anylabeling/lib/libQt5PrintSupport.5.15.2.dylib (0x129665270). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
2025-05-01 16:59:20,075 | INFO    | app:main:165 - 🚀 X-AnyLabeling v3.0.0 launched!
2025-05-01 16:59:20,075 | INFO    | app:main:168 - ⭐ If you like it, give us a star: https://github.com/CVHub520/X-AnyLabeling
2025-05-01 16:59:20,085 | WARNING | config:update_dict:18 - Skipping unexpected key in config: save_mode
2025-05-01 16:59:20,085 | INFO    | config:get_config:83 - 🔧️ Initializing config from local file: /Users/patryk/.xanylabelingrc
QObject::moveToThread: Current thread (0x60000079c2d0) is not the object's thread (0x6000007815a0).
Cannot move to target thread (0x60000079c2d0)

You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: cocoa, minimal, offscreen, webgl.

zsh: abort      python anylabeling/app.py

Information

python anylabeling/checks.py
Traceback (most recent call last):
File "/Users/patryk/Developer/tools/X-AnyLabeling/anylabeling/checks.py", line 4, in
from views.labeling.utils.general import (
File "/Users/patryk/Developer/tools/X-AnyLabeling/anylabeling/views/labeling/utils/init.py", line 3, in
from .batch import run_all_images
File "/Users/patryk/Developer/tools/X-AnyLabeling/anylabeling/views/labeling/utils/batch.py", line 18, in
from anylabeling.views.labeling.label_file import io_open
File "/Users/patryk/Developer/tools/X-AnyLabeling/anylabeling/views/labeling/label_file.py", line 14, in
from . import utils
File "/Users/patryk/Developer/tools/X-AnyLabeling/anylabeling/views/labeling/utils/init.py", line 3, in
from .batch import run_all_images
File "/Users/patryk/Developer/tools/X-AnyLabeling/anylabeling/views/labeling/utils/batch.py", line 18, in
from anylabeling.views.labeling.label_file import io_open
ImportError: cannot import name 'io_open' from partially initialized module 'anylabeling.views.labeling.label_file' (most likely due to a circular import) (/Users/patryk/Developer/tools/X-AnyLabeling/anylabeling/views/labeling/label_file.py)

Link to a Reproducible Demonstration Video

no need video - its just command line trying to install

Execution Mode

Source Code

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingclarifiedTag for issues that are clearly agreed upon

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions