You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python Version: 3.7.0 (installed via Anaconda, thus run with pythonw)
Gooey Version: 1.0.3.1
Thorough description of problem
Expected Behavior: the GUI opens up
Actual Behavior: the program just hangs
A minimal code example -- preferably copy/pastable in the issue itself (less time figuring out how to run your code == more time debugging!)
fromgooeyimportGooey, GooeyParser# import matplotlib.pyplot as plt # hangs when imported here@Gooeydefmain():
argparser=GooeyParser()
argparser.add_argument('foo')
args=argparser.parse_args()
importmatplotlib.pyplotasplt# works as expected when imported hereprint(args.foo)
if__name__=='__main__':
main()
Screenshot (if visual quirk)
Anything else you may think will be helpful
I experienced something quirky when trying to use Gooey with importing matplotlib; when matplotlib is imported at the beginning of the tile no GUI appears, and when it is imported within the scope of main the program works as expected.
The only thing that I can think of is matplotlib polluting the global namespace or something, but that is a complete guess.
It is obviously not a high priority issue (due to the easy workaround), but I guess there could be something sinister going on under the covers.
Has anyone else encountered this issue?
Thanks! ^_^
The text was updated successfully, but these errors were encountered:
Interesting. Which matplotlib version are you using?
I tried running my dev build using the latest matplotlib and it fails with the error:
implement_array_function method already has a docstring
Are you seeing any error messages?
I see this this numpy issue related to the failure. In short, it doesn't like being re-initialized due to its use of globals. Seems quite a few libraries are affected by it. Per an update on that issue a few days ago, it's something they're working on fixing.
FWIW, I downgraded to matplotlib==3.1.3 and everything played nicely again.
Oh interesting, I was at matplotlib==3.0.2 but upgraded up to matplotlib==3.1.3 and everything worked.
I'm not seeing any error messages, but I think that is due to me being at an older version of matplotlib.
Thanks for your help and for Gooey!
It is a fantastic tool that I use frequently.
pythonw
)I experienced something quirky when trying to use
Gooey
with importingmatplotlib
; whenmatplotlib
is imported at the beginning of the tile no GUI appears, and when it is imported within the scope ofmain
the program works as expected.The only thing that I can think of is
matplotlib
polluting the global namespace or something, but that is a complete guess.It is obviously not a high priority issue (due to the easy workaround), but I guess there could be something sinister going on under the covers.
Has anyone else encountered this issue?
Thanks! ^_^
The text was updated successfully, but these errors were encountered: