Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

get_cazyme_annotations.py CLI required arguments appear optional #35

Open
widdowquinn opened this issue Jun 24, 2020 · 0 comments
Open
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@widdowquinn
Copy link
Collaborator

On branch CAZy_annotation_summary_frst_draft I get this error:

$ python3 pyrewton/genbank/get_cazyme_annotations/get_cazyme_annotations.py
Traceback (most recent call last):
  File "pyrewton/genbank/get_cazyme_annotations/get_cazyme_annotations.py", line 624, in <module>
    main()
  File "pyrewton/genbank/get_cazyme_annotations/get_cazyme_annotations.py", line 84, in main
    input_dir_get_cazyme_annotations.check_input(args, logger)
  File "/Users/lpritc/Library/Mobile Documents/com~apple~CloudDocs/Strathclyde_Work/Projects/PhD_EASTBIO_StAndrews/PhD_Project_Scripts/pyrewton/directory_handling/input_dir_get_cazyme_annotations.py", line 40, in check_input
    if (args.df_input).is_file() is False:
AttributeError: '_io.TextIOWrapper' object has no attribute ‘is_file'

This looks like df_input is a required argument for the script (hence the test for is_file(), but is being treated as an optional argument in the parser. An appropriate fix would be to make df_input a required argument.

@widdowquinn widdowquinn added bug Something isn't working good first issue Good for newcomers labels Jun 24, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants