Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8265957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:58:56+00:00 2026-06-08T04:58:56+00:00

This is my code: from google.appengine.ext import db import pygments from pygments import highlight

  • 0

This is my code:

from google.appengine.ext import db
import pygments
from pygments import highlight
from pygments.lexers import get_lexer_by_name
from pygments.formatters import HtmlFormatter

But I get:

import pygments
ImportError: No module named pygments
INFO     2012-07-20 07:05:44,386 dev_appserver.py:2952] "GET / HTTP/1.1" 500 -

What am I doing wrong?

Does Google App Engine not support pygments? I thought it did… Could someone please correct me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:58:58+00:00Added an answer on June 8, 2026 at 4:58 am

    You can run Pygments because it’s pure Python, but it’s not included as a default library in GAE. Instead, you need to download the source and copy it into your project.

    1. Go to PyPi and download Pygments.

    2. Unzip it, then copy the source into the app engine folder for your project (probably best at the top-level).

    3. Then you can just do import pygments as usual. If you want to put it in a subdirectory (say mypackages), you have to change the import string, e.g. from mypackages import pygments.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

import cgi from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app
Borrowing this code from several different tutorials on how to use Google maps on
I have this code which I have found from google. It's a adapter for
This is a code sample taken from the Google Maps API developer's guide. I'm
I'm working with a Google Maps example code , this : http://www.wolfpil.de/v3/drag-from-outside.html which has
(1) is this way : http://code.google.com/intl/en/appengine/articles/djangoforms.html (2) is write by self : #/usr/bin/env python2.5
I am using from google.appengine.api import conversion To allow me to convert an HTML
I'm following the docs on this site: http://code.google.com/intl/sv-SE/appengine/docs/java/datastore/jdo/queries.html From there I learned how to
In this code (from the WCF REST starterkit - preview2): protected override SampleItem OnAddItem(SampleItem
I got this code from our frontend guy for headings: <h2 class=headline><span>Foobar</span></h2> The span

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.