# Resources are not downloaded in the beginning

**URL:** <https://discourse.psychopy.org/t/resources-are-not-downloaded-in-the-beginning/31346>\
**Category:** Online experiments\
**Created:** [October 13, 2022, 12:01pm UTC](https://discourse.psychopy.org/t/resources-are-not-downloaded-in-the-beginning/31346 "2022-10-13T12:01:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RayBuehler](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@RayBuehler](https://discourse.psychopy.org/u/RayBuehler)\
**Post date:** [October 13, 2022, 12:01pm UTC](https://discourse.psychopy.org/t/resources-are-not-downloaded-in-the-beginning/31346/1 "2022-10-13T12:01:25Z")

</div>

URL of experiment: [Raimund Bühler / ralt\_tewa\_mew · GitLab](https://gitlab.pavlovia.org/raimundbuehler/ralt_tewa_mew)

Description of the problem: I keep running into a “resource not found” error with my experiment. It seems not to download the resources in the beginning.

I tried to manually add all resources in the preferences → online tab and deleting the html output path, but the experiment still runs from the html folder. When deleting the html folder, it’s missing the lib folder to load psychojs, which is specified in the html file? I don’t know why it’s not creating an html file which loads psychojs from the server, but tries to locally find psychojs?

Any help would be greatly appreciated. It was running fine before, i think recreating the experiment from a different version of psychopy caused the error ☹

---

<div class="post-metadata">

**Author:** ![JensBoelte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jensboelte/32/9060_2.png) [@JensBoelte](https://discourse.psychopy.org/u/JensBoelte)\
**Post date:** [October 13, 2022, 12:11pm UTC](https://discourse.psychopy.org/t/resources-are-not-downloaded-in-the-beginning/31346/2 "2022-10-13T12:11:59Z")

</div>

Hello,

the brute-force way is

1. to delete the local html-folder (not needed in recent PsychoPY-versions),

2. delete the hidden .git-folder and .git-ignore file.

3. delete the project on Pavlovia and

4. resync to a new project.

You might have still to clear browser cache. I am not quite sure whether you really have to delete anything more than the .html-folder because I vaguely remember that this was sufficient for one of my experiments.

See also here

> [@"Unknown Resource" online, but works fine offline?](https://discourse.psychopy.org/t/unknown-resource-online-but-works-fine-offline/25793/10):
>
> I have a few minutes to write a reply now. I have one experiment still using the html folder where I have set “Use PsychoPy Version” to 2020.2.3 in Experiment Settings. For another experiment what I did was: Close the experiment in Builder. Download any existing data from Pavlovia. Delete the repository from Pavlovia. Delete the local .git folder. Delete the local html folder (after removing any files than only exist in it). Delete other unnecessary local files. Open the experiment in Builde…

Best wishes Jens

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [October 13, 2022, 12:17pm UTC](https://discourse.psychopy.org/t/resources-are-not-downloaded-in-the-beginning/31346/3 "2022-10-13T12:17:20Z")

</div>

I’ve found that deleting the entire project is no longer necessary. Most recently (earlier this week) I deleted the local html folder, removed html from Experiment Settings / Online and synced. I also set the project to inactive then active again for good measure.

---

<div class="post-metadata">

**Author:** ![RayBuehler](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@RayBuehler](https://discourse.psychopy.org/u/RayBuehler)\
**Post date:** [October 13, 2022, 12:24pm UTC](https://discourse.psychopy.org/t/resources-are-not-downloaded-in-the-beginning/31346/4 "2022-10-13T12:24:01Z")

</div>

![Screenshot 2022-10-13 at 14.22.11](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/1/3/130372a49e4918dd271102f32888abd376b6ffcf.png)

The weird thing is, when i do that, it tries to locate psychojs from the lib folder which is not created at any point. I also tried to manually add it, but it’s not uploaded on sync, because it’s in the gitignore

---

<div class="post-metadata">

**Author:** ![RayBuehler](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@RayBuehler](https://discourse.psychopy.org/u/RayBuehler)\
**Post date:** [October 13, 2022, 12:27pm UTC](https://discourse.psychopy.org/t/resources-are-not-downloaded-in-the-beginning/31346/5 "2022-10-13T12:27:19Z")

</div>

![Screenshot 2022-10-13 at 14.25.23](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/2/8/28713753ca7ef7695e4deeec62aa39e29e6395aa.png)  
The html also looks for it in the lib folder, and does not try to download it? I also tried to replace the html file by an older file from another experiment that had the URL for psychojs in it, but it didn’t work…

---

<div class="post-metadata">

**Author:** ![RayBuehler](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@RayBuehler](https://discourse.psychopy.org/u/RayBuehler)\
**Post date:** [October 13, 2022, 1:18pm UTC](https://discourse.psychopy.org/t/resources-are-not-downloaded-in-the-beginning/31346/6 "2022-10-13T13:18:28Z")

</div>

ok, i did it your way and it worked 🙂 thanks for helping out!
