Azure / Azure/azureml-examples

Argument issue

Open
#3,013 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
2k
Forks
1.7k
Avg merge
18h 18m
Merged PRs (30d)
2

Description

### Operating System

Linux

### Version Information

### Steps to reproduce

I get this error in the "Crack and Chunk Data leveraging Azure AI Document Intelligence" child job:

Traceback (most recent call last):
File "crack_and_chunk.py", line 77, in
parser.add_argument(
File "/azureml-envs/rag-embeddings/lib/python3.8/argparse.py", line 1386, in add_argument
return self._add_action(action)
File "/azureml-envs/rag-embeddings/lib/python3.8/argparse.py", line 1749, in _add_action
self._optionals._add_action(action)
File "/azureml-envs/rag-embeddings/lib/python3.8/argparse.py", line 1590, in _add_action
action = super(_ArgumentGroup, self)._add_action(action)
File "/azureml-envs/rag-embeddings/lib/python3.8/argparse.py", line 1400, in _add_action
self._check_conflict(action)
File "/azureml-envs/rag-embeddings/lib/python3.8/argparse.py", line 1539, in _check_conflict
conflict_handler(action, confl_optionals)
File "/azureml-envs/rag-embeddings/lib/python3.8/argparse.py", line 1548, in _handle_conflict_error
raise ArgumentError(action, message % conflict_string)
argparse.ArgumentError: argument --doc_intel_connection_id: conflicting option string: --doc_intel_connection_id

### Expected behavior

child job suceeds

### Actual behavior

failure (see above)

### Addition information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start in crack_and_chunk.py at line 77 and inspect the argparse definitions for the duplicate --doc_intel_connection_id option. Run the "Crack and Chunk Data leveraging Azure AI Document Intelligence" child job to reproduce the conflict, then verify that the child job succeeds without the argparse error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
cloud, machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.