The fix was simple for me
Use f = open(‘bytes.bin’, ‘w’) instead of f = open(‘bytes.bin’, ‘wb’)
In python 3 ‘w’ is what you need..!!
Similar Posts:
- Error reporting and resolution of Python 3 using binascii method
- TypeError: write() argument must be str, not bytes
- Module not found: Error: Can’t resolve ‘bundle.js’ in…
- Python Error: TypeError: string argument without an encoding
- python csv error: line contains null byte [How to Solve]
- Python PIP upgrade error tips [How to Solve Possible Error]
- [Solved] Python Numpy Data load error: Unicode error: unpicking a python object failed: Unicode decodeerror
- Exploit completed, but no session was created.
- [Solved] Python-pip Upgrade ERROR: AttributeError: ‘NoneType’ object has no attribute ‘bytes’
- AttributeError: ‘NoneType’ object has no attribute ‘split’ [How to Solve]