ImportError: No module named lxml.html -CB 1.8 (lxml already installed)

1,655 views
Skip to first unread message

Haoyu chen

unread,
Apr 7, 2015, 1:29:30 AM4/7/15
to course-bui...@googlegroups.com
Here is error message when running CB 1.8. I have followed the instruction to install lxml, but it still doesn't work. Can anyone help me out here? Thanks in advance!


File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler

    handler, path, err = LoadObject(self._handler)

  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject

    obj = __import__(path[0])

  File "/Users/haoyuchen/Downloads/coursebuilder/main.py", line 27, in <module>

    from controllers import sites

  File "/Users/haoyuchen/Downloads/coursebuilder/controllers/sites.py", line 117, in <module>

    import utils

  File "/Users/haoyuchen/Downloads/coursebuilder/controllers/utils.py", line 31, in <module>

    from common import jinja_utils

  File "/Users/haoyuchen/Downloads/coursebuilder/common/jinja_utils.py", line 23, in <module>

    import tags

  File "/Users/haoyuchen/Downloads/coursebuilder/common/tags.py", line 27, in <module>

    import lxml.html

ImportError: No module named lxml.html

INFO     2015-04-07 05:39:26,702 module.py:666] default: "GET /_ah/warmup HTTP/1.1" 500 -

Jeannie Crowley

unread,
Apr 7, 2015, 10:11:44 AM4/7/15
to course-bui...@googlegroups.com
It's recommended to explore CB after deploying to App Engine. We've seen a lot of features not work in locally hosted version and you can't save any work (units, lessons, etc.) in the local version after you turn off your computer. 

If you prefer to stay local, can you try moving CB out of Downloads and into another directory before installing lxml?

Samarth Singal

unread,
Jun 9, 2015, 9:22:42 AM6/9/15
to course-bui...@googlegroups.com
I tried deploying using the instructions here to solve this issue but it redirects to a developer's console.

Samarth Singal

unread,
Jun 10, 2015, 3:49:14 AM6/10/15
to course-bui...@googlegroups.com
I found a solution here.

n31...@gmail.com

unread,
Jul 19, 2015, 7:54:18 AM7/19/15
to course-bui...@googlegroups.com
I had the same problem, and I solved it as follows. The problem, I figured out, could be tracked down in having several versions of Python installed in my system (Windows 7 64bit). I use pip to install python packages. I installed lxml with pip, telling it specifically to install the package for python 2.7

pip install -U pip // this updates pip, so that the actual syntax is interpreted correctly
pip2.7 install lxml // this installs lxml

Then I went to the Google App Engine Launcher, chose Edit>Preferences and filled in in the first field the exact path to my Python 2.7 installation.

This allowed me to use the Browse button without errors. Hope that heps you as well.

Reply all
Reply to author
Forward
0 new messages