It looks like the root of the error is attempting to import dataclasses in your "security/identity.py” file.
Dataclasses were added in 3.7, so you’ll need to upgrade Python (would recommend, 3.6 is EOL in a year) or install the backport. https://pypi.org/project/dataclasses/ — Theron > On Dec 15, 2021, at 9:14 AM, David Dye <[email protected]> wrote: > > Hi - I am using python 3.6.9 and pyramid 2.0. I searched the docs and these > converstations but did not find "authclient". Any ideas what I may be doing > wrong? Thank you very much! > > Traceback (most recent call last): > File "/home/ec2-user/.local/lib/python3.6/site-packages/pyramid/path.py", > line 387, in _zope_dottedname_style > found = getattr(found, n) > AttributeError: module 'h.cli.commands' has no attribute 'authclient' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main > "__main__", mod_spec) > File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code > exec(code, run_globals) > File "/home/ec2-user/h/h/__main__.py", line 4, in <module> > main() > File "/home/ec2-user/h/h/cli/__init__.py", line 71, in main > cli.add_command(resolver.resolve(cmd)) > File "/home/ec2-user/.local/lib/python3.6/site-packages/pyramid/path.py", > line 307, in resolve > return self._resolve(dotted, package) > File "/home/ec2-user/.local/lib/python3.6/site-packages/pyramid/path.py", > line 334, in _resolve > return self._zope_dottedname_style(dotted, package) > File "/home/ec2-user/.local/lib/python3.6/site-packages/pyramid/path.py", > line 389, in _zope_dottedname_style > __import__(used) > File "/home/ec2-user/h/h/cli/commands/authclient.py", line 4, in <module> > from h.security import token_urlsafe > File "/home/ec2-user/h/h/security/__init__.py", line 10, in <module> > from h.security.identity import Identity # noqa:F401 > File "/home/ec2-user/h/h/security/identity.py", line 3, in <module> > from dataclasses import dataclass > ModuleNotFoundError: No module named 'dataclasses' > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/1862156c-bc90-45be-988b-811913b8dba7n%40googlegroups.com > > <https://groups.google.com/d/msgid/pylons-discuss/1862156c-bc90-45be-988b-811913b8dba7n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/F667FF52-5FC1-46DB-8ACB-084AB28C4AE3%40luhn.com.
