Skip to content
This repository has been archived by the owner on Aug 15, 2017. It is now read-only.

AttributeError: module 'toga' has no attribute 'App' #11

Closed
Barbosabyte opened this issue Nov 13, 2016 · 3 comments
Closed

AttributeError: module 'toga' has no attribute 'App' #11

Barbosabyte opened this issue Nov 13, 2016 · 3 comments

Comments

@Barbosabyte
Copy link

Followed the tutorial on RTD, but I get this error running toga-demo:
AttributeError: module 'toga' has no attribute 'App'
Needless to say that if I try the first example it returns the same error.

@freakboy3742
Copy link
Member

What platform are you running on? (macOS? iOS? Linux?) If you're running Windows, you've probably fallen foul of #4.

@Barbosabyte
Copy link
Author

I'm on Linux (Xubuntu 16.04 64 bit). I made sure to use pip3 and I tried running inside and outside a virtual environment.
This is the full output:

Traceback (most recent call last):
  File "/usr/local/bin/toga-demo", line 7, in <module>
    from toga_demo.__main__ import main
  File "/usr/local/lib/python3.5/dist-packages/toga_demo/__main__.py", line 6, in <module>
    from .app import TogaDemo
  File "/usr/local/lib/python3.5/dist-packages/toga_demo/app.py", line 8, in <module>
    class TogaDemo(toga.App):
AttributeError: module 'toga' has no attribute 'App'

@Barbosabyte
Copy link
Author

It was a problem with toga installation. I used sudo pip3 install toga-demo -I and now it works.

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

No branches or pull requests

2 participants