Form component - how to use csv?

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

OS (e.g. Win10): MacOS 15.7.3
PsychoPy version (e.g. 2024.2.4 Py 3.8): 2025.2.4
Standard Standalone Installation? (y/n) y
Do you want it to also run online? (y/n) y
What are you trying to achieve?: simple datasecurity formular

What did you try to make it work?: using the form component

Link to the most relevant existing thread you have found: error when running:

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

Error occured:

/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/visual/slider.py:602: RuntimeWarning: invalid value encountered in divide
delta = magDelta / (ticks[-1] - ticks[0])
Traceback (most recent call last):
File “/Users/user/Test_lastrun.py”, line 800, in
run(
File “/Users/user/Test_lastrun.py”, line 396, in run
form = visual.Form(win=win, name=‘form’,
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/visual/form.py”, line 178, in init
self._createItemCtrls()
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/visual/form.py”, line 740, in _createItemCtrls
self._setResponse(item)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/visual/form.py”, line 473, in _setResponse
respCtrl, respHeight = self._makeSlider(item)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/visual/form.py”, line 569, in _makeSlider
resp = psychopy.visual.Slider(
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/contrib/lazy_import.py”, line 118, in call
return obj(*args, **kwargs)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/visual/slider.py”, line 251, in init
self._createElements()
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/visual/slider.py”, line 499, in _createElements
self.tickLines = ElementArrayStim(
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/visual/elementarray.py”, line 157, in init
self.setXYs(xys, log=False)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/visual/elementarray.py”, line 272, in setXYs
setAttribute(self, ‘xys’, value, log, operation)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/tools/attributetools.py”, line 198, in setAttribute
setattr(self, attrib, value)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/tools/attributetools.py”, line 76, in set
newValue = self.func(obj, value)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/visual/elementarray.py”, line 263, in xys
self.dict[‘xys’] = self._makeNx2(value, [‘Nx2’])
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/visual/elementarray.py”, line 198, in _makeNx2
raise ValueError(msg + str(acceptedInput))
ValueError: New value should be one of these: [‘Nx2’]

This is the .csv file i used for the form:

DatenschutzFormular.csv (244 Bytes)