clamsproject / mmif-visualizer

A web site to visualize MultiMedia Interchange Format json
Apache License 2.0
2 stars 1 forks source link

Image found when running a local server #7

Closed marcverhagen closed 1 year ago

marcverhagen commented 2 years ago

When you start the visualization server without using a Docker container and without changing the static/data symbolic link, you will get into trouble when you have no local /data directory with all the multimodal data. And this is exactly what happens when you try visualize input/kaldi-spacy.json:

FileNotFoundError: [Errno 2] No such file or directory: '/Users/marc/Desktop/projects/clams/code/clamsproject/apps/mmif-visualizer/static/data/text/cpb-aacip-507-z31ng4hp5t.part.trn'

But if you visualize input/image-example.json the server does find the file. This is obviously not a problem, but I would like to understand why this happens.

marcverhagen commented 2 years ago

The above happened on my iMac at home, on my laptop it consistently fails with the error above.

It is probably a cache-related thing.

keighrim commented 1 year ago

Yeah, it doesn't make sense to me, and you're probably right about the browser cache. This issue seems to be ready to go then.