eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.51k stars 1.42k forks source link

sumopy_gui.py doesn't work if wxWidgets 3 installed #4775

Open jekhor opened 5 years ago

jekhor commented 5 years ago

According with wiki, sumopy doesn't work with wxWidgets 3.0 but tries to load 3.0 version first ( https://github.com/eclipse/sumo/blob/master/tools/contributed/sumopy/sumopy_gui.py#L53 ). So, if python bindings for wxWidgets 2.8 and 3.0 are present in system, 3.0 version is loaded and gui freezes.

Proposal: revert wxWidgets version selection to 2.8 only.

schwoz commented 5 years ago

Correct observation, only 2.8 works properly with the current version. So these lines in sumopy_gui.py should select the correct version: try: wxversion.select("2.8") except: sys.exit('ERROR: wxPython versions 2.8 not available.')

I have now a new SUMOPy version running with wx3.0 and above and will upgrade soon.