Skip to content

Commit

Permalink
add message upon catching various errors to remind the user to instal…
Browse files Browse the repository at this point in the history
…l necessary Python package requirements, which may not be present if the user installed anvi'o dev before this program was added
  • Loading branch information
semiller10 committed Sep 9, 2024
1 parent 439f8d8 commit a20942a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bin/anvi-draw-kegg-pathways
Original file line number Diff line number Diff line change
Expand Up @@ -383,4 +383,12 @@ if __name__ == '__main__':
except FilesNPathsError as e:
print(e)
sys.exit(-1)

except Exception as e:
print(
"Have you installed the necessary Python package requirements for "
"`anvi-draw-kegg-pathways`? This might be the cause of the error that was encountered, "
"reported below. Run the following command in your terminal and then try rerunning the "
"program:\npip install biopython ReportLab pymupdf frontend\n"
)
print(e)
sys.exit(-1)

0 comments on commit a20942a

Please sign in to comment.