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

label_studio import json #6958

Open
WZNoone opened this issue Jan 24, 2025 · 1 comment
Open

label_studio import json #6958

WZNoone opened this issue Jan 24, 2025 · 1 comment

Comments

@WZNoone
Copy link

WZNoone commented Jan 24, 2025

(paddle) D:\A\anaconda3\envs\paddle\Lib\site-packages\label_studio\core\settings>python -m label_studio.core.settings.label_studio --label_studio_file ./label_studio.json --save_dir ./data --splits 0.8 0.1 0.1 --task_type ext
Traceback (most recent call last):
File "", line 189, in _run_module_as_main
File "", line 112, in _get_module_details
File "D:\A\anaconda3\envs\paddle\Lib\site-packages\label_studio\core\settings\label_studio.py", line 5, in
from core.settings.base import * # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'core'

@heidi-humansignal
Copy link
Collaborator

Hello,

It looks like you’re trying to launch Label Studio by running “python -m label_studio.core.settings.label_studio,” but that file isn’t meant to be run directly. That’s why you’re getting “ModuleNotFoundError: No module named 'core'.” The “core” module is inside “label_studio,” and calling it this way won’t properly pick up the internal package paths.
Here’s the recommended way to start Label Studio from your environment:

  1. Make sure Label Studio is correctly installed:

pip install label-studio
(or install it into your conda environment if necessary)
2. Run Label Studio from the command line using either of these commands:

label-studio
or

python -m label_studio
3. That’s it! The “label_studio/core/settings/label_studio.py” file is part of Label Studio’s internal code. It isn’t intended to be used as a standalone script.
If you run into any more difficulties, feel free to let us know. We’re happy to help further!

Thank you,
Abu

Comment by Abubakar Saad
Workflow Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants