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

split_seqs command returns conflicting option string error #73

Open
mattxcnm opened this issue Sep 13, 2022 · 5 comments
Open

split_seqs command returns conflicting option string error #73

mattxcnm opened this issue Sep 13, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@mattxcnm
Copy link

(env) C:\Users\[project repository]>python .\env\scripts\split_seqs -h 
Traceback (most recent call last):
  File "C:\Users\[project repository]\env\scripts\split_seqs", line 70, in <module>
    parser.add_argument('-h', '--height', help='Image height', type=int, default=None)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\argparse.py", line 1441, in add_argument
    return self._add_action(action)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\argparse.py", line 1807, in _add_action
    self._optionals._add_action(action)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\argparse.py", line 1643, in _add_action
    action = super(_ArgumentGroup, self)._add_action(action)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\argparse.py", line 1455, in _add_action
    self._check_conflict(action)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\argparse.py", line 1592, in _check_conflict
    conflict_handler(action, confl_optionals)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\argparse.py", line 1601, in _handle_conflict_error
    raise ArgumentError(action, message % conflict_string)
argparse.ArgumentError: argument -h/--height: conflicting option string: -h
@jveitchmichaelis
Copy link
Contributor

jveitchmichaelis commented Sep 13, 2022

Hi, please could you provide more info about what you're trying to do?

How did you install flirpy etc - this isn't something others have reported so please try with other python versions, etc.

@mattxcnm
Copy link
Author

@jveitchmichaelis I followed the directions for pip installation of the library with pip v22.2.2 and a Python v3.10.7 virtual environment.

I ran the command python .\env\scripts\split_seqs -h from a command prompt terminal in my Python virtual environment to try and get the splitter command to display the help menu, but received the error shown above.

My goal is to use flirpy to make a 2.75TB seq file generated by a FLIR A50 to be more manageable in a coding environment.

I will try another Python version. Thanks!

@mattxcnm
Copy link
Author

mattxcnm commented Sep 14, 2022

Python 3.7.9 & PIP 20.1.1

ran python .\.env37\scripts\split_seqs -h in virtual environment

(.env37) [Repository Path]>python .\.env37\scripts\split_seqs -h 
Traceback (most recent call last):
  File ".\.env37\scripts\split_seqs", line 3, in <module>
    import flirpy.io.seq
  File "[Repository Path]\.env37\lib\site-packages\flirpy\io\seq.py", line 18, in <module>
    from flirpy.io.fff import Fff
  File "[Repository Path]\.env37\lib\site-packages\flirpy\io\fff.py", line 5, in <module>
    import six
ModuleNotFoundError: No module named 'six'

used pip3 install six

ran python .\.env37\scripts\split_seqs -h in virtual environment
Still received error:

(.env37) [Repository Path]>python .\.env37\scripts\split_seqs -h
Traceback (most recent call last):
  File ".\.env37\scripts\split_seqs", line 70, in <module>
    parser.add_argument('-h', '--height', help='Image height', type=int, default=None)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\argparse.py", line 1373, in add_argument
    return self._add_action(action)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\argparse.py", line 1736, in _add_action
    self._optionals._add_action(action)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\argparse.py", line 1577, in _add_action
    action = super(_ArgumentGroup, self)._add_action(action)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\argparse.py", line 1387, in _add_action
    self._check_conflict(action)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\argparse.py", line 1526, in _check_conflict
    conflict_handler(action, confl_optionals)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\argparse.py", line 1535, in _handle_conflict_error
    raise ArgumentError(action, message % conflict_string)
argparse.ArgumentError: argument -h/--height: conflicting option string: -h

I have Python 3.10, 3.9, 3.8, and 3.7 for other testing (All versions downloaded from Windows store, not directly from Python.org)

@jveitchmichaelis
Copy link
Contributor

jveitchmichaelis commented Sep 14, 2022

OK can you just remove the height/width lines from the script for now? The latest interface shouldn't require knowledge of image width/height (it's inferred from the image) and we don't actually use those args anywhere.

parser.add_argument('--width', help='Image width (if unspecified flirpy will attempt to infer from FFF files)', type=int, default=None)
parser.add_argument('--height', help='Image height', type=int, default=None)

@jveitchmichaelis jveitchmichaelis added the bug Something isn't working label Sep 14, 2022
@mattxcnm
Copy link
Author

@jveitchmichaelis Looks like commenting out those two lines was able to let it run. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants