| Reference | Downloads | Github

Unable to run PsychoPy3 on Ubuntu 18.04 - ImportError: No module named html2

Hi all,

I’m having issues running PsychoPy3 (version 3.2.4) on Ubuntu 18.04. In the terminal, I get this message:

$ psychopy
Traceback (most recent call last):
File “/usr/local/bin/psychopy”, line 11, in
load_entry_point(‘PsychoPy==3.2.4’, ‘gui_scripts’, ‘psychopy’)()
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/”, line 100, in main
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/”, line 28, in start_app
app = PsychoPyApp(0, showSplash=showSplash)
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/”, line 182, in init
self.onInit(testMode=testMode, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/”, line 218, in onInit
from import coder, builder, dialogs
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/coder/”, line 9, in
from .coder import * # pylint: disable=W0401
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/coder/”, line 22, in
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/pavlovia_ui/”, line 19, in
from .functions import *
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/pavlovia_ui/”, line 13, in
from ._base import PavloviaMiniBrowser, PavloviaCommitDialog
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/pavlovia_ui/”, line 9, in
import wx.html2
ImportError: No module named html2

wxPython is installed.
$ pip show wxPython
Name: wxPython
Version: 4.0.7.post2

Any help is appreciated!


Didn’t want this to get buried to far below the fold, so self-replying to hopefully grab the attention of anyone who might be able to help. I realize Linux may not be as popular as other OS’s but maybe someone has suggestions? Appreciate any help you can offer!