GithubHelp home page GithubHelp logo

Runtime error with wxPython 4.2.1 about easyabc HOT 5 OPEN

jwdj avatar jwdj commented on June 16, 2024
Runtime error with wxPython 4.2.1

from easyabc.

Comments (5)

jwdj avatar jwdj commented on June 16, 2024 1

I have upgraded (on Windows) to wxPython 4.2.1 but there the issue is not reproducable. According to the documentation (https://wxpython.org/Phoenix/docs/html/wx.MenuItem.html#wx.MenuItem.__init__) the second argument is supposed to be an int. So I think the problem lies elsewhere.
What Python version are you using?

from easyabc.

kirillrdy avatar kirillrdy commented on June 16, 2024

I have upgraded (on Windows) to wxPython 4.2.1 but there the issue is not reproducable. According to the documentation (https://wxpython.org/Phoenix/docs/html/wx.MenuItem.html#wx.MenuItem.__init__) the second argument is supposed to be an int. So I think the problem lies elsewhere. What Python version are you using?

I believe its 3.10.12

from easyabc.

mausch avatar mausch commented on June 16, 2024

The Nix package uses Python 3.9.
EasyABC has other known issues with Python 3.10 ( #52 )

from easyabc.

kirillrdy avatar kirillrdy commented on June 16, 2024

The Nix package uses Python 3.9. EasyABC has other known issues with Python 3.10 ( #52 )

indeed you are right !

from easyabc.

mausch avatar mausch commented on June 16, 2024

According to the documentation (https://wxpython.org/Phoenix/docs/html/wx.MenuItem.html#wx.MenuItem.__init__) the second argument is supposed to be an int. So I think the problem lies elsewhere.

Yeah, I'm thinking there's something wrong with the Nix package for wxPython or wxWidgets.
I changed that EasyABC line to say wx.ID_ANY instead of -1 and I get TypeError: MenuItem(): argument 2 has unexpected type 'StandardID'
which is a more googleable error message that led me to https://web.archive.org/web/20230603153021/https://discuss.wxpython.org/t/typeerror-menuitem-argument-2-has-unexpected-type-standardid-when-running-the-demo/36464
in which people suspect of an incorrect wxWidgets build.

I'll see if I can create a small repro.

from easyabc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.