Possible bug - Builder crashes when typing a dollar sign into a text component

Hello @bastosfh. Thank you so much for your suggestion. I would like to ask if by using the code you have mentioned here, this might be the expected output.

If so, which are the following steps?

No. The empty file indicates that your paramCtrls.py is not in the same path as mine.

Use your file manager to locate the file → right click on it → “open with” kate (or any other text editor you have installed).

Many thanks for replying me back. As far as I can see from the path (whose I am sharing the pic) there is no ‘dist-packages’ folder by following the path where the final one I am looking for is located. I found this ‘dist-packages’ just into with the folder called ‘python’, but once opened, cannot found the rest. Do you think this might depend on some updates? Which would recommend.

Thanks

Hello. I managed to open the file (finally) with Kate. Actually if you had a look to my previous post, the real message that popped up was:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/psychopy/app/builder/dialogs/paramCtrls.py", line 31, in validate
    validate(self, self.valType)
  File "/usr/local/lib/python3.8/dist-packages/psychopy/app/builder/dialogs/paramCtrls.py", line 557, in validate
    if re.findall(r"(?<!\\)\"", val):
  File "/usr/lib/python3.8/re.py", line 241, in findall
    return _compile(pattern, flags).findall(string)
  File "/usr/lib/python3.8/re.py", line 291, in _compile

Do you think I should make commented the same lines as you did? I am asking because by commenting those lines, it returns the same error.

1 Like

How did you install Psychopy?
Could you upload here your commented paramsCtrl.py?
What was the issue you fixed (see quote below) and what did you do to fix it?

Would it be possible for you to start fresh (reinstall Kubuntu and Psychopy)?

Hi, the solution by @ bastosfh works. Checked on Kubuntu 20.04, psychopy 2022.2.2. Thank you.

1 Like