rlittlefield / pypaseto

PASETO for Python
Other
96 stars 11 forks source link

AttributeError: module 'paseto' has no attribute 'create' #22

Closed djneely closed 2 years ago

djneely commented 2 years ago

Maybe I'm misreading the documentation but am running into an issue where I'm unable to create the token. From both my code (copy and pasted usage example) and command line I'm getting the following:

>>> import paseto
>>> paseto.create(key='test',purpose='local',claims={'test':'test'},exp_seconds=300)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'paseto' has no attribute 'create'

Thanks for the help

djneely commented 2 years ago

Apologies for this. It turns out I also had pypaseto also installed. I went through and removed all paseto references then re-added and I'm back in business. Sorry about that.