pybee / toga-demo

A demonstration of the capabilities of the Toga widget toolkit.
BSD 3-Clause "New" or "Revised" License
16 stars 9 forks source link

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

Closed Barbosabyte closed 7 years ago

Barbosabyte commented 7 years ago

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 commented 7 years ago

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

Barbosabyte commented 7 years ago

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 commented 7 years ago

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