psychopy.org | 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/psychopyApp.py”, line 100, in main
start_app()
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/psychopyApp.py”, line 28, in start_app
app = PsychoPyApp(0, showSplash=showSplash)
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/_psychopyApp.py”, line 182, in init
self.onInit(testMode=testMode, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/_psychopyApp.py”, line 218, in onInit
from psychopy.app import coder, builder, dialogs
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/coder/init.py”, line 9, in
from .coder import * # pylint: disable=W0401
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/coder/coder.py”, line 22, in
import psychopy.app.pavlovia_ui.menu
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/pavlovia_ui/init.py”, line 19, in
from .functions import *
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/pavlovia_ui/functions.py”, line 13, in
from ._base import PavloviaMiniBrowser, PavloviaCommitDialog
File “/usr/local/lib/python2.7/dist-packages/psychopy/app/pavlovia_ui/_base.py”, 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!

Best,
Adam

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!