kxgames / glooey

An object-oriented GUI library for pyglet.
MIT License
91 stars 6 forks source link

The module has no attribute 'Label' #19

Closed MrKioZ closed 5 years ago

MrKioZ commented 6 years ago

I copied the Code that in the "Read me" GitHub and it gave me this Error:


  File "C:\Users\Adam\Desktop\testing\glooey.pyw", line 4, in <module>
    import glooey
  File "C:\Users\Adam\Desktop\testing\glooey.pyw", line 10, in <module>
    class MyLabel(glooey.Label):
AttributeError: module 'glooey' has no attribute 'Label'```
kalekundert commented 6 years ago

I think the problem is that your script is named glooey.pyw. That will cause import glooey to import your script, rather than the actual glooey library, which I believe is the cause of the error you're seeing.