psychopy / psychopy

For running psychology and neuroscience experiments
http://www.psychopy.org
GNU General Public License v3.0
1.67k stars 902 forks source link

[Bug]: Python error when updating PsychoPy through internal Tools > PsychoPy update option #5846

Open ajmeek opened 1 year ago

ajmeek commented 1 year ago

PsychoPy Version

2023.2.1

What OS are your PsychoPy running on?

macOS Intel

Bug Description

Hi everyone,

I'm on a slightly older version of PsychoPy and was trying to update it to the latest version through the Tools > PsychoPy Updates option. This was because an experiment I was trying to run uses parameters not supported in my current version.

However, when I do that, I get a bug. It seems that some of the underlying code tries to index an integer. Here's the output that PsychoPy recommended I copy and paste.

Traceback (most recent call last): File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/connections/updates.py”, line 406, in onInstall File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/connections/updates.py”, line 554, in doAutoInstall TypeError: ‘int’ object is not subscriptable

Expected Behaviour

I expected it to update to the latest version.

Steps to Reproduce

  1. Download PsychoPy 2023.2.1 for MacOS Intel.
  2. Go to the Tools > PsychoPy Updates option on the top.
  3. Click that and try to update.

Additional context

If there's any other context I should give then please just let me know. It's a fairly simple process to reproduce. For now, I'll just uninstall and get the latest version of PsychoPy on my machine to keep working. Thanks everyone!

El-Psy-Kongrooo commented 7 months ago

Can you please assign me this issue? I would very much appreciate that. Thank you

peircej commented 7 months ago

Certainly @El-Psy-Kongrooo we haven't looked at this for a long time but it would certainly be nice to make it work again :-) For info

peircej commented 7 months ago

If you get the main part of the code working then I'll update the version.txt online, but I don't want to do that yet because of the number of people that will suddenly be told to update PsychoPy

El-Psy-Kongrooo commented 7 months ago

Okok, I will see it throught :)

El-Psy-Kongrooo commented 6 months ago

I'm afraid that this issue is proving a bit too much for me, so I have to throw in the towel. I don't want to hold this up any further so I am unassigning it from myself. Please accept my apologies for any inconvenience I may have caused.