Skip to content
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

[toga-demo] brutus-32.png file missing #13

Closed
iuliux opened this issue Aug 4, 2014 · 2 comments
Closed

[toga-demo] brutus-32.png file missing #13

iuliux opened this issue Aug 4, 2014 · 2 comments

Comments

@iuliux
Copy link

iuliux commented Aug 4, 2014

toga-demo installed via pip

sudo toga-demo

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/toga/platform/gtk/app.py", line 27, in _startup
    self.main_window.app = self
  File "/usr/local/lib/python2.7/dist-packages/toga/platform/gtk/window.py", line 61, in app
    self._startup()
  File "/usr/local/lib/python2.7/dist-packages/toga/platform/gtk/window.py", line 36, in _startup
    item_impl.set_icon_widget(toolbar_item.icon._impl_32)
  File "/usr/local/lib/python2.7/dist-packages/toga/platform/gtk/widgets/icon.py", line 33, in <lambda>
    _impl_32 = property(lambda self: self.__impl(32))
  File "/usr/local/lib/python2.7/dist-packages/toga/platform/gtk/widgets/icon.py", line 28, in __impl
    GdkPixbuf.Pixbuf.new_from_file(self._filename).scale_simple(size, size, GdkPixbuf.InterpType.BILINEAR)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 137, in constructor
    return info.invoke(cls, *args, **kwargs)
gi._glib.GError: Failed to open file '/usr/local/lib/python2.7/dist-packages/toga_demo/icons/brutus-32.png': No such file or directory

Environment:

Mint 15
Linux 3.8.0-19-generic #29-Ubuntu x86_64 GNU/Linux
Python 2.7

After I copied some random png file as brutus-32.png it ran.

@cyrildoussin
Copy link

This would be the same as pybee/toga-demo#1

@iuliux
Copy link
Author

iuliux commented Aug 4, 2014

Yes, sorry for posting it in the wrong place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants