I am having this problem in 1.95.1 in OS X:

DeepSpace9:web2py julio$ python web2py.py -S qastack
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.95.1 (2011-04-25 17:55:16)
Database drivers available: SQLite3, pymysql
WARNING:web2py:import IPython error; use default python shell
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import pygments
>>> from pygments.lexers import PythonLexer
Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: cannot import name PythonLexer
>>> pygments.__file__
'/Library/Python/2.6/site-packages/Pygments-1.4-py2.6.egg/pygments/
__init__.pyc'

Now, running python directly from the console:

Julio-Schwarzbecks-MacBook:~ julio$ python
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pygments.lexers import PythonLexer
>>>

I don't recall having this problem bfore updating to this version, any
ideas?

Thanks!

Julio

Reply via email to