Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Python 3.13 installation fails

Trying to install OpenSesame through pip in a virtual environment (as a 'trial run' for a full package build)

I'm on python 3.13 and I'm getting the error

AttributeError: module 'pkgutil' has no attribute 'ImpImporter'

This seems to be associated with numpy as any numpy v<1.26 is not compatible with python <3.12.

see https://github.com/numpy/numpy/issues/23808#issuecomment-1722440746

Is this right, or am I reading the error wrong?

Comments

  • To further this. I've downgraded to 3.11.11 in a virtual environment and it installed fine, so I'm fairly certain 3.13 was the problem.

    Now, however, because I'm in a virtual environment, all the hidden dependencies are showing up

    qtpy is failing

    qtpy.QtBindingsNotFoundError: No Qt bindings could be found
    

    It seems qtpy needs core PyQt? Which, if so, is not listed as a dependency.

    I can trial it but it's not clear if opensesame is going to need a particular version (pyqt5 or pyqt6)

  • Hi @jamesi ,

    Ah, thanks for pointing this out. Perhaps Python 3.13 has introduced some breaking changes (probably by implementing long-standing deprecations) that require updating OpenSesame. I haven't tried 3.13 yet, but up to 3.12 should work.

    And indeed, PyQt is not listed as a dependency, because you can choose to use either PyQt5 or PyQt6. I would recommend PyQt6, of course.

    — Sebastiaan

Sign In or Register to comment.