Problem with djangorestframework_simplejwt and M1

Hi all,

Currently at Ultimate Django Course, Unit 2, Section: Securing API’s, Lesson 6.

I get this error when I try to log in a new user:

ImportError at /auth/jwt/create
dlopen(/Users/pdidone/.local/share/virtualenvs/storefront-gYy2pzDN/lib/python3.9/site-packages/cryptography/hazmat/bindings/_rust.abi3.so, 0x0002): tried: '/Users/pdidone/.local/share/virtualenvs/storefront-gYy2pzDN/lib/python3.9/site-packages/cryptography/hazmat/bindings/_rust.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/pdidone/.local/share/virtualenvs/storefront-gYy2pzDN/lib/python3.9/site-packages/cryptography/hazmat/bindings/_rust.abi3.so' (no such file), '/Users/pdidone/.local/share/virtualenvs/storefront-gYy2pzDN/lib/python3.9/site-packages/cryptography/hazmat/bindings/_rust.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

I appreciate your help

Seems like someone with an Apple will have to chime in, but in the meantime you might dive down the Google hole and find similar errors and their solutions.

Some Googling around turned up these results: