Deployment error due to firebase authentication

Hi everyone. Please, I need help here. I am trying to deploy an app that uses firebase authentication. Everything is working fine in my local environment, but I keep on receiving this error during deployment:

/home/adminuser/venv/lib/python3.12/site-packages/oauth2client/crypt.py:55
in

 52 │   pkcs12_key_as_pem = _bad_pkcs12_key_as_pem                          
 53                                                                         
 54 try:                                                                    

❱ 55 │ from oauth2client import _pycrypto_crypt
56 │ PyCryptoSigner = _pycrypto_crypt.PyCryptoSigner
57 │ PyCryptoVerifier = _pycrypto_crypt.PyCryptoVerifier
58 except ImportError: # pragma: NO COVER

/home/adminuser/venv/lib/python3.12/site-packages/oauth2client/_pycrypto_cry
pt.py:17 in

 14 """pyCrypto Crypto-related routines for oauth2client."""                
 15                                                                         
 16 from Crypto.Hash import SHA256                                          

❱ 17 from Crypto.PublicKey import RSA
18 from Crypto.Signature import PKCS1_v1_5
19 from Crypto.Util.asn1 import DerSequence
20
────────────────────────────────────────────────────────────────────────────────
────────────────────────────────────────────────────────────────────────────────
/home/adminuser/venv/lib/python3.12/site-packages/Crypto/PublicKey/RSA.py:5
85
except ValueError, IndexError:

────────────────────────────────────────────────────────────────────────────────
SyntaxError: multiple exception types must be parenthesized

Please, what could be the problem and the possible solution?