Cannot debug construct with pycharm

63 views
Skip to first unread message

volker....@inqbus.de

unread,
Mar 22, 2016, 4:29:01 PM3/22/16
to Construct
Hi!

When I try to debug  the following one line "program"

from construct import Struct, Array, UBInt8, UBInt16

utilizing pycharm I get the following stack-trace:

/home/volker/workspace/hamm.can4/bin/python2.7 /opt/pycharm-community-4.0.6/helpers/pydev/pydevd.py --multiproc --client 127.0.0.1 --port 47805 --file /home/volker/workspace/hamm.can4/hamm.can
/src/hamm/can/storecan/multi_packet.py

Connected to pydev debugger (build 139.1659)
pydev
debugger: process 21948 is connecting

Traceback (most recent call last):
 
File "/opt/pycharm-community-4.0.6/helpers/pydev/pydevd.py", line 2217, in <module>
    globals
= debugger.run(setup['file'], None, None)
 
File "/opt/pycharm-community-4.0.6/helpers/pydev/pydevd.py", line 1643, in run
    pydev_imports
.execfile(file, globals, locals)  # execute the script
 
File "/home/volker/workspace/hamm.can4/hamm.can/src/hamm/can/storecan/multi_packet.py", line 5, in <module>
   
from construct import Struct, Array, UBInt8, UBInt16
 
File "/home/volker/workspace/hamm.can4/local/lib/python2.7/site-packages/construct/__init__.py", line 21, in <module>
   
from construct.core import (AdaptationError, Adapter, Anchor, ArrayError, Buffered, Construct, ConstructError,
 
File "construct/core.pyx", line 5, in init construct.core (construct/core.c:1636)
 
File "construct/core.pyx", line 5, in PyMODINIT_FUNC PyInit_core(void)
TypeError: 'NoneType' object is not callable

Process finished with exit code 1


What am I doing wrong?

Any help appreciated

Volker

volker....@inqbus.de

unread,
Mar 24, 2016, 3:33:43 PM3/24/16
to Construct
I forgot to mention that any code programmed with consturct runs perfectly. Only debugging is not possible. 

Volker
Reply all
Reply to author
Forward
0 new messages