scyther
scyther copied to clipboard
Error while oening file and viewing attack
I have installed scyther using the method described in https://people.cispa.io/cas.cremers/scyther/index.html. However, if I click on open, under file, I get "'module' object has no attribute 'OPEN'" error. The exact message is: " File "Gui\Mainwindow.py", line 278, in OnOpen if self.askUserForFilename(style=wx.OPEN,
AttributeError: 'module' object has no attribute 'OPEN'" Moreover, I copied the code for "needham-schroeder.spdl" and when I run it, I get the output. But whenevr I try to view the attack I get "'AttackDisplay' object has no attribute 'GetClientSizeTuple'". The exact message is: " File "Gui\Scytherthread.py", line 274, in onViewButton w = Attackwindow.AttackWindow(btn.claim)
File "Gui\Attackwindow.py", line 251, in init self.CreateInteriorWindowComponents()
File "Gui\Attackwindow.py", line 284, in CreateInteriorWindowComponents dp = AttackDisplay(self, self, attacks[0])
File "Gui\Attackwindow.py", line 80, in init self.update(True)
File "Gui\Attackwindow.py", line 96, in update (framewidth,frameheight) = self.GetClientSizeTuple()
AttributeError: 'AttackDisplay' object has no attribute 'GetClientSizeTuple'"
How to solve these issues?
I have the same problem with you. Can you solve it?
I have the same problem with you. Can you solve it?
replace “(framewidth,frameheight) = self.GetClientSizeTuple()” with “framewidth,frameheight = self.GetClientSize()”
Where we are suppose to do this?? replace “(framewidth,frameheight) = self.GetClientSizeTuple()” with “framewidth,frameheight = self.GetClientSize()”
I have installed scyther using the method described in https://people.cispa.io/cas.cremers/scyther/index.html. However, if I click on open, under file, I get "'module' object has no attribute 'OPEN'" error. The exact message is: " File "Gui\Mainwindow.py", line 278, in OnOpen if self.askUserForFilename(style=wx.OPEN,
AttributeError: 'module' object has no attribute 'OPEN'" Moreover, I copied the code for "needham-schroeder.spdl" and when I run it, I get the output. But whenevr I try to view the attack I get "'AttackDisplay' object has no attribute 'GetClientSizeTuple'". The exact message is: " File "Gui\Scytherthread.py", line 274, in onViewButton w = Attackwindow.AttackWindow(btn.claim)
File "Gui\Attackwindow.py", line 251, in init self.CreateInteriorWindowComponents()
File "Gui\Attackwindow.py", line 284, in CreateInteriorWindowComponents dp = AttackDisplay(self, self, attacks[0])
File "Gui\Attackwindow.py", line 80, in init self.update(True)
File "Gui\Attackwindow.py", line 96, in update (framewidth,frameheight) = self.GetClientSizeTuple()
AttributeError: 'AttackDisplay' object has no attribute 'GetClientSizeTuple'"
How to solve these issues?
is the above solution working for you?????????????
Where we are suppose to do this?? replace “(framewidth,frameheight) = self.GetClientSizeTuple()” with “framewidth,frameheight = self.GetClientSize()”
Gui/Attackwindow.py , line 96
line 96 of of attackwindow.py ???? is it working do we need to follow any other step also after changing it?
On Fri, 18 Jan 2019 at 18:16, Emmmpty [email protected] wrote:
Where we are suppose to do this?? replace “(framewidth,frameheight) = self.GetClientSizeTuple()” with “framewidth,frameheight = self.GetClientSize()”
Gui/Attackwindow.py , line 96
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cascremers/scyther/issues/17#issuecomment-455534842, or mute the thread https://github.com/notifications/unsubscribe-auth/AspbfmeYaKlOC9pgIJNFUHbhxf7ASRu8ks5vEcJBgaJpZM4YCtvw .
-- Rachana
line 96 of of attackwindow.py ???? is it working do we need to follow any other step also after changing it? …
AttributeError: 'AttackDisplay' object has no attribute 'GetClientSizeTuple'"
this problem can be solved
but my scyther also can not open the file, save the picture/file...You can change the parameters of several functions according to the error
no ...its not working
Fix for opening files here, I stuck it on stackexchange for double visibility and the opportunity for discussion, as I'm not 100% sure what I'm doing :D
This should have been resolved by newer versions (notably 1.2).