BUG: Remove non-existing version keyword parameter in script argparser#173
Merged
ljod merged 1 commit intoSlicerDMRI:masterfrom Oct 19, 2023
Merged
Conversation
5dc2d62 to
287f90d
Compare
Contributor
Author
60acdc1 to
d6742ab
Compare
Remove non-existing `version` keyword parameter in script argument
parser object instantiation.
Fixes:
```
Traceback (most recent call last):
File ".virtualenvs/wma/lib/python3.8/site-packages/pytest_console_scripts/__init__.py", line 319, in exec_script
exec(compiled, {'__name__': '__main__'})
File ".virtualenvs/wma/bin/wm_flatten_length_distribution.py", line 4, in <module>
__import__('pkg_resources').run_script('whitematteranalysis==0.3.0', 'wm_flatten_length_distribution.py')
File ".virtualenvs/wma/lib/python3.8/site-packages/pkg_resources/__init__.py", line 666, in run_script
self.require(requires)[0].run_script(script_name, ns)
File ".virtualenvs/wma/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1462, in run_script
exec(code, namespace, namespace)
File ".virtualenvs/wma/lib/python3.8/site-packages/whitematteranalysis-0.3.0-py3.8.egg/EGG-INFO/scripts/wm_flatten_length_distribution.py", line 26, in <module>
parser = argparse.ArgumentParser(
TypeError: __init__() got an unexpected keyword argument 'version'
```
and equivalent errors across scripts.
d6742ab to
743d214
Compare
version keyword parameter in script argparserversion keyword parameter in script argparser
ljod
approved these changes
Oct 19, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove non-existing
versionkeyword parameter in script argument parser object instantiation.Fixes:
and equivalent errors across scripts.