imagepy icon indicating copy to clipboard operation
imagepy copied to clipboard

I had a problem when launching from a batch file: wx._core.wxAssertionError

Open GSLSK0626 opened this issue 3 years ago • 3 comments

C:\Users\fp-user>C:\Users\fp-user\Desktop\imagepy-0.2\ImagePy.bat

C:\Users\fp-user>python -m imagepy ipy Traceback (most recent call last): File "C:\Users\fp-user\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main return run_code(code, main_globals, None, File "C:\Users\fp-user\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in run_code exec(code, run_globals) File "C:\Users\fp-user\AppData\Local\Programs\Python\Python38\lib\site-packages\imagepy_main.py", line 4, in imagepy.show() File "C:\Users\fp-user\AppData\Local\Programs\Python\Python38\lib\site-packages\imagepy_init.py", line 31, in show ImagePy(None).Show() File "C:\Users\fp-user\AppData\Local\Programs\Python\Python38\lib\site-packages\imagepy\ui\mainframe.py", line 52, in init if IPy.uimode()=='ipy': self.load_aui() File "C:\Users\fp-user\AppData\Local\Programs\Python\Python38\lib\site-packages\imagepy\ui\mainframe.py", line 96, in load_aui self.widgets = widgetsloader.build_widgets(self, 'widgets', 'plugins') File "C:\Users\fp-user\AppData\Local\Programs\Python\Python38\lib\site-packages\imagepy\ui\widgetsloader.py", line 34, in build_widgets return build_widgets_panel(parent, datas, panel) File "C:\Users\fp-user\AppData\Local\Programs\Python\Python38\lib\site-packages\imagepy\ui\widgetsloader.py", line 21, in build_widgets_panel build_widget(choicebook, i) File "C:\Users\fp-user\AppData\Local\Programs\Python\Python38\lib\site-packages\imagepy\ui\widgetsloader.py", line 10, in build_widget parent.AddPage(i(parent), i.title, False ) File "C:\Users\fp-user\AppData\Local\Programs\Python\Python38\lib\site-packages\imagepy\widgets\histogram\histogram_wgt.py", line 17, in init self.sli_high = FloatSlider(self, (0,255), 0, '') File "C:\Users\fp-user\AppData\Local\Programs\Python\Python38\lib\site-packages\imagepy\ui\widgets\normal.py", line 283, in init subsizer.Add( self.spin, 0, wx.ALIGN_CENTER|wx.BOTTOM|wx.EXPAND, 5 ) wx._core.wxAssertionError: C++ assertion "!(flags & (wxALIGN_BOTTOM | wxALIGN_CENTRE_VERTICAL))" failed at ....\src\common\sizer.cpp(2184) in wxBoxSizer::DoInsert(): Vertical alignment flags are ignored with wxEXPAND Error in atexit._run_exitfuncs: wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ....\src\common\wincmn.cpp(470) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed

I'm using a batch file downloaded from Github and wxpython was the latest version.

GSLSK0626 avatar Nov 27 '20 06:11 GSLSK0626

same error here

duolanda avatar Mar 03 '21 06:03 duolanda

Which version is your wxPython? if it is 4.1, please switch it to 4.0.7.

qixinbo avatar Mar 04 '21 06:03 qixinbo

Which version is your wxPython? if it is 4.1, please switch it to 4.0.7.

Thanks for your answer, it works!

duolanda avatar Mar 05 '21 10:03 duolanda