open-dis / open-dis-python

Python implementation of the IEEE-1278.1 Distributed Interactive Simulation (DIS) application protocol v7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NameError: name 'getPdu' is not defined

rjmccabe3701 opened this issue · comments

This commit broke the parsing of the CommentPdu. Here is the trace:

...
 File "/usr/local/lib/python3.6/dist-packages/distributed_interactive_simulation-1.0-py3.6.egg/distributed_interactive_simulation/PduFactory.py", line 91, in createPdu
    return getPdu(inputStream)
  File "/usr/local/lib/python3.6/dist-packages/distributed_interactive_simulation-1.0-py3.6.egg/distributed_interactive_simulation/PduFactory.py", line 74, in getPdu
    pdu.parse(inputStream)
  File "/usr/local/lib/python3.6/dist-packages/distributed_interactive_simulation-1.0-py3.6.egg/distributed_interactive_simulation/dis7.py", line 6446, in parse
    self.variableDatums.append(getPdu(inputStream))
NameError: name 'getPdu' is not defined

Do you mind sharing a sample CommentPdu packet? It would help debug this one. I'm trying to understand why we changed the code to call getPdu here.