-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wx._core.wxAssertionError: (wxPython 4.1.x) bug (please use wxPython ~4.0.7 please) #682
Comments
@chanduborkar - Please fill out the template completely. |
what version of wxPython are you using? Also, it would be much easier for you to copy / paste the code directly; your comment above is full of many mistakes, but I cant' tell if you really typed that exactly, or you typed it here incorrectly. |
@alisonsin could you please copy/paste the full terminal output so I can assess the error, thanks! |
because here is my test of the 2.1.7.1 code: (i.e. I cannot re-produce this error).
You can check also which version of wxPython you have by running:
i.e. for me:
|
|
@MMathisLab thank you very much |
it looks like you are on MacOS? can you run:
and see if the error persists? it may be that wxpython is not installed in ipython the same way... |
This is what I got if I do that |
awe, looks like you didn't activate your env first, i.e. run
then |
or if you're not on MacOS, |
|
I saw that in the label_frame subfolder, there's another subfolder created in which I saw images of frames-extracted in it. However, they are not labeled. |
Hi sorry for the typos here. However, I am sure that I did the correct command in cmd. I am using wx.__version: '4.1.0' |
@alisonsin looks like xcode needs updated. https://github.com/AlexEMG/DeepLabCut/wiki/Troubleshooting-Tips
|
^that is the expected behavior before you start labeling. |
|
@MMathisLab I did that, but the error still persisted. Thank you though
|
@MMathisLab the error still persists. Did you find if any mistake I am doing? Thanks for your help! |
hi, I also have the same error, and my version of wx is 4.1.0 as well. My OS is ubuntu 16.04 (in fact a virtual ubuntu running on mac os x) . I will try to downgrade wx to '4.0.7.post2' and see if I still have the issue |
Ok I confirm that the problem is solved for me if I install wxpython 4.0.7.post2 (instead of the latest release). To do so, I downloaded the whl corresponding to my ubuntu version (16.04) from https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04/ So for python 3.6, that was https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04/wxPython-4.0.7.post2-cp36-cp36m-linux_x86_64.whl Then in the folder where the whl file was downloaded, i simply did a
after that i can open without any issue th GUI |
@alisonsin @chanduborkar could you both, inside the DLC environment:
|
@MMathisLab It worked! Thank you very much!! |
@MMathisLab Thank you! It works! |
This fix worked for me but I ran into an intermediate issue trying to install wxPython 4.0.7. Downgrading setuptools to version 43 solved the issue. |
Having the same issue on Windows 10 as Emilioslsaias, reinstalling wxpython==4.0.7.post2 did not solve the issue. Any ideas toward the right direction? |
Did you find a solution for this issue, @onurserce? |
@onurserce, @EmiliosIsaias, are you guys on non-English machines? Looks like wxpython struggles loading pngs... (see here https://stackoverflow.com/a/45383286).
with def launch_dlc():
app = wx.App()
app.locale = wx.Locale(wx.LANGUAGE_ENGLISH)
frame = MainFrame().Show()
app.MainLoop() to locally enforce the use of English by the wxpython app. |
Yes, right! I am on a non-English machine and I did see some stackoverflow posts talking about issues with region/language configurations for wxPython. I'll change the language of the machine and if it doesn't work, I try your suggested code (y) |
It worked like a charm! Thanks, @jeylau! |
@EmiliosIsaias Since I just needed the gui for labeling I've ended up downgrading to 2.2rc2 on my workstation but it's good to be aware of @jeylau 's option, thanks! |
It looks like this issue can cause a range of GUI problems, including with the cropping GUI. |
The error for the region/locale thing was fixed in wx4.2. It's rare and requires a different local and if you use wx4.0.7 and python 3.7 it would be fine. For other setups: def InitLocale(self):
import sys
if sys.platform.startswith("win") and sys.version_info > (3, 8):
import locale
locale.setlocale(locale.LC_ALL, "C") Actually fixed it. It was nothing to do with this project that annoying thing was a thorn in all wxPython projects for a while. |
Error in labeling the frames, as depicted in screenshot.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: