Konica photometers do not appear in dropdown after 2024.2.0 onward

In 2024.2.0 and later, the Konica photometers do not appear in the dropdown in Monitor Center.

Below is what I see in versions prior to 2024.2.0. Any version after just says “Get more…”.

Konica plugin installed via package manager.

Strange, I can’t replicate this - when I try the same thing in the latest version they seem to show up fine.

To help figure out what’s going on, could you try running this in Coder (either as a script, or line-by-line via the Shell tab at the bottom)?

# actiate any plugins
from psychopy.plugins import activatePlugins
activatePlugins()
# import a Minolta photometer
from psychopy.hardware.minolta import LS100
# is it an actual photometer class, or a stub for the plugin?
from psychopy.plugins import PluginStub
assert not isinstance(LS100, PluginStub)

does it raise an error? And do you get any warnings about plugins not loading?

Thanks! This is what I get:

Welcome to PsychoPy3!
v2024.2.5
pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
Hello from the pygame community. https://www.pygame.org/contribute.html
############# Running: C:\Users\user\Documents\test.py ##############
Traceback (most recent call last):
  File "C:\Users\user\Documents\test.py", line 7, in <module>
    from psychopy.plugins import PluginStub
ImportError: cannot import name 'PluginStub' from 'psychopy.plugins' (C:\Users\user\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\plugins\__init__.py)
################# Experiment ended with exit code 1 [pid:3212] #################

Since i installed after a previous working psychopy version, the package manager GUI showed that the plugin was still installed but it wasn’t. So I did a pip install psychopy-minolta and it installed again. Still, after a restart, the photometers do not appear in the drop-down and I get the above error in the test script above.

Whoops, my mistake, I was running from my dev install so that import statement will only work as of the next release :person_facepalming:

In 2024.2.5 it instead needs to be:

from psychopy.tools.pkgtools import PluginStub

What result do you get after making this change?

No errors or messages after I make that change. Still I do not see them listed in the drop down. Simply “Get more…”

I think I may have found the problem! I had a local version installed which was cloned from GitHub, if I remove it and install again from Builder I get the same problem as you. I think that means it’s been fixed in the plugin’s actual code, but that fix hasn’t been released yet. So I’ll do a release now and you should be able to just uninstall & reinstall the plugin to update the version, should hopefully fix it :slight_smile:

1 Like

Thanks, it’s fixed now !