jehrensb / Nessi

Network Simulator in Python
GNU General Public License v2.0
7 stars 7 forks source link

getting error while running from Examples #2

Open ghost opened 8 years ago

ghost commented 8 years ago

Tried running Examples/lan-csma.py on nessi; getting error struct.error: 'i' format requires -2147483648 <= number <= 2147483647

seems the compatibility issue is not fully resolved?

robertsonpr commented 8 years ago

Hi, One solution we found looks like this: It's a 64 bit integer conversion problem.

The error originates here : TrafficSink.py line 367 > srcId, pduId = struct.unpack("ii", bitstream[:8]) Try changing this line to: TrafficSink.py line 376 > srcId, pduId = struct.unpack("qq", bitstream[:16])