Forum Archive

jedi runtime errors

JonB

i have been getting the following in the latest beta, when dealing with matplotlib and numpy:

/private/var/mobile/Containers/Bundle/Application/A06FE884-781E-49E6-8CD7-AF67B4583537/Pythonista.app/pylib/site-packages/jedi/parser/tree.py:126: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
  if classes and reverse != scope.isinstance(*classes):

i think previously this would have just crashed pythonista (in the previous beta, typing many matplotlib/numpy expression often resulted in a hard crash).

omz

Yes, I've seen some crashes with this as well, and I've tried to fix them in the latest build.

Question: Where do you see those error messages? Do they show up in the console while you're typing? Or when running the script afterwards?

omz

Okay, I think I've been able to reproduce this now. I guess it looks similar to this?

Screenshot

JonB

i have mainly seen this while typing in the editor, when i switch to console i see it. it doesnt steal focus or cause other issues, so is not that serious.