Radialstim cannot call in builder(2024.1.4)

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Window 10
PsychoPy version (e.g. 1.84.x): 2024.1.4
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?:
I am trouble with making radialstim with psychopy of this version.

I already installed Advanced Vision Science and using builder->Radial Stim

I didn’t add any setting, but psychopy cannot call the object.
File “C:\Users\user\OneDrive - 대구가톨릭대학교\바탕 화면\heartbeat_bsc_task\pilot_lastrun.py”, line 1107, in
run(
File “C:\Users\user\OneDrive - 대구가톨릭대학교\바탕 화면\heartbeat_bsc_task\pilot_lastrun.py”, line 815, in run
outer_stim = visual.RadialStim(win=win, mask=‘circle’, size=(outer_radius, outer_radius),
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\contrib\lazy_import.py”, line 118, in call
return obj(*args, **kwargs)
TypeError: RadialStim() takes no arguments

in the coder,

radial = visual.RadialStim(
win=win, name=‘radial’,
tex=‘sqrXsqr’, mask=None,
ori=0.0, pos=(0, 0), size=(0.5, 0.5),
radialCycles=3.0, angularCycles=4.0,
radialPhase=0.0, angularPhase=0.0,
visibleWedge=(0, 360),
color=[1,1,1], colorSpace=‘rgb’,
opacity=None, contrast=1.0,
texRes=128.0, interpolate=False)

Is there some bug or error in current version? Thank you

What did you try to make it work?:

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.

I believe this is because the plugin is missing an entry point - the RadialStim class is there, it just isn’t being added to psychopy.visual. The entry point actually is present in the code on GitHub, so I think it’s just a case of needing to do a new release. Will get right on it!

Okay, I’ve built and released a new version of psychopy-visionscience (0.0.6), installing myself and testing seems to fix this bug so if you remove it from your packages folder and then install again from the plugins menu it should work

1 Like

Sounds like this might be related to the behavior described here: https://discourse.psychopy.org/t/advanced-vision-science-plugin-not-available-cannot-un-install-plugin/40216

Or at least the error message was the same.

How can I remove and reinstall the package in the MacOS version?

Packages are installed to the user folder, which on Mac is User/<your username>/.psychopy3 - you can remove all packages by deleting the “packages” folder there and restarting PsychoPy.

We’re working on an in-app uninstaller to make this less of a faff, hopefully for the summer release!

Thanks! that explains why it sticks through different releases. Maybe the installer of a new release should check and update the plugin there if it exists

1 Like

@TParsons Todd, thanks for quickly providing the fix, which also solved my problem described in the other thread after calling pip upgrade psychopy-visionscience from the built-in pip console