#🔒 Trying to install psychopy gives error module 'pkgutil' has no attribute 'ImpImporter'

30 messages · Page 1 of 1 (latest)

dreamy scaffold
#

Hello, I've been trying to install psychopy using pip install psychopy but I keep hitting into this error. Googling online tells me to use pip --upgrade setuptools / downgrading python version. I did upgrade setuptools but still get the error and I don't want to downgrade python version unless absolutely necessary. Is there any way to fix this package error? Thanks in advance!

distant nestBOT
#

@dreamy scaffold

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

neat crescent
#

can you paste a transcript, or a screenshot, of your session where you tried to install it?

dreamy scaffold
#

im using conda through vs code

#

do you want me to upload a ss of the cmd terminal?

neat crescent
#

sure

#

warning: I don't use conda, so I might not be able to reproduce the problem

dreamy scaffold
#

my python version is 3.12

neat crescent
#

well iiuc it doesn't work with 3.12; I'm installing it myself and it insists on 3.10

#

oh you're using a much older version

#

... and my installation failed with ERROR:: Could not find a local HDF5 installation.

limpid wagon
#

It's trying to install numpy<1.24.0

dreamy scaffold
#

wait the command is still pip install psychopy

#

which is what im using

#

do i have to build it locally?

neat crescent
#

beats me.

limpid wagon
#

might be easier to downgrade python

neat crescent
#

I suspect you need to use python3.10 and the current version of psychopy

dreamy scaffold
#

ahh i was hoping to not go that route

#

but guess ill have to

#

cool thanks!

neat crescent
#

might be easier

dreamy scaffold
#

the binaries i think mention python 3.10 as well

#

ill just downgrade to 3.10 through conda and see where that lands me

distant nestBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.