You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have downloaded and installed the latest version of the library. However, when I run the example provided in <open-dis/open-dis-python/examples/dis_sender.py>, I encounter the following error:
File "C:\Users\User\Desktop\open-dis-python-master\open-dis-python-master\examples\dis_sender.py", line 57, in <module> send()
File "C:\Users\user\Desktop\open-dis-python-master\open-dis-python-master\examples\dis_sender.py", line 49, in send pdu.serialize(outputStream)
File "C:\Programmi\anaconda3\envs\myenv\lib\site-packages\opendis\dis7.py", line 5323, in serialize super(EntityStatePdu, self).serialize(outputStream)
File "C:\Programmi\anaconda3\envs\myenv\lib\site-packages\opendis\dis7.py", line 4204, in serialize super(EntityInformationFamilyPdu, self).serialize(outputStream)
File "C:\Programmi\anaconda3\envs\myenv\lib\site-packages\opendis\dis7.py", line 4181, in serialize outputStream.write_unsigned_byte(self.pduStatus)
File "C:\Programmi\anaconda3\envs\myenv\lib\site-packages\opendis\DataOutputStream.py", line 22, in write_unsigned_byte self.stream.write(struct.pack('B', val))
struct.error: required argument is not an integer
The text was updated successfully, but these errors were encountered:
Hi SciamingSim,
Fix the script dis_sender.py by adding the following codes between line 24 and 25
pdu.pduType = 1
pdu.pduStatus = 0
pdu.entityAppearance=0
pdu.capabilities=0
NB: This is merely a stopgap solution, or a workaround. The crux of the issue actually resides in the default values within the code, which are utilized when the serialize method is executed.
I have downloaded and installed the latest version of the library. However, when I run the example provided in <open-dis/open-dis-python/examples/dis_sender.py>, I encounter the following error:
The text was updated successfully, but these errors were encountered: