There is actually a bug in PyCharm PyDev.Debugger
, it uses trace.modname
, which does not exist with Python 3.2:
def file_module_function_of(self, frame): #this code is take from trace module and fixed to work with new-style classes code = frame.f_code filename = code.co_filename if filename: modulename = trace.modname(filename) # < HERE else: modulename = None # ...
Now this specific code will be executed only if the debugger is launched with the command-line --save-signatures
, which is activated by the "Collect runtime data to determine the code" command. Setting up the Python debugger:
Turn off the installation and the error will disappear.
source share