
Another note I want to make is that I use Debian, but you did not specify your distribution. Some notes: I saw that it also installed python3-sip together with python3-qtpy and that I've already installed on my system the package python-sip not sure if this helps. However, while it was installing, I noticed that it was installing the version 3 of the qt libraries, so I tried to run, in the interactive python 3 environment, from PyQt5.QtGui import * and it worked.

Now, because I was disappointed by the lack of support of python 3, I tried to look for some other packages about qt and python 3 and I found python3-qtpy. Then I stumbled upon this question on StackOverflow, which gave me the idea that I was using the wrong python version (by default I use python 3.7), so I tried to run the aforementioned command in a python 2.7 and it worked.
#No moule psychopy pyqt4 install#
Then I tried to install python-qtpy, which did not work either.

So I tried to install the package python-qt4, which happened to be already installed in my system. The first try to solve the problem was installing the packages pyqt4-dev-tools and pyqt4.qsci-dev, which did not solve the problem.
#No moule psychopy pyqt4 code#
I tried to run in an interactive python environment (sorry for the bad terminology, I'm not proficient in python: I used it only a few times to solve very simple math problems) the code I have a Debian system, so I used apt to install all the packages I wanted to install. In case it matters, the experiment was designed in the v2021.2.2 Builder, and I’m using eVersion('2021.2.2') in the code.I've tried to reproduce your error and in fact I succeeded in doing that.
#No moule psychopy pyqt4 mac#
Why do some installs omit the tests folder, and should I simply copy the folder from the 2021.2.3 Mac install over to the Win7 machine? Regardless, the Win7 machine is my ultimate target machine. Bizarrely, the psychopy install for my python venv is v2021.2.3 and does have the tests subfolder… I’m quite confused how the Builder is finding that, but calling python from within the venv somehow finds the other install. psychop圓/, is v2021.2.2 and is missing the tests subfolder, which I imagine is causing the failure.

On MacOS, running from Builder mode actually works, but trying to run the compiled script from the command line produces the error above.Īfter doing a little digging, it seems the psychopy install referenced in the pasted error there, under. On Win7, the error happened when trying to run from the Builder mode. The errors are not reached in identical ways, however. The error on Win7 is essentially the same, referencing the same line in gamma.py. ModuleNotFoundError: No module named 'psychopy.tests' What specifically went wrong when you tried that?: Traceback (most recent call last):įrom psychopy import sound, gui, visual, core, data, event, logging, clock, colorsįile "/Users/jonathanshor/.psychop圓/versions/psychopy/visual/_init_.py", line 31, in įrom import gammaįile "/Users/jonathanshor/.psychop圓/versions/psychopy/visual/backends/gamma.py", line 20, in

Eventually commented out the offending import line, and all references to the imported variable. What did you try to make it work?: Run the experiment from the Builder/Runner. What are you trying to achieve?: Run the experiment Standard Standalone? (y/n) If not then what?: yes If not then just delete and start from scratch.
