ReinV / SCOPE

Search and Chemical Ontology Plotting Environment
Other
1 stars 2 forks source link

python search_query.py -i queries/ does not work for me #26

Closed magnuspalmblad closed 3 years ago

magnuspalmblad commented 3 years ago

When running the search_query.py script in my Anaconda shell (under Windows 10), I cannot run it without specifying one input file. This is how it is supposed to be, right? If so, please amend the instructions.

This is the specific error I get:

(base) C:\Users\nmpalmblad\Downloads\SCOPE-master>python search_query.py -i queries/
Traceback (most recent call last):
  File "search_query.py", line 215, in <module>
    main()
  File "search_query.py", line 206, in main
    queries = read_input(input_file)
  File "search_query.py", line 181, in read_input
    f = open(file, 'r')
PermissionError: [Errno 13] Permission denied: 'queries/'
ReinV commented 3 years ago

Indeed, an input file should be provided. This is correctly noted in the help function of the script, but not in the README file. Apparently "\" is removed in the README because it is seen as an \ argument, and I didn't notice. Should be fixed now.