scyther icon indicating copy to clipboard operation
scyther copied to clipboard

wx.SplashScreen Error

Open jhkim07 opened this issue 8 years ago • 12 comments

I am using macOS Sierra and installed wxpython-3.0.2.0, graphviz-2.40.1, and python 2.7. When I run >>python scyther-gui.py, the following error comes up.

Traceback (most recent call last): File "scyther-gui.py", line 141, in class MySplashScreen(wx.SplashScreen): AttributeError: 'module' object has no attribute 'SplashScreen'

Could you help me resolve this problem?

jhkim07 avatar Feb 22 '17 14:02 jhkim07

I get this same issue on os x el capitan

urbangemz avatar Jan 14 '18 00:01 urbangemz

Me too. I read somewhere that it could be because we installed a bad version of wxPython. I tried using 'pip', using 'brew' but didn't manage....

gaizka64 avatar Mar 23 '18 08:03 gaizka64

I got this same error at the first time After I re-installed then it can work I use windows 10 and installed python2.7 、 graphviz 0.8.2 and wxPython 4.0.1 But i still don't know what's the problem

Yueneko29 avatar Apr 11 '18 08:04 Yueneko29

It seems this is caused by a change in wxPython that is not backwards compatible, see e.g.:

https://stackoverflow.com/questions/17844032/wx-splashscreen-doesnt-work

Using an older version of wxPython (2.6/2.7) might solve this, but Scyther needs an explicit check for wxPython versions to let the user know what the problem is. Ideally, we move to a newer version of wxPython, but this might involve more substantial changes.

cascremers avatar Apr 11 '18 09:04 cascremers

Has there been any solution found for this problem yet as I am stuck on Mac OS Sierra 10.13

amgamundani avatar Jun 07 '18 22:06 amgamundani

I had this issue as well. You need to use wx.adv.SplashScreen instead of wx.SplashScreen and import wx.adv as well.

shahnewazsakib avatar Oct 30 '18 19:10 shahnewazsakib

I downloaded and installed an older version as suggested in this thread, specifically 2.7.1.1 from SourceForge and that fixed the error for me. I'm not sure which is the latest version that works; this was the first one I attempted and it fixed the issue.

https://sourceforge.net/projects/wxpython/files/wxPython/2.7.1.1/

Thomas-Fleming avatar Nov 09 '18 18:11 Thomas-Fleming

Hi all,

Thanks for the comments. I hope to find the time soon to fix this. Ultimately it is down to wxPython not being backwards compatible; ideally we should fix Scyther to work with the most recent versions of wxPython (as well as Python 3), but it is a little bit of work to do so. I'd be very open to patches/pull requests that fix this!

Best,

Cas

On Fri, Nov 9, 2018 at 7:26 PM Tom [email protected] wrote:

I downloaded and installed an older version as suggested in this thread, specifically 2.7.1.1 from SourceForge and that fixed the error for me. I'm not sure which is the latest version that works; this was the first one I attempted and it fixed the issue.

https://sourceforge.net/projects/wxpython/files/wxPython/2.7.1.1/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cascremers/scyther/issues/15#issuecomment-437450674, or mute the thread https://github.com/notifications/unsubscribe-auth/ABabOG05T9LG7GorD_PCG7G9t1fGFtw1ks5utcjPgaJpZM4MIv_Z .

cascremers avatar Nov 09 '18 18:11 cascremers

Cas, I submitted a pull request. Changes are basic but all of the expected functionality now seems to work with wxPython 4.0 and I can't see any runtime errors. I'm not a Python developer so you should definitely double check before merging! :)

Tom

Thomas-Fleming avatar Nov 09 '18 22:11 Thomas-Fleming

@Thomas-Fleming's changes fixed it for me (running macOS Mojave and installed wxPython via pip)

I couldnt scyther from source so I've copied the files in /Gui/* and /scyther-gui.py to the scyther-mac-v1.1.3 distribution.

maerten avatar Nov 10 '18 10:11 maerten

Agreed. With @Thomas-Fleming 's PR I've got ScytherTool working (macOS Mojave and wxPython with pip)

JIAZHEN avatar Feb 18 '19 10:02 JIAZHEN

This should all be fixed in the python3-wxpython4 branch soon.

cascremers avatar Oct 28 '20 14:10 cascremers