omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Issue with ATTR/ATTRS

    Pythonista
    help needed attr new attrs newbie
    3
    3
    1180
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rxvan
      rxvan last edited by

      Issue with ATTRS/ATTR.

      Basically, I’ve installed it using Stash, and when trying to use @attr.s it doesn’t work, it says that “Module ‘attr’ has no attribute ‘s’” any help would be appreciated :)

      mikael 1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        Try restarting Pythonista.
        Then make sure attract appears in Modules/site-packages-3
        Be sure to import attr.
        Make sure you don’t have another file called attr.py anywhere.

        1 Reply Last reply Reply Quote 1
        • mikael
          mikael @rxvan last edited by

          @rxvan, the package that contains attr.s is installed with pip install attrs (note the s) and imported with attr (no s). There is also a package called attr which is also imported with attr but does not contain attr.s.

          Looks like you have the wrong one. Try removing that and installing attrs.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors