Michael
February 23, 2019, 4:45am
2
OK, it looked like this was solved before:
opened 08:36PM - 29 Sep 18 UTC
closed 02:09PM - 12 Oct 18 UTC
When running timesByFrames in PsychoPy 3.0.0b10 on Windows 10, I get the followi… ng error:
```
##### Running: C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\demos\coder\timing\timeByFrames.py #####
Traceback (most recent call last):
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\demos\coder\timing\timeByFrames.py", line 23, in <module>
import pylab
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\matplotlib\pylab.py", line 252, in <module>
from matplotlib import cbook, mlab, pyplot as plt
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\matplotlib\pyplot.py", line 115, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\matplotlib\backends\__init__.py", line 62, in pylab_setup
[backend_name], 0)
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\matplotlib\backends\backend_qt4agg.py", line 9, in <module>
from .backend_qt5agg import (
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\matplotlib\backends\backend_qt5agg.py", line 15, in <module>
from .backend_qt5 import (
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\matplotlib\backends\backend_qt5.py", line 19, in <module>
import matplotlib.backends.qt_editor.figureoptions as figureoptions
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\matplotlib\backends\qt_editor\figureoptions.py", line 20, in <module>
import matplotlib.backends.qt_editor.formlayout as formlayout
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\matplotlib\backends\qt_editor\formlayout.py", line 54, in <module>
from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\matplotlib\backends\qt_compat.py", line 153, in <module>
from PyQt4 import QtCore, QtGui
ModuleNotFoundError: No module named 'PyQt4'
```
Naturally, I get the same in timeByFramesEx.py, also becase the pylab --> matplotlib --> Qt4 dependency. Deleting the pylab import, the other parts of the demo runs fine. So it seems to be a pure packaging problem.
but given that you are running the latest version, it seems to have arisen again, and is also being reported in other topics on this forum. Might be a good idea to post this as an issue at: