Can't launch plugins/packages manager

I need to install pygame (among other plugins) but am unable to do so. PsychoPy seems to believe it is not connected to the internet and, perhaps helpfully, gives this error message:

Traceback (most recent call last):

File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\coder\coder.py”, line 2870, in openPluginManager dlg = psychopy.app.plugin_manager.dialog.EnvironmentManagerDlg(self)

File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\plugin_manager\dialog.py”, line 50, in __init__self.pluginMgr = PluginManagerPanel(self.notebook, dlg=self)

File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\plugin_manager\plugins.py”, line 260, in __init__self.pluginList = PluginBrowserList(self.splitter, stream=dlg.output)

File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\plugin_manager\plugins.py”, line 566, in __init__self.populate()

File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\plugin_manager\plugins.py”, line 574, in populate items = getAllPluginDetails()

File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\plugin_manager\plugins.py”, line 1326, in getAllPluginDetails pluginDatabase = getPluginPackages(asList=True)

File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\plugin_manager\packageIndex.py”, line 211, in getPluginPackages return list(_packageIndex[‘available’][‘plugins’][‘packages’].values())

TypeError: ‘NoneType’ object is not subscriptable

Maybe this is helpful to see: When I click the menu command to launch PsychoPy updates, I see the pop-up below, which is what makes me think that PsychoPy does not think it’s connected to the internet. The computer is connected via a secure wifi connection.

Of perhaps special note, this happens on a Windows 11 machine on which I do not have administrative privileges because of my university’s IT policies :face_with_symbols_on_mouth: . The problem persists even when I am given temporary privileges to run PsychoPy as an administrator.

OS (e.g. Win10): Win 11
PsychoPy version (e.g. 2024.2.4 Py 3.8): 2025.2.3
Do you want it to also run online? No
What are you trying to achieve?: I need to install pygame (to play audio?)

.

Second this – I am receiving this same error on Windows 11, Psychopy 2025.2.4beta, Python 3.10

There are clearly still issues around the ability to index/search the pypi projects list. We aren’t currently sure why these issues only affect some machines, but we are working on a fix so that you can still install the plugins (psychopy packages that are known to us) can be installed as well as any packages that you know the names of.

Workaround: If you already know the name of the name of the package you want then the current workaround is to do this from PsychoPy’s Python shell (the Shell panel in the Coder view):

>>> from psychopy.tools import pkgtools
>>> pkgtools.installPackage( 'name-of-my-package' )
2 Likes

Thank you! I’ll give this a try and reply in the thread if it worked. (It’ll be a few days, though.)

Hi,

I am facing the same problem with Psychopy 2024.2.4.beta.

What if you dont know the plugin/ package to use?