Traceback (most recent call last):


 "./emsdk", line 789, in xcode_sdk_version

return subprocess.check_output(['xcrun', '--show-sdk-version']).strip().split('.')
TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):


 "/home/nook/ctf/RsaCtfTool/attacks/single_key/../../sage/smallfraction.sage.py", line 4, in <module>

from sage.all_cmdline import *
# import sage library


 "/usr/lib/python3/dist-packages/sage/all_cmdline.py", line 26, in <module>

from sage.all import *


 "/usr/lib/python3/dist-packages/sage/all.py", line 93, in <module>

from sage.misc.all
import *
# takes a while


 "/usr/lib/python3/dist-packages/sage/misc/all.py", line 27, in <module>

from .html import html


 "/usr/lib/python3/dist-packages/sage/misc/html.py", line 20, in <module>

from sage.misc.latex import latex


 "/usr/lib/python3/dist-packages/sage/misc/latex.py", line 570, in <module>

from sage.structure.sage_object import SageObject


 "/usr/lib/python3/dist-packages/sage/structure/__init__.py", line 2, in <module>

import sage.structure.element


 "sage/structure/parent.pxd", line 12, in init sage.structure.element (build/cythonized/sage/structure/element.c:34167)


 "sage/structure/coerce.pxd", line 11, in init sage.structure.parent (build/cythonized/sage/structure/parent.c:27571)


 "gmpy2.pxd", line 98, in init sage.structure.coerce (build/cythonized/sage/structure/coerce.c:23176)
TypeError: gmpy2.mpz is not a type object
