NYUCCL / psiTurk

An open platform for science on Amazon Mechanical Turk.
https://psiturk.org
MIT License
277 stars 140 forks source link

Can't Find HTML Templates #536

Closed lchen64 closed 2 years ago

lchen64 commented 2 years ago

Hi,

I'm getting this error in my logs :

RuntimeError: Missing one of the following templates: thanks-mturksubmit.html, closepopup.html. Copy these over from a freshly-created psiturk example experiment.

But it seems that my experiment folder (HumanRWT) is nested inside the psiturk folder from which I am running the shell, and the two templates in the error message are in the static folder of HumanRWT as they should be, so jinja should be able to find them... Any idea what could be wrong? Thanks!

deargle commented 2 years ago

Going to close as not a psiturk bug -- please use the google group for use questions -- but you say HumanRWT is nested inside the folder where your config.txt is, and that's not right. config.txt needs to be in the directory from which you're running the psiturk server on command -- needs to be at the same level as your /static and /templates folders.

HumanRWT
|   config.txt
|---static
|---templates
|   |   thanks-mturksubmit.html
|   |   closepopup.html
|   |   ... and more .html files ...

/HumanRWT$ psiturk server on

lchen64 commented 2 years ago

That is the exact configuration I have set up, sorry if I wasn't clear in my question. I will use the google group to follow up on this though

deargle commented 2 years ago

As the Google group user also noted, if you're using heroku, then your git repo that you're pushing to heroku also needs to be at the same level as your config.txt. You don't mention whether your logs are from heroku, but I recall from previous posts that you're using that.

lchen64 commented 2 years ago

Yeah I am. It is at the same level now but it still can't find templates somehow

On Thu, Dec 16, 2021, 10:57 PM Dave Eargle @.***> wrote:

As the Google group user also noted, if you're using heroku, then your git repo that you're pushing to heroku also needs to be at the same level as your config.txt. You don't mention whether your logs are from heroku, but I recall from previous posts that you're using that.

— Reply to this email directly, view it on GitHub https://github.com/NYUCCL/psiTurk/issues/536#issuecomment-996416971, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHBQTXTSMKIJGFU532WI3OTURKYLVANCNFSM5KHMKKCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>