10000 GTK Warning message emitted when interactively saving figure by mdboom · Pull Request #769 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

GTK Warning message emitted when interactively saving figure #769

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

Merged
merged 1 commit into from
Mar 23, 2012

Conversation

mdboom
Copy link
Member
@mdboom mdboom commented Mar 20, 2012

Just started noticing this while on the master branch. I was just simply using the "save" button to save my figures from the GTK window.

/home/bvr/Programs/matplotlib/lib/matplotlib/backends/backend_gtk.py:1078: GtkWarning: Unable to retrieve the file info for `file:///home/bvr/Documents/ZigZag/image.png': Error stating file '/home/bvr/Documents/ZigZag/image.png': No such file or directory
  if self.run() != int(gtk.RESPONSE_OK):

The figure still saves just fine, it just emits this warning message.

@mdboom
Copy link
Member
mdboom commented Mar 20, 2012

Seems benign, and most likely a bug in recent versions of Gtk itself. (Google "Unable to retrieve the file info" and you'll see tons of other Gtk apps that have this problem). It can be hidden by calling set_do_overwrite_confirmation(False), but then, of course, there's no overwrite confirmation.

@mdboom
Copy link
Member
mdboom commented Mar 20, 2012

This pull request simply hides this specific warning. Until there's an upstream Gtk fix, I'm not sure there's much else we can do.

@WeatherGod
Copy link
Member Author

looks reasonable. Unfortunately, I do not have time to check it myself.

mdboom added a commit that referenced this pull request Mar 23, 2012
GTK Warning message emitted when interactively saving figure
@mdboom mdboom merged commit 9246b54 into matplotlib:v1.1.x Mar 23, 2012
@mdboom mdboom deleted the gtk-warning branch March 3, 2015 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0