# Stuck on initializing

**URL:** <https://discourse.psychopy.org/t/stuck-on-initializing/39574>\
**Category:** Online experiments\
**Created:** [April 11, 2024, 7:30pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574 "2024-04-11T19:30:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emma2496](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@Emma2496](https://discourse.psychopy.org/u/Emma2496)\
**Post date:** [April 11, 2024, 7:30pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/1 "2024-04-11T19:30:26Z")

</div>

URL of experiment: [Pavlovia](https://pavlovia.org/Emma2496/tmt_v2)

Description of the problem: My experiment won’t progress past initializing. I’ve tried to use the developer tool to find the error, but I couldn’t see a mistake. I’ve looked at similar threads, but I’m a novice in coding, and it’s like reading another language.

---

<div class="post-metadata">

**Author:** ![Chen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chen/32/38825_2.png) [@Chen](https://discourse.psychopy.org/u/Chen)\
**Post date:** [April 12, 2024, 7:30am UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/2 "2024-04-12T07:30:11Z")

</div>

Hello,  
Your experiment is private therefore we cannot access and troubleshoot the problem.

Chen

---

<div class="post-metadata">

**Author:** ![Emma2496](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@Emma2496](https://discourse.psychopy.org/u/Emma2496)\
**Post date:** [April 12, 2024, 1:11pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/3 "2024-04-12T13:11:25Z")

</div>

Sorry about that. It’s public now.

---

<div class="post-metadata">

**Author:** ![Syma](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Syma](https://discourse.psychopy.org/u/Syma)\
**Post date:** [April 12, 2024, 4:20pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/4 "2024-04-12T16:20:53Z")

</div>

I have a problem. My experiment runs fine on PsychoPy locally, but it does not run online. It never surpasses the screen “initialising the experiment…”. I do not receive any error message, it just does not run. I am using PsychoPy v2023.2. on MacBook Pro. Could you help me plz?  
Thank you in advance,  
Sama

---

<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:** [April 12, 2024, 7:18pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/5 "2024-04-12T19:18:09Z")

</div>

There are lots of possible reasons for this, which would be narrowed down by finding the error message.

[https://psychopy.org/online/psychoJSCodingDebugging.html](https://psychopy.org/online/psychoJSCodingDebugging.html)

---

<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:** [April 12, 2024, 7:23pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/6 "2024-04-12T19:23:26Z")

</div>

Developer tools says `trail_making_v2.js` is not found because your JS file is called TMT\_V2

> [@Stuck on Initializing Screen](https://discourse.psychopy.org/t/stuck-on-initializing-screen/38423):
>
> URL of experiment: [Sign in · GitLab](https://gitlab.pavlovia.org/ep110/iowa_gambling_4choice_hcombined) Description of the problem: Though the experiment runs fine offline on PsychoPy, it gets stuck on an ‘initializing’ screen when running online on Pavlovia. Based on my research, it seems like it is probably an error in the JS code, but the developer tools have been unhelpful in finding the actually error. The error I get is: Failed to load resource: the server responded with a status of 404 (). There are no loaded in Python packages that seem to be a common i…

> [@Initalising experiment doesn't load](https://discourse.psychopy.org/t/initalising-experiment-doesnt-load/38710):
>
> URL of experiment:[Pavlovia](https://pavlovia.org/cpott003/value_of_information_new) Description of the problem: Hi there, I’ve created an experiment in builder and have had confirmation that it has synced to a project on my dashboard. The experiment status is set to ‘piloting’ but when I go to run the experiment it holds on the ‘initalising’ screen. So far I’ve: ensured that the name of the experiment and settings are the same uploaded all the relevant files to GitLab checked the paths from my local file structure to the experiment. Reviewed t…

> [@Pavolvia experiment stuck on "initialising..."](https://discourse.psychopy.org/t/pavolvia-experiment-stuck-on-initialising/38545):
>
> Hi All, I have a very simple experiment that I built in Builder, where people just have to give simple responses to a series of colour patches. I pushed it to Pavlovia and when I try to run it in Piloting mode it doesn’t run, it just gets stuck on “initializing…” I’ve seen that many people have had the same problem. one solution that seems to come up is to debug the java script, however I don’t know how to program in Java. Is there not a user friendly solution to this issue? Many thanks!

> [@Pavlovia doesn't detect the platform and version and experiment errors](https://discourse.psychopy.org/t/pavlovia-doesnt-detect-the-platform-and-version-and-experiment-errors/37555):
>
> URL of experiment: Description of the problem: When synced to pavlovia any projects I make do not report the platform and version on the pavlovia project page. however the JS ( I have made the simplest experiment to exercise this ) The JS code does script the import { core, data, sound, util, visual, hardware } from './lib/psychojs-2023.2.2.js'; so I think the change is being detected from builder each time I sync. When I pilot the experiment I get a page saying “initialising” and the bro…

---

<div class="post-metadata">

**Author:** ![Syma](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Syma](https://discourse.psychopy.org/u/Syma)\
**Post date:** [April 13, 2024, 12:10am UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/7 "2024-04-13T00:10:20Z")

</div>

I do not have any errors marked. It is just stuck in initializing. How can I inspect the errors? By the way, I do not have any customized codes.

---

<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:** [April 13, 2024, 6:45am UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/8 "2024-04-13T06:45:16Z")

</div>

Developer Tools¶  
Use Developer Tools (Ctl-Shift-I in Windows/Chrome, Cmd-Opt-J or Cmd-Opt-I in Mac/Chrome, F12 in IE/Edge, Ctrl-Shift-J in Windows/Safari, Ctrl-Opt-J in Mac/Safari) to view errors via the browser console if you aren’t getting sufficient information from PsychoPy. You can also add print(X) (which translates to console.log(X); where X refers to the name of your variable) to check the value of a variable X at a particular poin

---

<div class="post-metadata">

**Author:** ![Syma](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Syma](https://discourse.psychopy.org/u/Syma)\
**Post date:** [April 13, 2024, 8:50am UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/9 "2024-04-13T08:50:57Z")

</div>

> [@wakecarter](#):
>
> Cmd-Opt-

Thank you so much for your help. I did what you told me, and I have this message now: Failed to load resource: the server responded with a status of 404 (). I do not know what to do to solve this issue.  
Thank you in advance,

---

<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:** [April 13, 2024, 9:01am UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/10 "2024-04-13T09:01:02Z")

</div>

Which resource did it fail to load?

---

<div class="post-metadata">

**Author:** ![Syma](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Syma](https://discourse.psychopy.org/u/Syma)\
**Post date:** [April 13, 2024, 5:05pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/11 "2024-04-13T17:05:13Z")

</div>

I am sorry for this delay. I have attached a screenshot.

 ![Screenshot 2024-04-13 at 4.43.18 AM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/6/d/6d3e403fb1965c011816feba1bd3855499e0b116.png)

---

<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:** [April 13, 2024, 6:54pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/12 "2024-04-13T18:54:51Z")

</div>

I am fairly sure you have the same issue as Emma.

What are the names of the JS files in your repository?

What is the name of the experiment in Experiment Settings?

---

<div class="post-metadata">

**Author:** ![Syma](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Syma](https://discourse.psychopy.org/u/Syma)\
**Post date:** [April 13, 2024, 7:31pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/13 "2024-04-13T19:31:00Z")

</div>

Here’s a screenshot for them

 ![expriemnt setting](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/3/6/365934e70ccac9cb606842b137d593b93c28947b.jpeg)  
 ![repository](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/2/3/236139713f415b9ada8eb9f4fd09b20058355717.png)

---

<div class="post-metadata">

**Author:** ![Syma](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Syma](https://discourse.psychopy.org/u/Syma)\
**Post date:** [April 13, 2024, 7:32pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/14 "2024-04-13T19:32:43Z")

</div>

Also, this is the local name on my device: experiement1.psyexp

---

<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:** [April 13, 2024, 7:35pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/15 "2024-04-13T19:35:50Z")

</div>

> [@Syma](#):
>
> experiement1

In Builder

Experiment Settings

Change the experiment name to experiement1

Resync

---

<div class="post-metadata">

**Author:** ![Syma](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Syma](https://discourse.psychopy.org/u/Syma)\
**Post date:** [April 13, 2024, 7:42pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/16 "2024-04-13T19:42:03Z")

</div>

You mean like that?  
 ![Screenshot 2024-04-13 at 3.40.55 PM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/9/6/966d9f44e0db3887d0abd8c45565c1c132986a92.png)  
I am sorry. This is the first time I have used those programs. I do really appreciate your time.

---

<div class="post-metadata">

**Author:** ![Syma](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Syma](https://discourse.psychopy.org/u/Syma)\
**Post date:** [April 13, 2024, 7:50pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/17 "2024-04-13T19:50:58Z")

</div>

I noticed something weird. When I piolt my experiment 1 in Povalvia, it runs as “exp2”!!  
I tried to do it many times, but it’s the same every time. Do you think this is the reason for my issue?

Thank you again,

---

<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:** [April 13, 2024, 9:55pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/18 "2024-04-13T21:55:13Z")

</div>

[Experiment settings — PsychoPy v3.0](https://psychopy-hoechenberger.readthedocs.io/en/latest/builder/settings.html#:~:text=The%20settings%20menu%20can%20be,data%20files))%20will%20be%20generated.

---

<div class="post-metadata">

**Author:** ![Syma](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Syma](https://discourse.psychopy.org/u/Syma)\
**Post date:** [April 14, 2024, 5:22pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/19 "2024-04-14T17:22:41Z")

</div>

Thank you so much for your assistance. It finally ran online. However, I encountered this problem immediately. "WelcomeClock is not defined. I do not use any costumed codes i

 ![Screenshot 2024-04-14 at 1.16.04 PM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/4/a/4a94ebc879e30094d6f171bd24da695d2266fb64.png)  
 ![Screenshot 2024-04-14 at 1.15.21 PM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/8/3/83dcdae7ffba1544a74812e568ee72c076abbcbe.png)  
n my experiment. I assign Space to proceed. Any clue about what I can do to overcome this?  
Best regards,

---

<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:** [April 14, 2024, 5:45pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing/39574/20 "2024-04-14T17:45:03Z")

</div>

WelcomeClock sounds like it has been defined in code using WelcomeClock = core.Clock(). Prior to 2024.1 that needs to be manually translated to JS as WelcomeClock= new util.Clock() by switching the code component to Both.

Click on the link to line 1213 in experiment1.js to find out where the line is.

[Next page](https://discourse.psychopy.org/t/stuck-on-initializing/39574.md?page=2)
