Closed mimeister closed 4 years ago
Hi @species-gh, Thnx for pointing this out! I personally havent seen that error apparently because I have scapy version 2.2.0 in my system.
Hi, i just tested in on multiple versions: 2.2.0 : working 2.3.3 : not working (apt install python-scapy on Ubuntu 18.04) 3.0.0 : working (apt install python3-scapy on Ubuntu 18.04)
regards, Ralf
@ralfkundel found that adding attributes to packets works again in newer Scapy versions. So I switched to the current version available from the Scapy repo (2.4.3) and now the errors are gone. No need for a fix in the scripts :+1:
Hi, I'm currently trying to setup the SUME simulation as described in the switch-calc tutorial in step 9. Running the simulation with
Vivado opens as intended, but aborts the simulation. The console tells me, that
run.py
threw anAttributeError
(username and exact path replaced by '\<username>'):Origin of the error is the method
schedule_pkts()
inrun.py
, where the attributetuser_sport
is added dynamically to a Scapy packet instance:I could find even more attempts to add this attribute in other files, that will fail for sure, too.
After a lot of web search I could trace down the cause of the problem to be a change in Scapy four years ago, that introduced slots to most base classes, which prevents the dynamic addition of attributes.
Odd, that seemingly no one else here had stumbled upon this yet. :sweat_smile:
Additional information
OS: Ubuntu 18.04 Python: 2.7.17 Scapy: 2.3.3