ipython bug with file token.py in path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ipython (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Binary package hint: ipython
See:
. . . . . . . . .
tmp$ touch token.py
tmp$ ipython
Traceback (most recent call last):
File "/usr/bin/ipython", line 26, in <module>
import IPython
File "/usr/lib/
__import_
File "/usr/lib/
from IPython.Itpl import Itpl,itpl,printpl
File "/usr/lib/
from tokenize import tokenprog
File "/usr/lib/
COMMENT = N_TOKENS
NameError: name 'N_TOKENS' is not defined
tmp$ rm token.{py,pyc}
tmp$ ipython
Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
Type "copyright", "credits" or "license" for more information.
IPython 0.7.3 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]:
. . . . . . . . .
I am not able to replicate this problem as described. Would you please see if you can replicate it now and provide a more complet step by step process.