GAE dev_appserver "No module named lxml"

Lxml seems to be unavailable to me in dev_appserver. I have a test import lxmlline project built using windows python sdk 1.6.6. Msgstr "There is no module named lxml." I am assuming something with the python version installed, but I have Python 2.7.

import webapp2
import lxml

class MainHandler(webapp2.RequestHandler):
    def get(self):
        self.response.out.write('Hello world!')

app = webapp2.WSGIApplication([('/', MainHandler)],
                              debug=True)

===

application: teslxml
version: 1
runtime: python27
api_version: 1
threadsafe: yes

handlers:
- url: /favicon\.ico
  static_files: favicon.ico
  upload: favicon\.ico

- url: .*
  script: main.app

libraries:
- name: webapp2
  version: "2.5.1"
- name: lxml
  version: latest

==

dev_appserver.py teslxml
+3
source share
2 answers

Update: this is no longer the case, lxml is now sent out of the box. https://cloud.google.com/appengine/docs/standard/python/tools/built-in-libraries-27


lxml is not included with the Google App Engine, you need to install it .

+7
source

"no module named lxml", , , pip , :

pip install lxml == [versionnumber]

0

All Articles