It's unable to locate my file.
No such file or directory: '/output/lemmatized_json.json'
This project outputs data at the end of the script.
import os if not os.path.exists('output'): os.makedirs('output') with open('output/lemmatized_json.json', 'w') as out_file: json.dump(data, out_file)
Then its available inside
/files for that project,
Now I run the second project where I want to access that previously saved data.
I run the project with.
floyd run --cpu2 --env default \ --data me/projects/lemmatize-json-positions/6/:model \ --message 'train embedding' 'python train_embedding.py'
And try to access the data inside it with the following code.
file = open('/output/lemmatized_json.json')
But I get the above errer
No such file or directory: 'No such file or directory: '/output/lemmatized_json.json'.
And I'm not sure what I'm missing.