-
Notifications
You must be signed in to change notification settings - Fork 60
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
AttributeError: 'FigureCanvasMac' object has no attribute 'renderer' #47
Comments
Hi, thanks for checking out pddlgym and for filing the issue! It looks like this issue may be related to
|
Hello Tom,
Thanks for replying that quickly. I can now execute the file, but there is
no plot at all shown or any other output of the program. Is that okay?
Thanks,
Bruno
…On Fri, Dec 18, 2020 at 6:52 PM Tom Silver ***@***.***> wrote:
Hi, thanks for checking out pddlgym and for filing the issue! It looks
like this issue may be related to matplotlib's backend. Would you mind
trying adding this line to the very top of your script (make sure it's the
first thing) and see if that resolves the issue?
import matplotlib; matplotlib.use('agg')
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#47 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGK55NCVGZEG3NOY422NBATSVOJFNANCNFSM4VBO4GZA>
.
|
Hi Bruno, glad to hear that resolved the error! Yes, that sounds like expected behavior. If you'd like to see the images that are produced, you could try out the "hello world" example from the README:
That example should save two images in your current directory (frame1.png and frame2.png). Thanks again for raising the issue. We'll update the README with a note on matplotlib. Feel free to reopen if anything else arises. |
Using functionalities in Render on macOS (M1, Monterey) that generate a canvas with visual output (e.g. 'filter picks by locs') produces the following error: AttributeError: 'FigureCanvasMac' object has no attribute 'renderer'. Adding the line 'matplotlib.use('agg')' fixes this (e.g. described here tomsilver/pddlgym#47)
I am trying to use it in Mac Catalina 10.15.7. I followed the steps to execute demo.py, after installing FF by the Mac link provided.
I did the make, and exported Environment variable to FF/ff path. However, when executing demo.py it shows the following error:
The text was updated successfully, but these errors were encountered: