# Automatic Install missing PyQt4/5?

**URL:** <https://discourse.psychopy.org/t/automatic-install-missing-pyqt4-5/6902>\
**Category:** Other\
**Created:** [March 4, 2019, 11:31am UTC](https://discourse.psychopy.org/t/automatic-install-missing-pyqt4-5/6902 "2019-03-04T11:31:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![japalmer](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@japalmer](https://discourse.psychopy.org/u/japalmer)\
**Post date:** [March 4, 2019, 11:31am UTC](https://discourse.psychopy.org/t/automatic-install-missing-pyqt4-5/6902/1 "2019-03-04T11:31:01Z")

</div>

I downloaded the auto installer, which unpacked to about 1GB of files. I can run the Builder and Coder apps, but when trying to Run an experiment with the green Run button, I get error messages about PyQt4 missing and handling the exception QtGui missing in PyQt5.  
I found instructions online for installing PyQt4, along with other needed dependencies, but it seems odd that with the automatic install installing so much already that it would be necessary to manually install these other packages.  
I have Qt5 installed but no idea how to tell PsychoPy about it.

I am using Windows 7.

Is it necessary to manually install these packages? How do I edit the PsychoPy Python path(s)?

Thank you.

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [March 4, 2019, 12:55pm UTC](https://discourse.psychopy.org/t/automatic-install-missing-pyqt4-5/6902/2 "2019-03-04T12:55:48Z")

</div>

Hi @japalmer, can you please post the actual error message? This may be related to GitHub issue below, which Jon has fixed for the next release of PsychoPy.

> <https://github.com/psychopy/psychopy/issues/2297>
>
> Version: latest standalone version (3.0.5) on Win64.
> 
> When trying to run any e…xperiment, I get the following error:
> \`\`\`
> File "C:\\Program Files (x86)\\PsychoPy3\\lib\\site-packages\\psychopy\\gui\\qtgui.py", line 15, in \<module\>
> from PyQt4 import QtGui  
> ModuleNotFoundError: No module named 'PyQt4'
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
> File "H:\\cdots\\cdots\_lastrun.py", line 18, in \<module\>
> from psychopy import locale\_setup, sound, gui, visual, core, data, event, logging, clock
> File "C:\\Program Files (x86)\\PsychoPy3\\lib\\site-packages\\psychopy\\gui\\\_\_init\_\_.py", line 33, in \<module\>
> from .qtgui import \*
> File "C:\\Program Files (x86)\\PsychoPy3\\lib\\site-packages\\psychopy\\gui\\qtgui.py", line 19, in \<module\>
> from PyQt5 import QtWidgets
> ImportError: DLL load failed: The specified procedure could not be found.
> \`\`\`
> 
> The problem disappears when switching back to 3.0.2.

---

<div class="post-metadata">

**Author:** ![japalmer](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@japalmer](https://discourse.psychopy.org/u/japalmer)\
**Post date:** [March 4, 2019, 1:30pm UTC](https://discourse.psychopy.org/t/automatic-install-missing-pyqt4-5/6902/3 "2019-03-04T13:30:33Z")

</div>

Hi @dvbridges, I wanted to copy the message but the python ouput window doesn’t allow copy and paste!

I believe it is the same issue. I am using Win64 Windows 7, and v. 3.0.5. There is an exception about missing PyQt4, then an error while trying to handle that exception, I think by looking for PyQt5, which fails. All stems from trying to import qtgui, which I guess gui references.

Is there a fix for this? Maybe I should install an older version?

Thanks

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [March 4, 2019, 1:48pm UTC](https://discourse.psychopy.org/t/automatic-install-missing-pyqt4-5/6902/4 "2019-03-04T13:48:50Z")

</div>

Hi @japalmer, are you referring to the dialog that pops up when the error occurs? If so, try compiling and running your script from Coder, then your error will be written in the output panel at the bottom of the Coder window. You can copy from that window.

Yes probably the same error, and Jon has fixed this by changing how pyqt5 will be installed for 64 bit machines. However, this is not yet available, although Jon is making frequent releases at present. You could try a previous version, e.g., 3.0.4. as the problem was only introduced in 3.0.5 (but soon to be fixed in 3.0.6).
