-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NameError when using pdb #1
Comments
Hmm. Not sure if it is related to there being spaces in the file path. I'll investigate a bit. |
Nope, spaces give me a different error. |
Okay, the first thing I notice is that 'precm' shouldn't be imported. The line in your ~/.pdbrc should be:
(And then some other lines after that). Can you have a look and see if yours is different? |
Strange -- I cut and pasted the pdbrc.sample text into my .pdbrc, and I get the same NameError: *** NameError: name 'precm' is not defined However, I can see (I'm looking at it now) that precmd is imported and not precm. |
Did you ever get this resolved? |
Seems to have resolved itself. Closing. |
Actually, spoke too soon. Just now, I got the same thing: *** NameError: name 'precm' is not defined and my .pdbrc is: from rlcompleter import Completer from PdbTextMateSupport import preloop, precmd |
Can you check to see if the PdbTextMateSupport.py file that is installed has precmd in it? |
Actually, try the line:
from a python shell. |
That works fine. I'm now trying to track down the where the NameError might be coming from. |
I've tried reinstalling pdbtextmatesupport, just incase I had somehow deleted some text somewhere. I still get the error, however, and in addition TextMate now generates a message: This version of TextMate does not support “(null)” in its URL scheme. every time I take a step in the debugger. |
Here is a screenshot of what pops up every time I take a step in the debugger: http://cl.ly/dd8ec35228fec101c3a0 It looks like PdbTextMateSupport is making URL requests that TM does not recognize. |
After installing pdbtextmatesupport, I get the following error when I invoke pdb in a file:
In [4]: import koala
*** NameError: name 'precm' is not defined
The same name error and "&line=134&column=2 does not exist." message is reported regardless of what file I am debugging, so it is not specific to any particular file.
The text was updated successfully, but these errors were encountered: