# Unable to Start PsychoPy

**URL:** <https://discourse.psychopy.org/t/unable-to-start-psychopy/1842>\
**Category:** Other\
**Created:** [February 1, 2017, 8:30pm UTC](https://discourse.psychopy.org/t/unable-to-start-psychopy/1842 "2017-02-01T20:30:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmiller](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@jmiller](https://discourse.psychopy.org/u/jmiller)\
**Post date:** [February 1, 2017, 8:30pm UTC](https://discourse.psychopy.org/t/unable-to-start-psychopy/1842/1 "2017-02-01T20:30:59Z")

</div>

Hello,

I have just downloaded PsychoPy for the first time. I am using the standalone windows installation. On one of my computers I experienced no issue, but on this second computer I am having difficulty.

Unlike others who have posted before, I do not see a splash screen or an icon does no appear in my task bar. Task manager does not show any software open at all.

Here is the result of running: “C:\Program Files\PsychoPy2\python.exe” “C:\Program Files\PsychoPy2\Lib\site-packages\PsychoPy-1.84.2-py2.7.egg\psychopy\app\[psychopyApp.py](http://psychopyApp.py)”

oPy2\Lib\site-packages\PsychoPy-1.84.2-py2.7.egg\psychopy\app\[psychopyApp.py](http://psychopyApp.py)"  
Traceback (most recent call last):  
File “C:\Program Files\PsychoPy2\Lib\site-packages\PsychoPy-1.84.2-py2.7.egg\p  
sychopy\app\[psychopyApp.py](http://psychopyApp.py)”, line 10, in   
from psychopy.app._psychopyApp import PsychoPyApp, **version**  
File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\p  
sychopy\_init_.py", line 42, in   
from psychopy.preferences import prefs  
File “C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\p  
sychopy\preferences\__init_\_.py”, line 8, in   
from . import preferences as prefsLib  
File “C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\p  
sychopy\preferences\[preferences.py](http://preferences.py)”, line 232, in   
prefs = Preferences()  
File “C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\p  
sychopy\preferences\[preferences.py](http://preferences.py)”, line 42, in **init**  
self.getPaths()  
File “C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\p  
sychopy\preferences\[preferences.py](http://preferences.py)”, line 94, in getPaths  
self.paths[‘userPrefsDir’] = join(os.environ[‘APPDATA’],  
File “C:\Program Files\PsychoPy2\lib\[os.py](http://os.py)”, line 425, in **getitem**  
return self.data[key.upper()]  
KeyError: ‘APPDATA’

I am unable to find a PsychoPy2 folder in any of the App data locations on my PC. Yes I have hidden files visible.

Hope someone can provide some insight!

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [February 1, 2017, 10:11pm UTC](https://discourse.psychopy.org/t/unable-to-start-psychopy/1842/2 "2017-02-01T22:11:11Z")

</div>

That’s very weird. It suggests that the APPDATA environment variable doesn’t exist on your machine. What version of windows is this? I imagine that would cause all sorts of other problems with the computer though. :-/

If you go to a terminal and type `C:\Program Files\PsychoPy2\python.exe` you might be able to help us find an alternative way to find your appdata folder though. COuld you run these lines from the python prompt?:

```auto
from win32com.shell import shellcon, shell
print shell.SHGetFolderPath(0, shellcon.CSIDL_APPDATA, 0, 0)

```

---

<div class="post-metadata">

**Author:** ![ClementineG](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@ClementineG](https://discourse.psychopy.org/u/ClementineG)\
**Post date:** [February 2, 2017, 11:08am UTC](https://discourse.psychopy.org/t/unable-to-start-psychopy/1842/3 "2017-02-02T11:08:43Z")

</div>

Hello Everyone,

I used psychopy 1.84.2-win32 on my professional computer for months now, and suddenly today it is unable to start psychopy. I tried different tips like search if the window was hidden, but nothing work (and my personal computer had the same problem, but since the biginning)… It seems like there is something wrong with windows pc !

I tried to uninstall then install again, nothing works. Do you have any solution ?

Have a nice day,

Clémentine

PS : I don’t know if it’s the same problem in this topic, but maybe it fit.  
PSS : Sorry for my english

---

<div class="post-metadata">

**Author:** ![jmiller](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@jmiller](https://discourse.psychopy.org/u/jmiller)\
**Post date:** [February 2, 2017, 5:02pm UTC](https://discourse.psychopy.org/t/unable-to-start-psychopy/1842/4 "2017-02-02T17:02:34Z")

</div>

Thanks for helping me out with this issue jon!

This is a Windows 7 PC. I do not use it very often but it is the only PC in my office that has a parallel port at the moment. I believe it was originally a Windows Vista PC that was upgraded to Windows 7 years ago.

The lines you requested ran in python yield the following result:

C:\Users\jmiller\AppData\Roaming

It appears that python has no issue in locating but there is nothing from PsychoPy installed in that location.

Searching my entire C drive did not yield the config files that should have been present in APPDATA

---

<div class="post-metadata">

**Author:** ![jmiller](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@jmiller](https://discourse.psychopy.org/u/jmiller)\
**Post date:** [February 2, 2017, 5:06pm UTC](https://discourse.psychopy.org/t/unable-to-start-psychopy/1842/5 "2017-02-02T17:06:55Z")

</div>

Did you try “Cleaning preferences and app data”? This seems to have fixed the problem you are experiencing for most members.

[http://www.psychopy.org/troubleshooting.html#cleanprefs](http://www.psychopy.org/troubleshooting.html#cleanprefs)

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [February 3, 2017, 11:24am UTC](https://discourse.psychopy.org/t/unable-to-start-psychopy/1842/6 "2017-02-03T11:24:46Z")

</div>

OK, it isn’t a surprise that psychopy hasn’t yet put anything in that location as long as it exists. The issue, as I said, is that on your machine the environment variable APPDATA has been deleted for some reason. It should be there on all recent versions of Windows but for some reason it has been lost on your computer (I’ve no idea who or what would delete such a thing!).

Options for you are:

- create the APPDATA environment variable again
- hack psychopy to use the shell command above rather than the environ[‘APPDATA’]

---

<div class="post-metadata">

**Author:** ![jmiller](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@jmiller](https://discourse.psychopy.org/u/jmiller)\
**Post date:** [February 3, 2017, 6:09pm UTC](https://discourse.psychopy.org/t/unable-to-start-psychopy/1842/7 "2017-02-03T18:09:23Z")

</div>

Jon

Thanks for figuring out the problem. I verified in the registry that my user account has absolutely no environment variables set, in fact there isn’t even a “User Shell Folders” folder in the normal location.

I am going to track down a different PC with parallel port that I know has proper environment variables set instead of dealing with this headache!

Thank you again for all your help!

---

<div class="post-metadata">

**Author:** ![Roopa](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@Roopa](https://discourse.psychopy.org/u/Roopa)\
**Post date:** [February 11, 2017, 1:31pm UTC](https://discourse.psychopy.org/t/unable-to-start-psychopy/1842/8 "2017-02-11T13:31:26Z")

</div>

Hi there!

I’ve downloaded the standalone PsychoPy Windows version for the first time. I have Windows 8.1 and I can see the PyschoPy folder in my Program Files folder. I can’t figure out how to start/ launch the application. Do I need to download something else? I’m a complete novice when it comes to programming and coding and I would be very grateful for any help with this.

---

<div class="post-metadata">

**Author:** ![stalcorn](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@stalcorn](https://discourse.psychopy.org/u/stalcorn)\
**Post date:** [November 15, 2019, 3:38pm UTC](https://discourse.psychopy.org/t/unable-to-start-psychopy/1842/9 "2019-11-15T15:38:34Z")

</div>

I know that this post is more than two years old, but in the interest of posterity, I’d like to share something that has worked for me on two different Windows computers. It appears that the Windows version of the standalone download includes all of the necessary files to run PsychoPy but does not include the PsychoPy shortcut that would normally make it easy to find and run the program. You can make your own shortcut by doing the following:

1. Create a new shortcut (right-click and select “Create new shortcut” or similar language) to the following file in the PsychoPy folder: Lib/site-packages/psychopy/app/psychopyApp.py
2. Double-click the shortcut. Your computer should prompt you to specify a program to open the shortcut. Select pythonw.exe in the PsychoPy folder.
3. If the program does not open automatically, try double-clicking the shortcut again. This should open PsychoPy.

---

<div class="post-metadata">

**Author:** ![JamesJonesRounds](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jamesjonesrounds/32/36292_2.png) [@JamesJonesRounds](https://discourse.psychopy.org/u/JamesJonesRounds)\
**Post date:** [October 7, 2020, 5:54pm UTC](https://discourse.psychopy.org/t/unable-to-start-psychopy/1842/10 "2020-10-07T17:54:32Z")

</div>

This was really helpful… But in Windows 10, it’s hard to find the “AppData” variable… so I went to C:/Users/user-name/ in File Explorer, and then I clicked in the address above, and typed in AppData right after the address name, hit enter, and it revealed the contained folders… clicked on “Roaming” and then “psychopy3”, and then deleted the “appData.cfg” file that was in there (as recommended here: [https://www.psychopy.org/troubleshooting.html#cleanprefs](https://www.psychopy.org/troubleshooting.html#cleanprefs)). PsychoPy3 fired up just fine then!
