Traceback (most recent call last):

 "/cactus/env/bin/toil", line 11, in <module>
sys.exit(main())

 "/cactus/env/lib/python3.7/site-packages/toil/utils/toilMain.py", line 25, in main
module.main()

 "/cactus/env/lib/python3.7/site-packages/toil/utils/toilLaunchCluster.py", line 154, in main
awsEc2ExtraSecurityGroupIds=config.awsEc2ExtraSecurityGroupIds)

 "/cactus/env/lib/python3.7/site-packages/toil/provisioners/aws/awsProvisioner.py", line 153, in launchCluster
profileArn = kwargs.get('awsEc2ProfileArn') or self._getProfileArn()

 "/cactus/env/lib/python3.7/site-packages/toil/provisioners/aws/awsProvisioner.py", line 95, in wrapper
return f(*args, **kwargs)

 "/cactus/env/lib/python3.7/site-packages/toil/provisioners/aws/awsProvisioner.py", line 652, in _getProfileArn
iamRoleName = self._ctx.setup_iam_ec2_role(role_name=_INSTANCE_PROFILE_ROLE_NAME, policies=policy)

 "/cactus/env/lib/python3.7/site-packages/toil/lib/context.py", line 535, in setup_iam_ec2_role
"Action": ["sts:AssumeRole"]}

 "/cactus/env/lib/python3.7/site-packages/boto/iam/connection.py", line 1155, in create_role
return self.get_response('CreateRole', params)

 "/cactus/env/lib/python3.7/site-packages/boto/iam/connection.py", line 85, in get_response
response = self.make_request(action, params, path, verb)

 "/cactus/env/lib/python3.7/site-packages/boto/connection.py", line 1117, in make_request
return self._mexe(http_request)

 "/cactus/env/lib/python3.7/site-packages/boto/connection.py", line 914, in _mexe
self.is_secure)

 "/cactus/env/lib/python3.7/site-packages/boto/connection.py", line 705, in get_http_connection
return self.new_http_connection(host, port, is_secure)

 "/cactus/env/lib/python3.7/site-packages/boto/connection.py", line 747, in new_http_connection
connection = self.proxy_ssl(host, is_secure and 443 or 80)

 "/cactus/env/lib/python3.7/site-packages/boto/connection.py", line 797, in proxy_ssl
sock.sendall("CONNECT %s HTTP/1.0\r\n" % host)TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last):


 "/usr/local/Cellar/azure-cli/2.6.0/libexec/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 188, in _main

status = self.run(options, args)


 "/usr/local/Cellar/azure-cli/2.6.0/libexec/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 185, in wrapper

return func(self, options, args)


 "/usr/local/Cellar/azure-cli/2.6.0/libexec/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 398, in run

installed = install_given_reqs(


 "/usr/local/Cellar/azure-cli/2.6.0/libexec/lib/python3.8/site-packages/pip/_internal/req/__init__.py", line 67, in install_given_reqs

requirement.install(


 "/usr/local/Cellar/azure-cli/2.6.0/libexec/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 845, in install

six.reraise(*exc.parent)


 "/usr/local/Cellar/azure-cli/2.6.0/libexec/lib/python3.8/site-packages/pip/_vendor/six.py", line 703, in reraise

raise value


 "/usr/local/Cellar/azure-cli/2.6.0/libexec/lib/python3.8/site-packages/pip/_internal/operations/install/legacy.py", line 74, in install

runner(


 "/usr/local/Cellar/azure-cli/2.6.0/libexec/lib/python3.8/site-packages/pip/_internal/utils/subprocess.py", line 270, in runner

call_subprocess(


 "/usr/local/Cellar/azure-cli/2.6.0/libexec/lib/python3.8/site-packages/pip/_internal/utils/subprocess.py", line 241, in call_subprocess

raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /usr/local/Cellar/azure-cli/2.6.0/libexec/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sp/2xl8pg3d4l501xtxl_ncn4n40000gn/T/pip-install-8iewgpi_/psycopg2-binary/setup.py'"'"'; __file__='"'"'/private/var/folders/sp/2xl8pg3d4l501xtxl_ncn4n40000gn/T/pip-install-8iewgpi_/psycopg2-binary/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/sp/2xl8pg3d4l501xtxl_ncn4n40000gn/T/pip-record-fn1judrv/install-record.txt --single-version-externally-managed --home /private/var/folders/sp/2xl8pg3d4l501xtxl_ncn4n40000gn/T/pip-target-890sc0zw --compile --install-headers /usr/local/Cellar/azure-cli/2.6.0/libexec/bin/../include/site/python3.8/psycopg2-binary Check the logs for full command output.
