SOLVED: ImportError: cannot import name modname

I just installed 2.6.2 and came across this error when attempting to debug a script.  Any ideas as to why this is coming up?

C:\Python27\python.exe "C:\Program Files (x86)\JetBrains\PyCharm 2.6.2\helpers\pydev\pydevd.py" --multiproc --client 127.0.0.1 --port 56473 --file D:/SVN/qsextra/qstest/opsval.py cfg=D:/cfg/qs87.cfg
Traceback (most recent call last):
  File "C:\Program Files (x86)\JetBrains\PyCharm 2.6.2\helpers\pydev\pydevd.py", line 3, in <module>
    from pydevd_signature import SignatureFactory
  File "C:\Program Files (x86)\JetBrains\PyCharm 2.6.2\helpers\pydev\pydevd_signature.py", line 2, in <module>
    from trace import modname
ImportError: cannot import name modname

Process finished with exit code 1
prettyPrint();
1 comment
Comment actions Permalink
So apparently I had a PYTHONPATH entry that pointed to a folder which contained a trace.py.  I've removed the offending entry (and created a much needed __init__.py for that module.

Problem solved.
1

Please sign in to leave a comment.