# 2021.2.3 Bug: Resources not loading

**URL:** <https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712>\
**Category:** Online experiments\
**Created:** [August 27, 2021, 4:54pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712 "2021-08-27T16:54:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgeller112](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jgeller112/32/9835_2.png) [@jgeller112](https://discourse.psychopy.org/u/jgeller112)\
**Post date:** [August 27, 2021, 4:54pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/1 "2021-08-27T16:54:39Z")

</div>

URL of experiment: [BalloonAnalogRiskTask\_v7 [PsychoPy]](https://run.pavlovia.org/Jgeller112/v8_jenn/html)

Description of the problem: Resources are not loading at start-up despite being uploaded in builder. This results in an unknown resources image error. This does not happen in an earlier version (V2021.1.4) as seen here: [BART\_v3\_6.22.21\_jg [PsychoPy]](https://pavlovia.org/run/Jgeller112/bart_jason/html/).

---

<div class="post-metadata">

**Author:** ![Kate\_Checknita](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/kate_checknita/32/5047_2.png) [@Kate\_Checknita](https://discourse.psychopy.org/u/Kate_Checknita)\
**Post date:** [August 27, 2021, 5:40pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/2 "2021-08-27T17:40:59Z")

</div>

Hi, I came here to also report this issue. When I go to pilot the experiment, there is no progress bar shown but I can click Ok. When I do that I get an unknown resource error. Here is the URL of my experiment: [Daniela Palombo / CBA\_TD\_E4 · GitLab](https://gitlab.pavlovia.org/Mi_Lab/cba_td_e4)

---

<div class="post-metadata">

**Author:** ![jgeller112](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jgeller112/32/9835_2.png) [@jgeller112](https://discourse.psychopy.org/u/jgeller112)\
**Post date:** [August 27, 2021, 11:43pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/3 "2021-08-27T23:43:33Z")

</div>

@Becca or @thomas_pronk any idea?

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [August 30, 2021, 8:41pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/4 "2021-08-30T20:41:15Z")

</div>

Are the resources listed in the experiment settings \> online \> additional resources box?

Becca

---

<div class="post-metadata">

**Author:** ![jgeller112](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jgeller112/32/9835_2.png) [@jgeller112](https://discourse.psychopy.org/u/jgeller112)\
**Post date:** [August 30, 2021, 8:47pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/5 "2021-08-30T20:47:10Z")

</div>

They are. That is why this is so weird!

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [August 30, 2021, 8:54pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/6 "2021-08-30T20:54:00Z")

</div>

and checking - there isn’t any chance you loaded on a mac then changed over to a windows and pushed again? (or vice versa) if so, please can you remove the resources from the box and reload

---

<div class="post-metadata">

**Author:** ![jgeller112](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jgeller112/32/9835_2.png) [@jgeller112](https://discourse.psychopy.org/u/jgeller112)\
**Post date:** [August 30, 2021, 8:56pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/7 "2021-08-30T20:56:28Z")

</div>

There probably has been some MAC/PC pushing/syncing. Can that really cause a problem?

---

<div class="post-metadata">

**Author:** ![jgeller112](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jgeller112/32/9835_2.png) [@jgeller112](https://discourse.psychopy.org/u/jgeller112)\
**Post date:** [August 30, 2021, 9:00pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/8 "2021-08-30T21:00:54Z")

</div>

Why would that cause issues for 2021.2.3 but not 2021.1.2?

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [August 30, 2021, 9:02pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/9 "2021-08-30T21:02:27Z")

</div>

Not usually (and not for a while for me), but I encountered something specifically before (although in version 2021.1.3) where I made an experiment in windows, that used back slashes when setting the paths to resources, then I sent the experiment to a mac user and when they synced it the resources couldn’t be found, so they just reloaded the resources on their builder (which used front slashes) and that fixed the issue. Please could you test if that fixes your problem? Then we will know if it is that bug rearing it’s head again.

Thanks!

---

<div class="post-metadata">

**Author:** ![jgeller112](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jgeller112/32/9835_2.png) [@jgeller112](https://discourse.psychopy.org/u/jgeller112)\
**Post date:** [August 30, 2021, 10:32pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/10 "2021-08-30T22:32:43Z")

</div>

I finally got it working by starting over from a clean work folder: [BalloonAnalogRiskTask\_v8 [PsychoPy]](https://run.pavlovia.org/Jgeller112/new_bart_jenn) and here is the Gitlab page: [Jason Geller / New\_BART\_Jenn · GitLab](https://gitlab.pavlovia.org/Jgeller112/new_bart_jenn). However, resources are still not loading at the start. Is that something new? I do not see that a resources folder was made either when adding new resources.

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [September 1, 2021, 8:09am UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/11 "2021-09-01T08:09:19Z")

</div>

A resources folder shouldn’t be made any more no (if you are refering to html). I see what you mean about not seeing the resources load. I wonder if that is either because of the different background colour for the task or because there are so few resources to load - I’ll investigate.

Pleased you got it working though,  
Becca

---

<div class="post-metadata">

**Author:** ![jayz](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jayz](https://discourse.psychopy.org/u/jayz)\
**Post date:** [September 1, 2021, 9:12am UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/12 "2021-09-01T09:12:02Z")

</div>

Hi,  
I had the same issue after upgrading (see previous post on this forum) with allas no elegant solution. The thing that ‘solved’ it for me was to clear all hidden files and reprogram the entire experiment in the latest Psychopy version 2021.2.3. Not really a solution but may be more time saving then trying to fix this weird bug?

---

<div class="post-metadata">

**Author:** ![dbryce](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dbryce/32/13899_2.png) [@dbryce](https://discourse.psychopy.org/u/dbryce)\
**Post date:** [September 1, 2021, 12:10pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/13 "2021-09-01T12:10:51Z")

</div>

Hello,  
I also seem to have this problem online with an experiment that worked previously and worked locally on psychopy. The resources bar seems to partly load then stop, but I can press ok to continue with the experiment. Then I get a message than an image is undefined. (No switching between Mac and Windows here.)  
Thankful for any help!

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [September 1, 2021, 12:21pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/14 "2021-09-01T12:21:15Z")

</div>

OK thank-you all for reporting this. Please can I also check if this error occurs when you use experiment settings \> use version \> select the version the task was made in and resync

Thanks  
Becca

---

<div class="post-metadata">

**Author:** ![dbryce](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dbryce/32/13899_2.png) [@dbryce](https://discourse.psychopy.org/u/dbryce)\
**Post date:** [September 1, 2021, 12:57pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/15 "2021-09-01T12:57:24Z")

</div>

Hi, reverting to the older version (2021.2.0) solved the resource loading issue - the bar goes to the end as normal. But I still got an error message:  
when setting the image of ImageStim: P5  
TypeError: r is undefined  
I don’t know what r is, and it is possible this is a different issue to do with my code.  
I set one of the images to ‘undefined’ intentionally, when I don’t want an image presented in that component. This used to work fine but might be a problem now? Any other ideas to present an ‘empty’ image component?  
Thanks! Donna

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [September 1, 2021, 1:00pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/16 "2021-09-01T13:00:33Z")

</div>

Aha ok - to check if that is the issue in your case I would suggest setting the position of the image to be wildly offscreen in those cases (but use an actual placeholder image rather than undefined - I suspect using reserved JS terms _might_ cause issue). If you still encounter issues with that specifically - please can you start a new thread? as it sounds like it could also be a separate thing going on.

Thanks,  
Becca

---

<div class="post-metadata">

**Author:** ![apitiot](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@apitiot](https://discourse.psychopy.org/u/apitiot)\
**Post date:** [September 1, 2021, 3:31pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/17 "2021-09-01T15:31:11Z")

</div>

Good evening everyone,

I am looking into the matter. I made a few changes to the downloading of resources for the latest version but am surprised that it would have affected you in this manner.  
@jgeller112 Would you mind giving new\_bart\_jenn another go? I was not able to reproduce your issue on my end but I made a change all the same, which might solve it on yours.  
In the mean time, I’ll keep digging.

Alain

---

<div class="post-metadata">

**Author:** ![jgeller112](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jgeller112/32/9835_2.png) [@jgeller112](https://discourse.psychopy.org/u/jgeller112)\
**Post date:** [September 1, 2021, 3:43pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/18 "2021-09-01T15:43:20Z")

</div>

The resources are now being downloaded! Weird.

---

<div class="post-metadata">

**Author:** ![apitiot](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@apitiot](https://discourse.psychopy.org/u/apitiot)\
**Post date:** [September 1, 2021, 4:42pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/19 "2021-09-01T16:42:46Z")

</div>

I am very glad to hear it!  
All the same, there might be a particular network configuration that brings out the issue, so I shall keep digging.

Alain

---

<div class="post-metadata">

**Author:** ![Tegan](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@Tegan](https://discourse.psychopy.org/u/Tegan)\
**Post date:** [September 6, 2021, 2:01pm UTC](https://discourse.psychopy.org/t/2021-2-3-bug-resources-not-loading/24712/20 "2021-09-06T14:01:45Z")

</div>

Hi,

I’ve just created a post about this as I’m having the same problem: [https://discourse.psychopy.org/t/unknown-resource-error-when-importing-conditions-after-updating-psychopy/24848](https://discourse.psychopy.org/t/unknown-resource-error-when-importing-conditions-after-updating-psychopy/24848)

I’ve also tried what Becca suggested (to run using an older version) and it works again. Do you have any further suggestions for what I can try to get the resources to load in the latest version?

Thanks a lot,

Tegan
