Traceback (most recent call last):


 "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner

self.run()


 "/usr/lib/python3.5/threading.py", line 862, in run

self._target(*self._args, **self._kwargs)


 "/root/Downloads/GreatSCT/fileOps.py", line 47, in generate

return (self.genFromTemplate(template))


 "/root/Downloads/GreatSCT/fileOps.py", line 92, in genFromTemplate

shellcodex64 = generator.genShellcode(domain, port, "x64", extraProcessing)


 "/root/Downloads/GreatSCT/generator.py", line 39, in genShellcode

shellcode = self.b64Encode(shellcode)


 "/root/Downloads/GreatSCT/generator.py", line 57, in b64Encode

shellcode = str(base64.b64encode(code))


 "/usr/lib/python3.5/base64.py", line 59, in b64encode

encoded = binascii.b2a_base64(s)[:-1]
TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):


 "/home/cpu11453local/anaconda3/envs/gensim/lib/python3.6/runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)


 "/home/cpu11453local/anaconda3/envs/gensim/lib/python3.6/runpy.py", line 85, in _run_code

exec(code, run_globals)


 "/home/cpu11453local/anaconda3/envs/gensim/lib/python3.6/site-packages/gensim/scripts/word2vec2tensor.py", line 93, in <module>

word2vec2tensor(args.input, args.output, args.binary)


 "/home/cpu11453local/anaconda3/envs/gensim/lib/python3.6/site-packages/gensim/scripts/word2vec2tensor.py", line 73, in word2vec2tensor

file_metadata.write(gensim.utils.to_utf8(word) + gensim.utils.to_utf8('\n'))
TypeError: write() argument must be str, not bytes
