Traceback (most recent call last):


 "/opt/venvs/matrix-synapse/bin/register_new_matrix_user", line 22, in <module>

main()


 "/opt/venvs/matrix-synapse/lib/python3.5/site-packages/synapse/_scripts/register_new_matrix_user.py", line 224, in main

admin, args.user_type)


 "/opt/venvs/matrix-synapse/lib/python3.5/site-packages/synapse/_scripts/register_new_matrix_user.py", line 138, in register_new_user

bool(admin), user_type)


 "/opt/venvs/matrix-synapse/lib/python3.5/site-packages/synapse/_scripts/register_new_matrix_user.py", line 60, in request_registration

mac = hmac.new(key=shared_secret.encode('utf8'), digestmod=hashlib.sha1)
AttributeError: 'int' object has no attribute 'encode'

Traceback (most recent call last):


 "c:\users\nelson.wu\envs\spider\lib\site.py", line 769, in <module>

main()


 "c:\users\nelson.wu\envs\spider\lib\site.py", line 746, in main

paths_in_sys = addsitepackages(paths_in_sys)


 "c:\users\nelson.wu\envs\spider\lib\site.py", line 279, in addsitepackages

addsitedir(sitedir, known_paths)


 "c:\users\nelson.wu\envs\spider\lib\site.py", line 202, in addsitedir

addpackage(sitedir, name, known_paths)


 "c:\users\nelson.wu\envs\spider\lib\site.py", line 170, in addpackage

exec(line)


 "<string>", line 1, in <module>


 "c:\users\nelson.wu\envs\spider\lib\site-packages\win32\lib\pywin32_bootstrap.py", line 14, in <module>

for maybe in site.getsitepackages():
AttributeError: module 'site' has no attribute 'getsitepackages'