Skip to content
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

IntelliJ Debugger broken in 0.8.1 #61

Closed
rlittlefield opened this issue Jan 4, 2017 · 3 comments
Closed

IntelliJ Debugger broken in 0.8.1 #61

rlittlefield opened this issue Jan 4, 2017 · 3 comments

Comments

@rlittlefield
Copy link

I'm using the python debugger in IntelliJ 15.0.3, and my asyncpg code gets a TypeError. It doesn't happen out of the debugger, nor does it happen if I use 0.7.0.

/Users/ryan/dev/crm-service/bin/python "/Users/ryan/Library/Application Support/IntelliJIdea15/python/helpers/pydev/pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 61772 --file /Users/ryan/dev/crm-service/run.py
pydev debugger: process 93542 is connecting

Connected to pydev debugger (build 143.1821)
Traceback (most recent call last):
  File "/Users/ryan/Library/Application Support/IntelliJIdea15/python/helpers/pydev/pydevd.py", line 2403, in <module>
    globals = debugger.run(setup['file'], None, None, is_module)
  File "/Users/ryan/Library/Application Support/IntelliJIdea15/python/helpers/pydev/pydevd.py", line 1794, in run
    launch(file, globals, locals)  # execute the script
  File "/Users/ryan/Library/Application Support/IntelliJIdea15/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc) 
  File "/Users/ryan/dev/crm-service/run.py", line 2, in <module>
    from app import core
  File "/Users/ryan/dev/crm-service/app/core.py", line 5, in <module>
    from asyncpgsa import pg
  File "/Users/ryan/dev/crm-service/lib/python3.5/site-packages/asyncpgsa/__init__.py", line 1, in <module>
    from .pool import create_pool
  File "/Users/ryan/dev/crm-service/lib/python3.5/site-packages/asyncpgsa/pool.py", line 1, in <module>
    from asyncpg.pool import Pool
  File "/Users/ryan/dev/crm-service/lib/python3.5/site-packages/asyncpg/__init__.py", line 8, in <module>
    from .connection import connect  # NOQA
  File "/Users/ryan/dev/crm-service/lib/python3.5/site-packages/asyncpg/connection.py", line 19, in <module>
    from . import protocol
  File "/Users/ryan/dev/crm-service/lib/python3.5/site-packages/asyncpg/protocol/__init__.py", line 8, in <module>
    from .protocol import Protocol
  File "asyncpg/protocol/protocol.pyx", line 13, in init asyncpg.protocol.protocol (asyncpg/protocol/protocol.c:65550)
  File "asyncpg/protocol/protocol.pyx", line 13, in PyMODINIT_FUNC PyInit_protocol(void)
TypeError: 'NoneType' object is not callable
@elprans
Copy link
Member

elprans commented Jan 4, 2017

It appears that 0.8.1 and 0.8.2 got built with Cython's line tracing enabled, which, apparently, breaks the IntelliJ debugger.

@elprans elprans closed this as completed in fe6b35c Jan 4, 2017
@elprans
Copy link
Member

elprans commented Jan 4, 2017

I just released 0.8.3 that should fix this.

@rlittlefield
Copy link
Author

That was a fast fix! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants