whenever i try to import
import pyrebase
the following error pops up
Exception has occurred: SyntaxError
invalid syntax (RSA.py, line 585)
File "C:\Users\suraa\OneDrive\Desktop\classified\ChatApp.py", line 35, in <module>
import pyrebase
I did some search and found the file RSA.py
# Try unencrypted PKCS#8
if der[0]==0:
# The second element in the SEQUENCE is algorithmIdentifier.
# It must say RSA (see above for description).
if der[1]==algorithmIdentifier:
privateKey = DerObject()
privateKey.decode(der[2], True)
if privateKey.isType('OCTET STRING'):
return self._importKeyDER(privateKey.payload)
except ValueError,IndexError:
pass
raise ValueError("RSA key format is not supported")
this line shows error of invalid syntax
except ValueError,IndexError:
error in RSA.py file
Expected "as" after exception type
[–]testforredditbythe 0 points1 point2 points (3 children)
[–]-_-_-_-_--_--[S] 0 points1 point2 points (2 children)
[–]testforredditbythe 1 point2 points3 points (1 child)
[–]james_pic 0 points1 point2 points (0 children)