PyDev.Debugger icon indicating copy to clipboard operation
PyDev.Debugger copied to clipboard

trace.modname does not exist since Python 3.2

Open alecxe opened this issue 8 years ago • 6 comments

Linking the StackOverflow post which initially caught this problem.

The problem is that if the PyCharm debugger would be started with --save-signatures ("Collect run-time types information for code insight" Python Debugger setting), it would fail with:

AttributeError: module 'trace' has no attribute 'modname'

The problem is on this line:

modulename = trace.modname(filename)

There is no modname function in the trace module since Python 3.2. There is _modname now.

Please fix. Let me know if you have any further questions.

Reproduced using PyCharm 2016.3.1 and Python 3.6.

alecxe avatar Dec 29 '16 04:12 alecxe

I got exactly the same. Reproduced using PyCharm 2016.3.2 and Python 3.6

Salsapareille avatar Feb 07 '17 15:02 Salsapareille

I have exactly the same problem while trying to enable "Collect run-time types information for code insight". The PyCharm version is:

PyCharm 2016.3.3
Build #PY-163.15188.4, built on March 10, 2017
Subscription is active until September 10, 2017
JRE: 1.8.0_112-release-408-b6 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

PeterZhizhin avatar Mar 19 '17 20:03 PeterZhizhin

I also have this issue PyCharm 2016.3.3 and Python 3.6.0

ajurna avatar Mar 20 '17 11:03 ajurna

same issue here. When is a fix expected?

s-slattery avatar Mar 22 '17 22:03 s-slattery

Well, it's all open source and it should be a simple fix... (mostly seeing what modname did and recreate that function internally if it's not available) does someone volunteer to fix it locally/test and provide a pull request?

fabioz avatar Mar 23 '17 09:03 fabioz

For me it works in 2017.1 RC2 (https://www.jetbrains.com/pycharm/nextversion/)!

oechslein avatar Mar 23 '17 11:03 oechslein