This repository was archived by the owner on Aug 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
bug: missing 1 required positional argument: 'branch_name' #694
Copy link
Copy link
Open
Description
Provide environment information
System Information:
System: Windows
Release: 10
Machine: AMD64
Processor: Intel64 Family 6 Model 141 Stepping 1, GenuineIntel
Python: 3.10.14 | packaged by Anaconda, Inc. | (main, May 6 2024, 19:44:50) [MSC v.1916 64 bit (AMD64)]
CPU Info:
Physical cores: 8
Total cores: 16
Total CPU Usage: 5.5%
Memory Information:
Total: 15.65GB
Available: 5.16GB
Used: 10.49GB
Describe the bug
When I want to initialize a project from my local file system using the command encord-active init -n inspection ./
I receive an error saying that a required argument 'branch_name' is missing. Nowhere can I find that argument. Is it something in the code that is missing?
Importing data: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████| 1689/1689 [00:05<00:00, 303.12it/s]
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Users\nickd\anaconda3\envs\encord\lib\site-packages\encord_active\cli\main.py:346 in │
│ import_local_project │
│ │
│ 343 │ │ project_name = f"[EA] {root.name}" │
│ 344 │ │
│ 345 │ try: │
│ ❱ 346 │ │ project_path = init_local_project( │
│ 347 │ │ │ files=data_result.matched, │
│ 348 │ │ │ target=target, │
│ 349 │ │ │ project_name=project_name, │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ AreaMetric = <class │ │
│ │ 'encord_active.lib.metrics.heuristic.img_features.AreaMetri… │ │
│ │ Choice = <class 'InquirerPy.base.control.Choice'> │ │
│ │ data_glob = ['**/*.jpg', '**/*.png', '**/*.jpeg', '**/*.tiff'] │ │
│ │ data_result = GlobResult( │ │
│ │ │ matched=[ │ │
│ │ │ │ │ │
│ │ WindowsPath('images/0015a072-ad08-46e4-924f-e5415a755d91_50… │ │
│ │ │ │ │ │
│ │ WindowsPath('images/00556493-e320-4b3a-8ada-bf969e78842c_0-… │ │
│ │ │ │ │ │
│ │ WindowsPath('images/006f0c7e-9502-4e3b-9f54-b04589da2f56_10… │ │
│ │ │ │ │ │
│ │ WindowsPath('images/009d361f-8fed-4b39-b927-c8fc68fd322b_85… │ │
│ │ │ │ │ │
│ │ WindowsPath('images/00ca0381-2e8c-4a61-aef9-46188204f677_10… │ │
│ │ │ │ │ │
│ │ WindowsPath('images/00ea897c-0c3b-4f0e-8ca8-13464bc7f942_0-… │ │
│ │ │ │ │ │
│ │ WindowsPath('images/00ecd854-3b94-4426-aaac-f6a5a79fc755_40… │ │
│ │ │ │ │ │
│ │ WindowsPath('images/011e913e-6d62-489b-a5b5-297155683cea_67… │ │
│ │ │ │ │ │
│ │ WindowsPath('images/0137ece1-8bee-494d-86f4-2364fb382099_98… │ │
│ │ │ │ │ │
│ │ WindowsPath('images/01adb10a-3921-4a66-bd57-d045eefc8a0d_75… │ │
│ │ │ │ ... +1679 │ │
│ │ │ ], │ │
│ │ │ excluded=[] │ │
│ │ ) │ │
│ │ dryrun = False │ │
│ │ EmbeddingType = <enum 'EmbeddingType'> │ │
│ │ file_glob = <function file_glob at 0x0000018315E77880> │ │
│ │ i = <module 'InquirerPy.inquirer' from │ │
│ │ 'C:\\Users\\nickd\\anaconda3\\envs\\encord\\lib\\site-packa… │ │
│ │ init_local_project = <function init_local_project at 0x0000018315EA2560> │ │
│ │ label_glob = [] │ │
│ │ label_result = [] │ │
│ │ load_transformers_from_module = <function load_transformers_from_module at │ │
│ │ 0x0000018315E4EE60> │ │
│ │ metrics = True │ │
│ │ NoFilesFoundError = <class 'encord_active.lib.project.local.NoFilesFoundError'> │ │
│ │ OntologyStructure = <class │ │
│ │ 'encord.objects.ontology_structure.OntologyStructure'> │ │
│ │ project_name = 'inspection' │ │
│ │ ProjectExistsError = <class 'encord_active.lib.project.local.ProjectExistsError'> │ │
│ │ ProjectFileStructure = <class │ │
│ │ 'encord_active.lib.project.project_file_structure.ProjectFi… │ │
│ │ root = WindowsPath('.') │ │
│ │ run_metrics = <function run_metrics at 0x0000018315E77130> │ │
│ │ run_metrics_by_embedding_type = <function run_metrics_by_embedding_type at │ │
│ │ 0x0000018315E76F80> │ │
│ │ selected_transformer = None │ │
│ │ symlinks = False │ │
│ │ target = WindowsPath('C:/Users/nickd/OneDrive - Viu │ │
│ │ More/Projecten/Viridor/Gasbottles/data/datasets/DryRecyclin… │ │
│ │ transformer = None │ │
│ │ transformer_instance = None │ │
│ │ TransformerResult = <class │ │
│ │ 'encord_active.lib.labels.label_transformer.TransformerResu… │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\nickd\anaconda3\envs\encord\lib\site-packages\encord_active\lib\project\local.py:108 in │
│ init_local_project │
│ │
│ 105 │ │
│ 106 │ empty_structure = OntologyStructure() │
│ 107 │ ontology = client.create_ontology(title=project_name, description="", structure=empt │
│ ❱ 108 │ project = client.create_project( │
│ 109 │ │ project_title=project_name, │
│ 110 │ │ description="", │
│ 111 │ │ dataset_hashes=[dataset.dataset_hash], │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ client = <encord_active.lib.encord.local_sdk.LocalUserClient object at │ │
│ │ 0x0000018315AC35B0> │ │
│ │ dataset = <encord_active.lib.encord.local_sdk.LocalDataset object at │ │
│ │ 0x000001831602D870> │ │
│ │ empty_structure = OntologyStructure(objects=[], classifications=[], skeleton_templates={}) │ │
│ │ file = WindowsPath('images/rszd_20200504-135622881228_img_png.rf.4a16173c0f179… │ │
│ │ files = [ │ │
│ │ │ │ │
│ │ WindowsPath('images/0015a072-ad08-46e4-924f-e5415a755d91_505-223_png.rf… │ │
│ │ │ │ │
│ │ WindowsPath('images/00556493-e320-4b3a-8ada-bf969e78842c_0-1024_png.rf.… │ │
│ │ │ │ │
│ │ WindowsPath('images/006f0c7e-9502-4e3b-9f54-b04589da2f56_1024-286_png.r… │ │
│ │ │ │ │
│ │ WindowsPath('images/009d361f-8fed-4b39-b927-c8fc68fd322b_855-1024_png.r… │ │
│ │ │ │ │
│ │ WindowsPath('images/00ca0381-2e8c-4a61-aef9-46188204f677_1024-560_png.r… │ │
│ │ │ │ │
│ │ WindowsPath('images/00ea897c-0c3b-4f0e-8ca8-13464bc7f942_0-0_png.rf.986… │ │
│ │ │ │ │
│ │ WindowsPath('images/00ecd854-3b94-4426-aaac-f6a5a79fc755_402-940_png.rf… │ │
│ │ │ │ │
│ │ WindowsPath('images/011e913e-6d62-489b-a5b5-297155683cea_676-299_png.rf… │ │
│ │ │ │ │
│ │ WindowsPath('images/0137ece1-8bee-494d-86f4-2364fb382099_989-648_png.rf… │ │
│ │ │ │ │
│ │ WindowsPath('images/01adb10a-3921-4a66-bd57-d045eefc8a0d_755-101_png.rf… │ │
│ │ │ ... +1679 │ │
│ │ ] │ │
│ │ label_paths = [] │ │
│ │ label_transformer = None │ │
│ │ ontology = LocalOntology( │ │
│ │ │ ontology_hash='daa7ae77-344b-4932-a506-9ae6bc1c99d5', │ │
│ │ │ title='inspection', │ │
│ │ │ description='', │ │
│ │ │ structure=OntologyStructure( │ │
│ │ │ │ objects=[], │ │
│ │ │ │ classifications=[], │ │
│ │ │ │ skeleton_templates={} │ │
│ │ │ ) │ │
│ │ ) │ │
│ │ project_name = 'inspection' │ │
│ │ project_path = WindowsPath('C:/Users/nickd/OneDrive - Viu │ │
│ │ More/Projecten/Viridor/Gasbottles/data/datasets/DryRecycling/HQ/v19/tra… │ │
│ │ symlinks = False │ │
│ │ target = WindowsPath('C:/Users/nickd/OneDrive - Viu │ │
│ │ More/Projecten/Viridor/Gasbottles/data/datasets/DryRecycling/HQ/v19/tra… │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\nickd\anaconda3\envs\encord\lib\site-packages\encord_active\lib\encord\local_sdk.py:487 │
│ in create_project │
│ │
│ 484 │ │ ontology = self.get_ontology(ontology_hash) │
│ 485 │ │ datasets = list(map(self.get_dataset, dataset_hashes)) │
│ 486 │ │ │
│ ❱ 487 │ │ project = LocalProject( │
│ 488 │ │ │ data_path=self.data_path, │
│ 489 │ │ │ title=project_title, │
│ 490 │ │ │ description=description, │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ dataset_hashes = ['15a8453e-6056-4182-b791-8ca9a9fd18d9'] │ │
│ │ datasets = [ │ │
│ │ │ <encord_active.lib.encord.local_sdk.LocalDataset object at │ │
│ │ 0x000001831602D870> │ │
│ │ ] │ │
│ │ description = '' │ │
│ │ ontology = LocalOntology( │ │
│ │ │ ontology_hash='daa7ae77-344b-4932-a506-9ae6bc1c99d5', │ │
│ │ │ title='inspection', │ │
│ │ │ description='', │ │
│ │ │ structure=OntologyStructure( │ │
│ │ │ │ objects=[], │ │
│ │ │ │ classifications=[], │ │
│ │ │ │ skeleton_templates={} │ │
│ │ │ ) │ │
│ │ ) │ │
│ │ ontology_hash = 'daa7ae77-344b-4932-a506-9ae6bc1c99d5' │ │
│ │ project_title = 'inspection' │ │
│ │ self = <encord_active.lib.encord.local_sdk.LocalUserClient object at │ │
│ │ 0x0000018315AC35B0> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\nickd\anaconda3\envs\encord\lib\site-packages\encord_active\lib\encord\local_sdk.py:321 │
│ in __init__ │
│ │
│ 318 │ │ │
│ 319 │ │ self._project_file_structure = project_file_structure │
│ 320 │ │ │
│ ❱ 321 │ │ self._populate_label_row_meta() │
│ 322 │ │
│ 323 │ @property │
│ 324 │ def ontology(self) -> dict: │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ data_path = WindowsPath('C:/Users/nickd/OneDrive - Viu │ │
│ │ More/Projecten/Viridor/Gasbottles/data/datasets/DryRecycling/HQ/v1… │ │
│ │ datasets = [ │ │
│ │ │ <encord_active.lib.encord.local_sdk.LocalDataset object at │ │
│ │ 0x000001831602D870> │ │
│ │ ] │ │
│ │ description = '' │ │
│ │ ontology = LocalOntology( │ │
│ │ │ ontology_hash='daa7ae77-344b-4932-a506-9ae6bc1c99d5', │ │
│ │ │ title='inspection', │ │
│ │ │ description='', │ │
│ │ │ structure=OntologyStructure( │ │
│ │ │ │ objects=[], │ │
│ │ │ │ classifications=[], │ │
│ │ │ │ skeleton_templates={} │ │
│ │ │ ) │ │
│ │ ) │ │
│ │ project_file_structure = ProjectFileStructure(C:\Users\nickd\OneDrive - Viu │ │
│ │ More\Projecten\Viridor\Gasbottles\data\datasets\DryRecycling\HQ\v1… │ │
│ │ self = <encord_active.lib.encord.local_sdk.LocalProject object at │ │
│ │ 0x000001831602DC30> │ │
│ │ title = 'inspection' │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\nickd\anaconda3\envs\encord\lib\site-packages\encord_active\lib\encord\local_sdk.py:339 │
│ in _populate_label_row_meta │
│ │
│ 336 │ │ for dataset in self._datasets.values(): │
│ 337 │ │ │ for dr in dataset.data_rows: │
│ 338 │ │ │ │ for du in get_data_units(dr).values(): │
│ ❱ 339 │ │ │ │ │ meta = LabelRowMetadata( │
│ 340 │ │ │ │ │ │ label_hash=dr.label_hash, │
│ 341 │ │ │ │ │ │ dataset_hash=dataset.dataset_hash, │
│ 342 │ │ │ │ │ │ dataset_title=dataset.title, │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ dataset = <encord_active.lib.encord.local_sdk.LocalDataset object at 0x000001831602D870> │ │
│ │ dr = LocalDataRow( │ │
│ │ │ uid='3274f028-5c13-427b-b874-3faa58d83eb9', │ │
│ │ │ label_hash='e4df40e4-701d-42fa-9156-1fed7e9d1029', │ │
│ │ │ │ │
│ │ title='0015a072-ad08-46e4-924f-e5415a755d91_505-223_png.rf.61882ca3847e16b6249439… │ │
│ │ │ data_type=<DataType.IMAGE: 'image'>, │ │
│ │ │ media=[ │ │
│ │ │ │ DataRowMedia( │ │
│ │ │ │ │ path=WindowsPath('C:/Users/nickd/OneDrive - Viu │ │
│ │ More/Projecten/Viridor/Gasbottles/data/datasets/DryRecycling/HQ/v19/train/images/… │ │
│ │ │ │ │ uid='3274f028-5c13-427b-b874-3faa58d83eb9' │ │
│ │ │ │ ) │ │
│ │ │ ], │ │
│ │ │ created_at=datetime.datetime(2024, 6, 28, 11, 42, 56, 349910) │ │
│ │ ) │ │
│ │ du = { │ │
│ │ │ 'data_hash': '3274f028-5c13-427b-b874-3faa58d83eb9', │ │
│ │ │ 'data_title': │ │
│ │ '0015a072-ad08-46e4-924f-e5415a755d91_505-223_png.rf.61882ca3847e16b62494391d5463… │ │
│ │ │ 'data_type': 'image/jpeg', │ │
│ │ │ 'data_sequence': 0, │ │
│ │ │ 'labels': {'objects': [], 'classifications': []}, │ │
│ │ │ 'data_link': 'C:/Users/nickd/OneDrive - Viu │ │
│ │ More/Projecten/Viridor/Gasbottles/data/datasets/Dr'+119, │ │
│ │ │ 'width': 1024, │ │
│ │ │ 'height': 1024 │ │
│ │ } │ │
│ │ self = <encord_active.lib.encord.local_sdk.LocalProject object at 0x000001831602DC30> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: LabelRowMetadata.__init__() missing 1 required positional argument: 'branch_name'
To reproduce
encord-active init -n inspection ./
Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels