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
-
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 :) -
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. -
@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.