Jina has a workspace variable, from which we can construct file paths. See line 93.
Currently relative imports are used which require running from the /backend directory. line , line 70
If app.py is run from the /protein_search directory by python backend/app.py then the error is thrown:
Traceback (most recent call last): File "/Users/georgeamccarthy/Documents/workspace/python/protein_search/protein_search/backend/app.py", line 20, in <module> main() File "/Users/georgeamccarthy/Documents/workspace/python/protein_search/protein_search/backend/app.py", line 9, in main fp=open("../data/samelength.csv"), FileNotFoundError: [Errno 2] No such file or directory: '../data/samelength.csv'
Jina has a workspace variable, from which we can construct file paths. See line 93.
Currently relative imports are used which require running from the
/backend
directory. line , line 70If app.py is run from the /protein_search directory by
python backend/app.py
then the error is thrown:Traceback (most recent call last): File "/Users/georgeamccarthy/Documents/workspace/python/protein_search/protein_search/backend/app.py", line 20, in <module> main() File "/Users/georgeamccarthy/Documents/workspace/python/protein_search/protein_search/backend/app.py", line 9, in main fp=open("../data/samelength.csv"), FileNotFoundError: [Errno 2] No such file or directory: '../data/samelength.csv'